score:10

Accepted answer

you need to pass an object to initialvalues prop, that contains an array of values for names field list, like so:

    <form
      name="dynamic_form_item"
      initialvalues={{ names: ['', '', ''] }}
      {...formitemlayoutwithoutlabel}
      onfinish={onfinish}
    >
        <form.list name="names">
            { /* your array of fields goes here */ }
        </form.list>
    </form>


Related Query

More Query from same tag