Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I add a newline or linebreak in a Confiform textarea type field?


I have a textarea field that must show multiple lines in different lines. The field is populated using a form field rule like this: 

lookupResult=US: [entry.lookupResultPSAN]  UK:[entry.lookupResultPPEP] France:[entry.lookupResultPAM]

The bolded part appears on one line, and then the value should appear in the next line. 

I tried \n and \\ , but neither seems to work. My output always appears like this:

US:\n<output> UK:\\ <output>France: <output>

What can I use as newline character when assigning values to show in a textarea?

2 answers

1 accepted

\n makes the next line

I tried \n but it shows up as \n in my output form.  How do I stop it from showing as \n and just have the data displayed on the next line? Are there spaces or quotes to be added?

Sorry, it must be \\n

(double slash n... seems to be removed from my previous answer)

See the demo below 

Like VD likes this

Thanks a lot!  \\n worked like a charm to add line breaks!

Hello @Alex Medved _ConfiForms_

is it possible to also use bold text and italics? I tried some <b></b> stuff, but could not manage to do it.

In my case it is a "Rules for Definition" with a value to set. The line breaks worked fine for me. 

Thank you in advance!

Textarea is not an HTML (holding) field, so you cannot use HTML tags there

Like Noah Leu likes this

Thank you! That response was insanely fast! 

ConfiForms has fields that can hold the HTML - you can use those or even "textarea", but when you reference this field via ConfiForms Field macro then you can use "renderAsHtml" function

Something like



Hi guys.

I am having problems with something similar, but in my case I try to convert a smart multiselect field in a textarea with different lines. Imagine the multiselect field has been chosen with three different values: MADRID BARCELONA VALENCIA.

I want to show the result in different lines:




How should I do it? Appending \\n to the following chain: [entry.mymultiselectfield.transform(label).append(\\n)]

A little bit lost with this.

It is about appending \\n to each label..

Like Sopaboba likes this

Too busy today at the office. I will try tomorrow, but I am totally sure it will work. Thanks again.

Have a related question related to line breaks.

I am trying to pass an Acceptance Criteria to our JIRA tickets from a ConfiForm. The Acceptance Criteria is hardcoded in a hidden field. There are two bullets for the Acceptance Criteria. Trying to get them on different lines but nothing works. Here is the linebreak attempt:


Result I get is this:


Any help will be appreciated. 

@Alex Medved _ConfiForms_  any ideas?

Try setting with one \


As this is not a parameter to function where you need to escape it with a double \\

Like Tanmay Gadkari likes this

Brilliant!! Worked like a charm... Thanks so much @Alex Medved _ConfiForms_ !!! 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

767 views 5 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you