Hello!
I'm trying to create a form page which inserts multiple rows into a Sharepoint list. Based on which Business Unit the user chooses, the number of regions in the form changes. One region equals 4 fields. For example, one BU may have 3 regions x 4 fields, another may have 10 regions x 4 fields.
I want to loop these based on the information about the BU available in a Sharepoint list, although it seems impossible to do so in a simple form.
I've tried to use a gallery to loop the regions, then insert 4 text inputs per region. The save button uses a ForAll() and a Patch() to insert the inputs into the Sharepoint list. This solution doesn't work.
ForAll(Gallery1.AllItems;
Patch('Weekly Report';
Defaults('Weekly Report');{
'Value1':TextInput1;
'Value2':TextInput2;
'Value3':TextInput3;
'Value4':TextInput4;
'WeekNum':Dropdown1;
'Business Unit':Label1
}
)
);;
Can you help me find a solution to this?
Many thanks!