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

Announcements
Qlik Unveils New Agentic Capabilities Across Analytics, Data Engineering, and Trust: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aadhini
Contributor II
Contributor II

I want Button label value in 2 line

I have one button in the dashboard in that button label is "AaaaB-6"

But I want AaaaB

                      6

The label expression is 'AaaaB-'&chr(10) &'6'

Labels (1)
1 Reply
marksouzacosta

Hi @Aadhini ,

First, I moved your post from Automate to App Development.

This is what you have to do:

1. Change your label to AaaaB 6. The Space is very important. It will be replaced by a line-break

2. Get the button ID
Right Qlik on the button, go to Share and click on Embed. Copy the code and paste in a notepad. The code will look like this:

<iframe src="https://your-tenant.us.qlikcloud.com/single/?appid=1516ee7d-ff9e-4128-aefb-bb4d203bdf99&obj=ghNaeL&theme=card&opt=ctxmenu,currsel" style="border:none;width:100%;height:100%;"></iframe>

obj is the value you are looking for. In my example: ghNaeL

3. Add a custom CSS to the Sheet
Go to Sheet Properties > Styling and activate Custom Styles.

2026-02-20_09-48-50.png
 

Enter the following CSS code in the Styles (CSS) box - replace the ghNaeL with your Button ID:

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

 
4. Change Button Layout behavior to Fluid
Select the button, go to Appearance > Presentation > Styling. Go to Chart tab and change Layout behavior to Fluid.

That is it! It should make the magic.
 
Regards,
Mark Costa

 

 

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com