cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomSinAA
New Member

Change Label when comparing two text boxes

Hello,

 

I have a label witht the formula: If (TextInput1 = TextInput2,"M","N").  It does not update when I change the values in the the text boxes.  

 

However I have label with the formula: TextInput1 + TextInput2.  It does update when I change the values in the the text boxes.

1 ACCEPTED SOLUTION

Accepted Solutions
KLatch
Resolver I
Resolver I

The formula:

 

If(TextInput1 = TextInput2,"M","N")

is comparing whether the control "TextInput1" is equal to the control "TextInput2", which will always be false. You want to compare the text property of those controls, not the controls themselves. So the formula you need I'm guessing should be:

If(TextInput1.Text = TextInput2.Text,"M","N")

 

View solution in original post

1 REPLY 1
KLatch
Resolver I
Resolver I

The formula:

 

If(TextInput1 = TextInput2,"M","N")

is comparing whether the control "TextInput1" is equal to the control "TextInput2", which will always be false. You want to compare the text property of those controls, not the controls themselves. So the formula you need I'm guessing should be:

If(TextInput1.Text = TextInput2.Text,"M","N")

 

View solution in original post

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

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (27,298)