staff_documents {document_no aaa, document_type aaa, document_url aaa}
in form i want pass staff_documents field as array of object
5 Replies
adverse-sapphire•2y ago
@alicanerdurmaz can u help me with these
rival-black•2y ago
@rehan1 Hi,
https://4x.ant.design/components/form/#components-form-demo-dynamic-form-items
is this what you looking for ?
when you write like this, form value will be
adverse-sapphire•2y ago
document:[]
document:[{no:"1",type:"ss",url:"dd"}]
i need this way to pass
rival-black•2y ago
https://4x.ant.design/components/form/#components-form-demo-dynamic-form-items this example seems exactly whats your need.
You can check codesandbox too.
https://codesandbox.io/s/dynamic-form-nest-items-antd-4-24-5-forked-qe4mwq?file=/demo.tsx
adverse-sapphire•2y ago
ill try and let u know