Hi Scott, thank you for the help - I managed to get it working with a save button in that place;
However, I'm trying to do the same but in a Gallery with repeating tables.
Essentially I am trying to loop through all items the Gallery and update the collection for each item, when the '+ Add New Row' button is clicked, the collection is populated with a new empty row, and I want the save button to update those empty fields with the data in the Gallery. I believe it's a problem with my code, I would be grateful if you can assist 🙂
Gallery view:

With another row:

+ Add New Row Code:
Collect(
colAnyIssuesPreventingDeliveryUpdates,
{
FormReference: varFormReferenceNumber,
Date: Today(),
Time: varTimeOnAppStart,
Description: "",
IssueType: ""
}
)
Save button code:
ForAll(
'Any Issues Preventing Delivery Gallery'.AllItems,
Update(
colAnyIssuesPreventingDeliveryUpdates,
LookUp(
colAnyIssuesPreventingDeliveryUpdates,
ThisRecord.Description = ThisRecord.Description
),
{
FormReference: FormIDFromVar,
IssueType: IssueTypeInput.Selected.Value,
Description: DescriptionInput.Text,
Date: DateInput.SelectedDate,
Time: TimeInput.Text
}
)
)
The save button works as it should if there is only 1 row in the gallery, when I add a new row in the gallery and click save it doesn't work as expected 🙂