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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan_d
Specialist
Specialist

color change in text box

hi i want to highlight the text box if i m selecting it, if i'm not selecting the text box that text should be de-highlighted..

example we have two text box-text1 and text 2

text1 is selected that shd be highlighted  and text 2 de-highlighted.

text2 is selected that shd be highlighted  and text 1 de-highlighted.

19 Replies
sagarkharpude
Creator III
Creator III

Hi,

Select Background color of text box, then select calculated Base Color then write the below condition

=if(GetFieldSelections(Field name),RGB(20,240,120),RGB(10,10,10))

mohammadkhatimi
Partner - Specialist
Partner - Specialist

Hie..

Check the sample qvw

Not applicable

PFA

manoranjan_d
Specialist
Specialist
Author

@sagar, i m geting the color but when i m selecting text box1 its in same color and also when i de-select its in same color

sagarkharpude
Creator III
Creator III

Hi,

Please check the attached file.

mohammadkhatimi
Partner - Specialist
Partner - Specialist

Please check my application named Sample.qvw,I think it will help you.

Regards,

Er.Mohammad

manoranjan_d
Specialist
Specialist
Author

pls attache the file..its not there

manoranjan_d
Specialist
Specialist
Author

i tried my self got output

assign variable in action as "=if((vSelect) = '0' ,'1','0')

then in general assign this calculated sec of color as "=if($(vSelect)=0 , RGB(0,255,255),RGB (128,128,255))".

got the out put.

manoranjan_d
Specialist
Specialist
Author

but in text box2 assignt the same variable "vSelect" equal to 0

manoranjan_d
Specialist
Specialist
Author

u ll get the out put.thanks to all