cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnthonyMartini
Frequent Visitor

Text Label is not Following Formula Logic

I have a page in my app that I use for two parts of a form. I have a variable called "Search" that acts as a toggle between these two pages. At the top of the page I have a title label that tells the user what page they are on.  When Search is true, the labels text is "Page1" and when its false, "Page2". Just recently this stopped for no reason, as far as I can understand. Now, the label will only display "Page2" no matter what page you are on. What is even more interesting/aggravating is that nothing else on the page acts this way. Only this label.

 

Title Label Text Attribute:

Text = If(Search,"Page1","Page2")

 

I know that the variable is not the problem because I have another label on the page that has the text attribute:

Text = Search

 and this displays true just as I expect.

 

Is this a known bug and/or is there a solution for this? Any help is appreciated. Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Try using a different name for your variable, like varSearch.  Search() is the name of a function, so I assume its a system reserved word.  That may be why it has stopped working.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User
Dual Super User

Try using a different name for your variable, like varSearch.  Search() is the name of a function, so I assume its a system reserved word.  That may be why it has stopped working.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you. The label is now working.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,762)