Announcements
I would like to change the background color of a button to grey when it has been selected. what is the proper formula?
@Evan_S1 In the OnSelect of the Button set a variable,
UpdateContext({varBackground: Color.Blue})
Set this variable to the Fill property of the Button
Please remember to give a 👍 and accept my solution as it will help others in the future.
It looks blue when selected however it doesn't stay that color.
I would like it to stay the color grey when selected and then change back to its normal blue color when depressed.
@Evan_S1 just change the Pressed Color property.
I did, however it shows an error.
@Evan_S1 set the PressedColor property of the Button to the desired color, e.g. Color.Gray
The button does not stay gray. I want it to stay gray when it is selected, then turn back to its original color when pressed again.
@Evan_S1 Set a variable in the OnSelect of the Button,
Set(btnSelected,!btnSelected)
Set the Fill property to,
If(btnSelected, Color.Gray, Color. Blue)
It kind of works now in reverse of what I wanted. The button turn blue when selected and gray when unselected. Would prefer it to be opposite.
Also, I have other buttons that I want to format the same way, although when I use the same function on other buttons. All the buttons turn the same color when only one of them is selected.
@Evan_S1 Just reverse the colors
If(btnSelected, Color.Blue, Color. Gray)
other buttons.... Each button will need a different variable
@CNT What different variable would I use?
All Buttons currently have this as the code.
UpdateContext({btnChoice:If(btnChoice=Self,Blank(),Self)});Set(btnSelected,!btnSelected)
My Buttons names are:
Vertical
Modified
Horizontal
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
wolenberg_ 119 Super User 2026 Season 1
WarrenBelz 107 Most Valuable Professional
Haque 103