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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can change the color of a button after to push it

Hi dears experts.

I need change the color of a button after to push it , anybody can tell me how can I do that?

best regards.

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Set a variable:

LET myCol = 0;

in the button add an action -> external -> set variable, in the upper box write

myCol

in the lower write:

if(myCol = 0, 1, 0)

then in the general tab -> color -> check the computed and write:

if(myCol =0, rgb(200,200,200), rgb(100,100,100))

let me know

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Set a variable:

LET myCol = 0;

in the button add an action -> external -> set variable, in the upper box write

myCol

in the lower write:

if(myCol = 0, 1, 0)

then in the general tab -> color -> check the computed and write:

if(myCol =0, rgb(200,200,200), rgb(100,100,100))

let me know

Anonymous
Not applicable
Author

Hi!

You can try setting a variable when you push the button, and use this variable to control the background color of the button.

Regards,

Gabriel

MK_QSL
MVP
MVP

Like this?

Not applicable
Author

Thanks for your help Alessandro.