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 Apps
Unanswered

Color Button

(0) ShareShare
ReportReport
Posted on by 62

Hi,

 

I would like to change the color button when I click in another button.

Example. I have a red button and I would like to change the color (for green) of this button when I click in the trash icon.

 

Thank youuu

 

 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @laizcb -

     

    One method.

     

    1. On the OnSelect property of the Trash Icon, enter:

     

    UpdateContext({ctx_changecolour: true})

     

    2. On the Fill property of the Button:

     

    If(
     ctx_changecolour,
     Color.Green,
     Color.Red
    )

     

    I assume you also want to use to change the colour of the Button back to red based on some other business rule. To do that you can simply use:

     

    UpdateContext({ctx_changecolour: false})

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard