cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ianallen13V2
Regular Visitor

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
Skilled Sharer
Skilled Sharer

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
Skilled Sharer
Skilled Sharer

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

ianallen13V2
Regular Visitor

This worked!!  

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

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (66,158)