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: 
GraigorSpisak
Contributor II
Contributor II

How to put carriage return on button

I would like to put a dynamic text on a button, with many lines of text. 
Something that would look like : 

"INNOVATION 

Innovation Sales  5765$  +24%
Innovation Products 14 "

where all numbers are measures. probably color-coded too to be red for negative.
This works well with a text &image item, but it cannot be clicked to redirect on the innovation sheet.

So I thought I could put all this on a button.  I didn't succeed to line break. I tried & Chr(10) & Chr(13) but it didn't work ? 

Labels (1)
5 Replies
Charles_Alter-SI
Contributor II
Contributor II

Same need for me, anyone found a solution ?

Oliver_F
Partner - Creator III
Partner - Creator III

Same here. chr(10) does not work for buttons.

mikael-c
Contributor III
Contributor III

I'd like a solution for this also.

mkmeyers3371
Contributor II
Contributor II

Bump, it appears the common "Qlik Sense Line Break" solution of using Char(10) & Char(13) does not work as a line break on button labels.

rpennacchi
Contributor III
Contributor III

I think the only solution is using CSS.

Try this:

1 - Get the id of your button object you want to change: right clik button on your object -> share -> Incorporate. And then you can see the ID_YOUR_BUTTON_OBJECT. Eg: wCmgk

2: add a multi-kpi object

3: add in your multi-kpi-object on appearence > styles this css code, with the ID of your object.

div[tid="ID_YOUR_BUTTON_OBJECT"] text span {
      white-space: break-spaces !important;
       font-size: initial;
}

Find me on linkedin:
https://www.linkedin.com/in/rodrigo-pennacchi/