cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Albo
Frequent Visitor

Validate form and submit

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?

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

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.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,031)