Announcements
Hello,
I want to use two buttons or shape for select and should be change the color when pressed that button.
How can I do this? I couldn't this with button's properties.
Thanks a lot!
@ernu Use Set() to define is it onselect to change color
Hi @ernu ,
You can set the border color, color and fill properties of a button in pressed state using the below properties:
HI @ernu ,
If you would like to change the button's background color (fill) if user clicks on the button then you can add below formula in Fill property of the button - If(varBtn1Selected, Red, White) and the Color property to If(varBtn1Selected, White, Black)In button's OnSelect property set this variable to true using either UpdateContext or Set function based on the scope - Set(varBtn1Selected, true)
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 community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 358 Most Valuable Professional
11manish 207 Super User 2026 Season 2
MS.Ragavendar 150 Super User 2026 Season 2