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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,598)