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

Notifications

Announcements

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,505 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard