# Button Text Line Feed with Tag

**URL:** <https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 5, 2026, 1:55pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335 "2026-03-05T13:55:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![automator591](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@automator591](https://forum.inductiveautomation.com/u/automator591)\
**Post date:** [March 5, 2026, 1:55pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/1 "2026-03-05T13:55:28Z")

</div>

I have a perspective button that the text is bound to an indirect memory tag, and I need to insert one or more line feeds. I tried

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/5/9571753d62376474402a622e3c6fa083205f77b9.png)

but that did not work, showing the entire line with the html on the button. I did set the White space to pre-wrap, but that did not work either.

Interestingly enough, it does show the line feed in the value in the tag tree.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bd1e6d895d0f6487fc956ea079dc91ee746dbdb7.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/1/f1672a31f2f61191b3a4836d7d76a86ed2b300f5.png)

---

<div class="post-metadata">

**Author:** ![Lynn\_Martineau](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Lynn\_Martineau](https://forum.inductiveautomation.com/u/Lynn_Martineau)\
**Post date:** [March 5, 2026, 11:04pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/2 "2026-03-05T23:04:52Z")

</div>

hmmm… my Buttons automatically wrap but there are times I want to force nl.  
If anyone has a solution, I’m interested in seeing it but, until then…  
You might try a Markdown component instead.  
The downside is you have to use ‘Mouse Events’ instead of ‘onActionPerformed’

---

<div class="post-metadata">

**Author:** ![automator591](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@automator591](https://forum.inductiveautomation.com/u/automator591)\
**Post date:** [March 6, 2026, 11:59am UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/3 "2026-03-06T11:59:54Z")

</div>

They normally do wrap, but not when I tried to force the line feed. I need to make sure the function is on a separate line, so I need to force the line feed.

---

<div class="post-metadata">

**Author:** ![automator591](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@automator591](https://forum.inductiveautomation.com/u/automator591)\
**Post date:** [March 6, 2026, 12:18pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/4 "2026-03-06T12:18:12Z")

</div>

I tried the Markdown without success there either.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/c/5c71769bb058b1f7c7c86b3231a1e0e98a246d31.png)

---

<div class="post-metadata">

**Author:** ![tgarrison](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tgarrison/32/80965_2.png) [@tgarrison](https://forum.inductiveautomation.com/u/tgarrison)\
**Post date:** [March 6, 2026, 1:18pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/5 "2026-03-06T13:18:59Z")

</div>

Try just using this in the button text:

'Cart Supply \n\nCart Supply\n\nJog'

with your whitespace set to one of the pre-\*

---

<div class="post-metadata">

**Author:** ![Matthew\_Automation](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@Matthew\_Automation](https://forum.inductiveautomation.com/u/Matthew_Automation)\
**Post date:** [March 6, 2026, 2:45pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/6 "2026-03-06T14:45:12Z")

</div>

I know when you are using \n with pre, you need to bind the label to an expression = ‘Cart Supply \n\nCart Supply\n\nJog’ even though it is a static string. For some reason, the pre break has only worked for me in an expression. I am not sure how to apply this same concept when reading from a tag though.

---

<div class="post-metadata">

**Author:** ![automator591](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@automator591](https://forum.inductiveautomation.com/u/automator591)\
**Post date:** [March 6, 2026, 3:19pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/7 "2026-03-06T15:19:17Z")

</div>

set to -pre removed all the work wrap and just did a single line

---

<div class="post-metadata">

**Author:** ![Lynn\_Martineau](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Lynn\_Martineau](https://forum.inductiveautomation.com/u/Lynn_Martineau)\
**Post date:** [March 9, 2026, 12:15pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/8 "2026-03-09T12:15:53Z")

</div>

Markdown is not HTML markup.

These may be helpful for the Markdown component:  
[Perspective - Markdown | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.3/appendix/components/perspective-components/perspective-display-palette/perspective-markdown)  
[Basic Syntax | Markdown Guide](https://markdownguide.offshoot.io/basic-syntax/)

It will look like this when you `edit long/multiline text`:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/8866f235ef1fc05363b0390735cb3aa48610aded.png)

---

<div class="post-metadata">

**Author:** ![Lynn\_Martineau](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Lynn\_Martineau](https://forum.inductiveautomation.com/u/Lynn_Martineau)\
**Post date:** [March 9, 2026, 7:25pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/9 "2026-03-09T19:25:40Z")

</div>

See/vote for Idea [Multi-Line Button control | Voters | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/multi-line-button-control)

---

<div class="post-metadata">

**Author:** ![automator591](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@automator591](https://forum.inductiveautomation.com/u/automator591)\
**Post date:** [March 10, 2026, 7:39pm UTC](https://forum.inductiveautomation.com/t/button-text-line-feed-with-tag/114335/10 "2026-03-10T19:39:03Z")

</div>

I haven’t got to the scripting yet, but it looks promising that I can do the needed formatting. Thank you.
