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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,921)