cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomSinAA
Level: Powered On

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
Level: Powered On

Re: Change Label when comparing two text boxes

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
Level: Powered On

Re: Change Label when comparing two text boxes

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
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,475)