Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

sjb34300
New Contributor III

Line break in text box?

I want to add a line break in a text box in Qlik Sense.  Any ideas how to do that?  The text box doesn't seem to respect html or ascii.  It just shows that code as text.

1 Solution

Accepted Solutions

Re: Line break in text box?

Try Chr(10) or Chr(13).

For instance:

Text & Chr(10) & Text or

Text & Chr(13) & Text

7 Replies

Re: Line break in text box?

Try Chr(10) or Chr(13).

For instance:

Text & Chr(10) & Text or

Text & Chr(13) & Text

sjb34300
New Contributor III

Re: Line break in text box?

Thanks!  That worked.  And just to clarify for others, I had to add this in the expression of the measure.  I couldn't just add the ascii to the text box with only text in it.

'Hourly Revenue:  ' & HourlyRevenue &  chr(10) & 'Fixed Fee Revenue:  ' & FixedFeeRevenue

carlcimino
Contributor

Re: Line break in text box?

I can't get this to work for a label on a qlik sense map.  It still puts it side by side.  I tried both chr(10) and chr(13).  Any ideas?

=ZIP_CODE&chr(10)&

text(num(

(sum({<DateType={Create},YTD_FLAG={'Y'}>}QUOTED_PREMIUM)

/sum({<DateType={Create},PYTD_FLAG={'Y'}>}QUOTED_PREMIUM)

)-1,'#.#%'))

tarunakhemchand
New Contributor

Re: Line break in text box?

@carl Same for me!!

robjackson_enta
New Contributor

Re: Line break in text box?

Hi, you can try the following using <br> but it has to be wrapped in single quotes..

='LabelText' & Field Name & '<br>' & 'LabelText' & Field Name

JohannesHiller
New Contributor

Re: Line break in text box?

Perfect. Using <br> and not chr(10) finaly made it work. Thanks.

Vince_CH
Contributor II

Re: Line break in text box?

Dear All, I tried with Chr(10), Chr(13) and '<br>', all doesn't work in the footnotes where i want to break the lines. anyone has the successful experience there?

Community Browser