Hy,
is it possible to add a group of fields in the UI Designer, when clicking the add button?
The fields have some variables and I don’t know how to model them to get them added by pressing an “add” button?
Thanks.
Best regards,
Marlene
Hy,
is it possible to add a group of fields in the UI Designer, when clicking the add button?
The fields have some variables and I don’t know how to model them to get them added by pressing an “add” button?
Thanks.
Best regards,
Marlene
You should create a variable containing items and bind them to “Collection” attribute in the Container widget. Inside this container you build your group of fields and bind to every field an item’s attribute like e.g “$item.name”. Then you can bind this collection to a “Collection” attribute of Button widget in “Add to collection” mode. You can also define element which will be added in “Value to add” attribute, e.g {“name”:“Marlene”}.
You can create variables in UI Designer. Create a variable and set it’s JSON value to empty array and bind it to Container widget.
Thanks a lot: What do you mean with “You should create a variable containing items”? in the data model?