This seems easy but I can't figure it out. I have a button with red Fill that needs to change to black Fill when pressed, then back to red when pressed again. It needs to toggle back and forth regardless of how many times it is pressed. Any suggestions? Thanks in advance.
Solved! Go to Solution.
Yes, that's a good answer. But is this what you meant to say?
In your OnSelect property of button add
Change Fill property to
If(pressedButton=true, Color.Black, Color.Red)
Thanks very much. This works but I have several different buttons on the same page. I used these formulas for each but when I press one button it changes all of them black. I know I need to specify the name of the particular button somewhere in there but I don't know where.
I was able to get buttons to change the Fill but when clicked a second time the button reverts back to its original state, like a toggle.
So when one button gets clicked I am filtering a gallery based on a Status field, and that button should stay highlighted while on that view, but if the same button gets clicked again it goes back to a white (orginal) Fill.
Is there a way to make it not toggle?
This will be a conference that you do not want to miss!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021