Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
manmadha
Contributor III
Contributor III

Custom color changes in list box selection

Hi Experts,

I need your help to changes list box parameter selection custom color change (the default color is Green).

kindly help me on that.

Labels (1)
18 Replies
EliGohar
Partner - Creator III
Partner - Creator III

@ester_pr  Can you attach a screenshot of the part you want to edit?

ester_pr
Partner - Creator
Partner - Creator

@EliGohar  Hi,

I used your code and I have no idea what the code is  for "not selected" color 😞

EliGohar
Partner - Creator III
Partner - Creator III

@ester_pr I think I understood your request, If you mean this part (value 2020):

EliGohar_0-1674988072539.png

Then try this CSS:

.qv-listbox li.serverExcluded, .qv-listbox li.serverExcludedLock, .qv-listbox li.serverSelectedExcluded {
    background-color: navy!important;
    color: white!important;
}

Result:

EliGohar_0-1674988237279.png

 

 

 

AJerbi
Partner - Contributor II
Partner - Contributor II

Hi again @EliGohar  

Can you please guide me on how to do the same (changing the selection color from green to custom color) but on a pivot table ? 

ester_pr
Partner - Creator
Partner - Creator

Thank you very much, I will try it

Onkar_Kulkarni
Employee
Employee

@EliGohar  - this is really useful CSS code, can I have similar blue colour instead of Green at below places as well?

onkarkulkarni10_2-1701074314672.png

 

Thanks a lot.

EliGohar
Partner - Creator III
Partner - Creator III

@Onkar_Kulkarni  Hi, what's the version you are using?

Aasir
Creator III
Creator III

Create a text object and use conditional formating
if(GetFieldSelections(YourField) = 'YourSelection', RGB(255, 0, 0), RGB(0, 128, 0))

Onkar_Kulkarni
Employee
Employee

@EliGohar  - Thanks for your reply. I am using it on the Qlik cloud tenant.