Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ramu123
Contributor III
Contributor III

How do I change the color for selected button. in Qlik sense Cloud

Hi team,

Hi have created 5 buttons and how do I change the color for selected button.

Could you please any body help?

Thanks

Ramu

Labels (1)
2 Replies
rubenmarin1

Hi, each button can have an action that changes a variable value to a number that identifies the button selected.

Each button could check the variable value to use the selected color or the unselected color

Color expression like: If($(vButtonSelected)=1, Blue(), LightGray())

You can also define a variable for each color:

vcButtonSelected = RGB(128,128,222)

vcButtonUnselected = RGB(192,192,192)

And the expression could be: If($(vButtonSelected)=1, $(vcButtonSelected ), $(vcButtonUnselected))

ramu123
Contributor III
Contributor III
Author

Hi Ruben,

Thanks, I'll try.

Thanks

Ramu.