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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Button Color change of active /inactive time

i need to change the button colors active and inactive state how to do this pls help any one , i tried on button propertie->in caption, i changed but it will not reflecting,

Thanks,

Jyothi

2 Replies
orital81
Partner - Creator III
Partner - Creator III

Try The attached file

What I did is:

1. Define Parameter (I called it "vActive")

2. Add to the button actions - Set Variable to 1 when active and 0 when not.

3. Define the Button color to be calculated according to "vActive" by using RGB colors.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Properties-->General tab-->click to choose Color

     In that use Calculated option for changing colors by setting Variable on click.

  • First create 2 buttons.
  • Create a variable vActive.
  • on button 1 click set vActive as some value and do the same for button 2 but diff value.
  • Use expr like this If(vActive=some value as u set on click, rgb(0,0,0),rgb(255,255,255)) in Calculated field.

Celambarasan