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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (31,354)