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

Validating multi page app

Current approach

I have an app which records its data into a SharePoint list. This list has roughly 30 fields so I have split the app into 3 pages.

 

Each Screen has a Form that contains a subset of the 30 fields split between the 3 screens / forms.

powerappq.png

 

As I move through the app I am opening a new Screen / Form in turn. When the final screen is submitted by pressing the button the 3 Forms are Patched to the SharePoint list.

 

The issue

This works fine if everything is valid but if there is an error on the first screen it throws an error. As I am patching and not using the SubmitForm functionality I can't use the out of the box basic validation with OnSucess and OnFailure.

prob2.png

 

 

 

 

Better way?

Is there a way to validate each screen before moving on to the next one? 

1 ACCEPTED SOLUTION

Accepted Solutions
anees
Power Apps
Power Apps

@Conor, here are some references you can leverage to build validation in each screen/form before you proceed to the next.

 

Blog post from @Audrie-MSFT on validation: https://powerapps.microsoft.com/blog/validation/

Validate function: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-validate

DataSourceInfo function: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-datasourceinfo

 

Thanks

Anees

 

 

View solution in original post

1 REPLY 1
anees
Power Apps
Power Apps

@Conor, here are some references you can leverage to build validation in each screen/form before you proceed to the next.

 

Blog post from @Audrie-MSFT on validation: https://powerapps.microsoft.com/blog/validation/

Validate function: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-validate

DataSourceInfo function: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-datasourceinfo

 

Thanks

Anees

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,115)