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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Format text color in search box

Dear all

I wan't to have my search box to display different text depending on how many selections the User makes in a single field(DegreeType). This has not been a problem, I used the following expression:

=if(GetSelectedCount(DegreeType)=1,GetFieldSelections(DegreeType),

     if(GetSelectedCount(DegreeType)>1,

          'Select one value ONLY',

          'Select Degree Type'))

However, I want to give the warning text a red color, meaning the text strings 'Select one value ONLY' and 'Select Degree Type' should be red (and not gray as they are now) whenever the user selects 0 or more than 1 Degree Type.

I can't figure it out though - can anyone help med on this?

Thanks in advance

Cheers

Bruno

4 Replies
Not applicable
Author

I do not think we have facility to change font color in search object.

Not applicable
Author

Hi Angad

Thanks for the answer and as far as I Know your right.

However, I Wonder if it's possible to do some html programming in the expression instead that would turn the 2 textstrings red?

Cheers

Bruno

Not applicable
Author

I think you need to search for some extensions made for this, or using macros to change the font color.

One such extension i found is here :

qlikblog.at/1579/

You need to google it, or create an extension yourself for this.

Not applicable
Author

Thanks - I'll try it