Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Can we change the color/size/Character (like bold) of a selective text in the text box on the front end?
Can someone share an example for the same?
Regards,
H
There is no way I know of to do selective text formatting in a text box. There is only the one setting that applies to all text in the box.
A workaround is to use multiple text boxes (or other objects) and layer them. This can be difficult to maintain.
-Rob
Hi,
Have you tried going to the "Properties", "Font" Tab then on the "Color" option and then select "Calculated", the inster your expression in there e.g
" =If($(vYTDPYVar) > 0.01,
RGB(0,128,0),
RGB(255,0,0)) "
i tried this, and i get the "RGB(0,128,0)" in the color i wanted, but i want to get the result of the variable (a number) in that color!, Like -55% (in red) or 48% in green
is this possible?
Yes, you can get very fancy in the color formula, including the variable ColorWizard.
You can't modify size and style of the font, though (that's what Rob was referring to).
You can also store the whole formula for the color in a variable and use the variable in the color expression:
SET vColor1 = 'RGB(v1, v2, v3)';
<Color Expression> = $(vColor1)
cheers,
Oleg
thanks, it worked in a simple way using an expression on the font tab for color. using the variable simplifies any change in the future, thanks again
There is an idea for this - please vote for it!
http://community.qlik.com/ideas/1880
WARNING - the webpage is screwing up the link above - you will need to type it exactly as seen but DO NOT click on it!!
Jason
Thanks looking for same.
looks like the content is no longer active does anyone have a version of this i do not want to use multiple objects