Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
juagarti
Contributor III
Contributor III

Mark a text box when you press It

Hello,

In my application I need that when I push  a text box (witch some actions) the text change the color. I have 5 text box I need when I push one change the color to green and  the others change the color to black . How can i do it?

Thanks!!

1 Solution

Accepted Solutions
Anonymous
Not applicable

you may define a new variable

then you Need to define Action Set variable in textbox

and finally you Need to test this variable and you Change Background or textcolour

if (variable=1, green, black)

View solution in original post

7 Replies
Anonymous
Not applicable

you may define a new variable

then you Need to define Action Set variable in textbox

and finally you Need to test this variable and you Change Background or textcolour

if (variable=1, green, black)

jpenuliar
Partner - Specialist III
Partner - Specialist III

Hi Juan,

you can use the sample qlikview application - "Prescription Tracker".

made use of 3 textboxes to enable week selections.

Regards,

Jonathan Penuliar

tamilarasu
Champion
Champion

Hi Juan,

Have a look at the attached file and let us know.

chhavi376
Creator II
Creator II

Hi Juan,

You need to make one variable (say, vCompare is your variable). Next, you need to add an action to each text box, to set the variable to a different numeric value when they click on the text box.

Say, you set the variable to 1 when you click on the first text box, 2 when you click on 2nd, so on and so forth.

then you need to make the 'font' conditional in all the 5 text boxes. example in the first text box, you will have to give the condition that if vCompare is 1, then set the font to green, otherwise black.

It may sound confusing here, so i am attaching a QV here.

Have a look.

Thanks,

Chhavi

juagarti
Contributor III
Contributor III
Author

It´s run perfectly, Thanks!!!

juagarti
Contributor III
Contributor III
Author

It´s run perfectly too!!

Thanks very much!

juagarti
Contributor III
Contributor III
Author

It´s run perfectly!

Thanks very much!