I have a canvas app connected to a SharePoint list. I added a multi-select checkbox data card (DataCard1) to the form, deleted the default control, and inserted a gallery (Gallery1) on DataCard1. I'm storing the user's checkbox values in a collection. My "Submit" button simply submits the form: SubmitForm(NewForm1);
If the Required property on Gallery1's data card is set to false, the form submits as expected. No issues. However, if I set the Required property on Gallery1's data card to true, and then click "Submit," the form fails (the form's OnFailure notification displays). However, if I click the "Submit" button again, the form submits just fine. I cannot figure out why I have to click the "Submit" button twice.
DataCard1 > Default and Update properties
colCollectionName
Gallery1 > Items property
Choices([@SPListName].MultiSelectColumnName)
Gallery1 > Checkbox1 > Default property
ThisItem.Value in colCollectionName.Value
Gallery1 > Checkbox1 > OnCheck property
Collect(colCollectionName, ThisItem)
Gallery1 > Checkbox1 > OnUnCheck property // Updated
Remove(colCollectionName, ThisItem)
Gallery1 > Checkbox1 > Text property
ThisItem.Value
The button that opens NewForm1 > OnSelect property
ResetForm(NewForm1); NewForm(NewForm1); Clear(colCollectionname); Navigate(ScreenSignUp,ScreenTransition.Fade)
Steps I've tried:
- Ensured every field in my SharePoint data source is not required (I've checked every field three times)
- Removed and re-linked the SharePoint data source
- Deleted and re-added the data card with the multi-select checkboxes
- Deleted and re-created the gallery on the data card
- Exported and re-imported the Power App