cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
khalidinio
Level: Powered On

How to implement cascading validation between a (dropdown) choice and number field?

We are using O365 SharePoint and have some custom list. I modified the new item form in PowerApps. I would like to do some validation on a field of type "decimal". The validation needs to have a dependancy by the selected value of a field of type "choice".

 

For example:

If the choice field value is "Artsbezoek", the number field value needs to be below number 2. If the value is not valid, I would like to show some validation message.

 

23wwrns.jpg

1 REPLY 1
Community Support Team
Community Support Team

Re: How to implement cascading validation between a (dropdown) choice and number field?

Hi @khalidinio,

 

Please first take a look at the following blog for some best practices:

A Few Best Practices in Data Validation

 

For your Scenario, here are my own thoughts:

1. If the Error messages is based on Dropdown selection, then there should be a table holding the Error messages and the Selected value,which is used for the Error Box to lookup with,

2. If all the fields needed error validation, then error table should be defined for each fields,

3. Take use of Lookup () function under the Text property of the Error Box, to find the error through the Error table,

4. In case of wrong data submitted, you could configure the Disable property of the submit button with Variables,

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 376 members 5,824 guests
Please welcome our newest community members: