
Announcements
Hi all,
i'm new to PowerApps and working on my first app, I'm just trying to figure out how to validate my form and submit:
Patch('xxxxxxxxxxx sharepoint list',
Defaults('xxxxxxxxxxx sharepoint list'),
Form8.Updates,Form9.Updates,Form10.Updates);
NewForm(Form8);
NewForm(Form9);
NewForm(Form10);
Notify("Data Submitted",NotificationType.Success);
Navigate(Screen1)
I have 3 forms in total as you can see from above and before you navigate from each screen i have set the OnSelect validation as "If(Form9.Valid, Navigate(Screen3))"
As the submit button is on Form10 - how do i add in the Form10.Valid check before i allow submission?
Hi @Albo ,
I think you could control the display mode of the submit button via the Form10's validation:
Set DisplayMode of the submit button
If(Form10.Valid, DisplayMode.Edit, DisplayMode.Disabled)
So if Form10 is not valid, the submit button would be grayed out and stop the user from submitting.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.