Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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?

1 answer

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!

Suggest an answer

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

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

198 views 6 8
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