web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button Color of Presse...
Power Apps
Answered

Button Color of Pressed and Selected

(0) ShareShare
ReportReport
Posted on by 140

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.

 

ernu_1-1668156413787.png

 

Thanks a lot!

 

 

Categories:
I have the same question (0)
  • abc3 Profile Picture
    207 on at

    @ernu Use Set() to define is it onselect  to change color 

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @ernu ,

     

    You can set the border color, color and fill properties of a button in pressed state using the below properties:

     

    BCBuizer_0-1668157223165.png

     

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard