How to create a form with an array of inputs
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
How would i go about creating a form that outputs:
```
```
or alternatively if thats not possible:
```
```
I need to add the array fields to the form dynamically based on the number of fields in the document i retrieve from mongo.
The data i need to bind to the form is in the following format:
```
{
name: 'xxxxx'
properties: [
{var1: 'yyy', var2: true },
{var1: 'zzz', var2: false}
]
}
```
I thought about creating a form using fields.array() for the properties attribute and using a custom widget that renders fields.object instead of fields.string but cant seem to get it working.
Is there a simple solution?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.