Creating a content fragment programmatically, it is successful apart from the creation of a multi-field where i
Using this as a reference:
https://developer.adobe.com/experience-manager/reference-materials/6-5/assets-api-content-fragments/...
How can I input a multi field text? as seen below:
The data type is 'single line text', and it renders as 'Multiple Field' in my content fragment model.
for instance a single field is just:
"{elementName}": {
"value": "<p>The HTML content of the element.</p>",
":type": "text/html",
How would a multiple field text look like if sending a POST? That is dynamic for the size, such as the number of inputs or elements within.
I currently have it looking like this:
"habitat": {
"value": JSON.stringify(test),
":type": "application/json"
},
Where test is an array of form inputs, except it ends up being in the same row, rather than each input taking up 1 field.
So it looks like 'Test1, Test2, Test3' on the same field, rather than:
- Test1
- Test2
- Test3
each being its own field