How do I make the collections widget display at least one field by default?

Hello,

Does anyone know how to set up the collections widget in the UI Designer so that one input field is displayed as the form loads? Currently, I have to manually press the button with a plus sign to add one input field, and I want 1 input field to already be shown when the page loads. I think this is because the Business Data Model doesn't allow me to set an attribute as multiple and mandatory.

 

Any help would be greatly appreciated.

Hello,

To do that, just add a value in your container variable.
Ex: your container use 'formInput.users' to populate.
So, in your formInput:
{
users:[ {name:""}]
}

Regards

Thank you, this solved my issue

With pleasure