Hello,
I have PowerApps form connected to SharePoint list. The form uses various data sources (eg. Cascade drop downs takes info from another lists or excels, there is sharepoint standard drop downs, text fields etc). To save the information we are using Patch() and it works fine, but now we have to have field validation if some required remains empty.
There was idea to use:
OnSave: Set(Submitvar,"SubForm");SubmitForm(SharePointForm1);
OnSuccess: Patch()
OnFailure: Notify( "Some mandatory fields are not filled in", Error )
Note - submitvar is used to call the Patch() through IF statement.
It works good in showing and highlighting fields with missing info, but it does not sava the information from cascade menues (ignoring Patch).
Is there a way to keep both validation and highlighting of fields in case of error, and save the form via patch (or update Submitted record with patch() data on success)?