Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am struggling to change button background colour when clicking the button. There are several posts here but none of them seems working....Can anyone help and check where is wrong with my syntax?
I first created a button label as 'Portfolio' in appearance and set action for set variable value with label as 'VPortfolio' , variable as 'VPortfolio', and value as 1.
Then I changed background colour by expression as the following:
=if(VPortfolio=1, blue(), LightGray())
Error showed this expression and didn't work. Where did I do wrong?
Many thanks!
Hello @Mini_Elaine
You need two things:
Attached is the QVF with an example.
Best regards.
Hello @Mini_Elaine
You need two things:
Attached is the QVF with an example.
Best regards.
Hello @Mini_Elaine
Its the correct place.
Maybe the problem is that you dont have the variable created? or the name is a bit different?
It should be colored in pink if you click on the "fx"
Best regards.