Closed domeales-paloit closed 4 months ago
I worked it out... I was missing the []
on the items key
in the form config:
"items": {
"key": "impactDocumentsCmsIds[]",
"type": "mediaitem-doc"
},
Hi there,
Still loving this library!
I have created a custom field type and I am attempting to get it working in an array type.
The issue is that the
id
andname
attributes of theinput
field generated do no contain the array brackets[x]
and so everything is a bit confused.I have something like:
When the type is used in an array:
Have I got something wrong in the
template
? I have scanned the library code for how theid
andname
fields are being created internally and I can't seem to see how to get the array brackets[x]
added.The generated HTML for
<div class="controls">
looks like this:Can anyone help with this?
Thanks!