Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
curiousfellow
Specialist
Specialist

format text in variable

I have a text boxt that has an expression like this :

If(GetSelectedCount(field) = 0, $textstring, value)

$textstring is a variable with the string 'Please select field'

Now I want the text of the variable $textstring to be bold, but I can not find a way to do this.

Any help is appreciated

6 Replies
sunny_talwar

I don't think that this functionality is available, but you might be able to use an extension -> Free Text Box Extension Object

morganaaron
Specialist
Specialist

Properties > Font > Bold? Or do you not want the value to be bold? If so, create two text boxes using your if condition as a conditional show, have one be bold (textstring) and one not (value).

jonathandienst
Partner - Champion III
Partner - Champion III

You cannot set a variable to 'bold', or any other style. A variable is a value, not a rendering. If you are displaying the value in a text box, you can set the text box font to bold. Other renderings will depend on how you are displaying the variable.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
marcus_sommer

An alternatively might be to use a straight-table instead of a textbox but are there more layout-requirements then BOLD then the suggestions from Sunny and Aaron are more suitable.

- Marcus

curiousfellow
Specialist
Specialist
Author

I want the value $textstring in the text box to be bold when getselectedcount(field) = 0 and the value of a calculated expression  when getselectedcount(field) = 1

With an expression I can set the backgroundcolor and the fontcolor but apperantly not the fontstyle ?

Making two text boxes with a conditional show might be the good option.

vsabbise
Creator
Creator

Could you tell me how to set the background color or font color using expressions. Thanks