Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
I have a little problem, have tried to read me for this on the forum but did not come up with the right answer.
I have several buttons in a sheet, and I would like a different color on it where you click on it so that you can see that the button is active.
I have created two variables:
vknapp1 = 0
vknapp2 = 1
So if I right-click the button and type in the conditions if (vknapp1 = 0, rgb (173,203,87) and rgb (192,192,192))
I get it to work, does anyone know what I'm doing wrong?
Have you set up the action to change the variable? You only really need one variable. Set up: vknapp1 = 0
Then on the button in the actions tab, add an action of 'Set Variable'. The value could be if(vknapp1 = 0,1,0).
Your formula for the calculated color is correct. Please see attached.
Hi,
I got a similar kind of post from the community.
Please check whether it satisfies your requirement.
http://community.qlik.com/message/172194#172194
Thanks,
Leni
Hi,
You can set up Active and Inactive colours under caption tab..
Goto Button properties--> Caption
here you can see Active Caption and Inactive caption.. set your colors what you want.
regards,
Chandra
Hello!
Your link is what I want to accomplish, but I can not get to it does not change color when I click on the button and I do not know what I do wrong, can not open test file that has laddads with unfortunately.
But you are able to help me?
I have previously two variables
vknapp1 = 0
vknapp2 = 1
now the properties - general - backround, color - calculated color, I have the formula "if (vknapp1 = 1, rgb (173,203,87), rgb (192,192,192))"
and do you want that when I clicked on the button to change it to gray
Why can I not work?
Have you set up the action to change the variable? You only really need one variable. Set up: vknapp1 = 0
Then on the button in the actions tab, add an action of 'Set Variable'. The value could be if(vknapp1 = 0,1,0).
Your formula for the calculated color is correct. Please see attached.
Hello!
Now I get it to work with the buttons change color but if I press another button then it go tillaka to the original color, what do I do?
different variable for each button?
Hello again!
I may still not work, so I need someone who can explain from the beginning.
I have five buttons and I have made five new variables.
vknapp1
vknapp2
vknapp3
vknapp4
vknapp5
But how do I do then? 🙂
Hi,
Sorry for the late response.
Please check the attached file.
This might help you
Thanks,
Leni