Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
pkelly
Specialist
Specialist

List Box Caption - Background Colour

On a list box, I have been asked to change the background colour of the caption if the user has made a selection.

This I am doing via the following...

=if(GetSelectedCount(cus_Rpt10Description) > 0, RGB(255, 255, 179), RGB(230, 230, 230))

with cus_Rpt10Description equal to the respective list box field - this works okay...

The question i have is - I have to change the field name to match the respective list box.

Is there anyway of having standard code which would work based on the list box field name.

This way I could copy one, change the fieal and caption label and move on as opposed to also changing the caption background.

Regards

Paul

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I've often wanted something like you are asking for, sort of a "this" reference. But as far as I know it doesn't exist. You will have to change the field name each time.

-Rob