cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ianallen13V2
Helper II
Helper II

Correct or Incorrect field based on selected values

Hello, 

 

I am building a quality assurance form in PA and I have a list of possible errors that one may make.  What I want to do is build a hidden field that shows either 'correct' or 'incorrect' if any of the list items of errors is selected.  I'm sure that this would be pretty easy, but I just cannot think of how to do it right now - but if anyone has any suggestions - all ears.  Currently, I have a hidden field that just counts the number of errors.... but I want to have something that if even one error is counted, it's 'incorrect', but if no errors are counted - then obviously it's 'correct' 

1 ACCEPTED SOLUTION

Accepted Solutions
zmorek
Super User
Super User

You could simply do something like: If(Value(ErrorLabel.Text) > 0 , "Incorrect", "Correct")

 

Or update your current label by wrapping the If() statement around the existing statement:

If([your existing statement] > 0 , "Incorrect", "Correct")

View solution in original post

2 REPLIES 2
zmorek
Super User
Super User

You could simply do something like: If(Value(ErrorLabel.Text) > 0 , "Incorrect", "Correct")

 

Or update your current label by wrapping the If() statement around the existing statement:

If([your existing statement] > 0 , "Incorrect", "Correct")

ianallen13V2
Helper II
Helper II

This worked!!  

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,682)