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.
Solved! Go to Solution.
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.
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.
Thank you. The label is now working.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
204 | |
71 | |
51 | |
49 | |
20 |
User | Count |
---|---|
260 | |
121 | |
85 | |
75 | |
72 |