cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MIA99s
Frequent Visitor

Change button colour based on variable condition

Hye, I want to ask how can I change button colour based on variable that I have?

 

Button1: Set(varvisible,1)

Button2: Set(varvisible,2)

Button3: Set(varvisible,3)

 

So, if user click button1, the button1 colour change to blue and Button2 & Button3 will keep a normal (green) colour.

If user click button2, Button1 & Button3 will keep a normal (green) colour.

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @MIA99s 

Set the Fill property of the buttons as follows:

Button1: If(varvisible=1, Blue, Green)

Button2: If(varvisible=2, Blue, Green)

Button3: If(varvisible=3, Blue, Green)

View solution in original post

2 REPLIES 2
timl
Super User
Super User

Hi @MIA99s 

Set the Fill property of the buttons as follows:

Button1: If(varvisible=1, Blue, Green)

Button2: If(varvisible=2, Blue, Green)

Button3: If(varvisible=3, Blue, Green)

MIA99s
Frequent Visitor

@timl Thanks for helping me!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,184)