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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,456,199
Community Members
 
Community Events
176
Community Groups

How to properly update Textarea field with Line Break via REST API

I have an issue with updating  Textarea field with Line Break via REST API. 

For example, if I update a field via API like this: (%0A is the URL encode of linebreak)

/ajax/confiforms/rest/update.action?pageId=1234&f=formname&q=entrynumber:1&fv=text:Line1Content%0ALine2Content

The tableview will not show the linebreak: it displays it without linebreak. However, if I edit it, it does show the linebreak properly.

I tried to use [entry.text.replaceCRLFWithBR] & listview instead, it doesn't work either.

issue1.png

 

If I use the edit window to "save" the edit, the tableview will show the linebreak properly. 

- The top one below is the entry with "edit" window from tableview.

- The bottom one below is the entry updated via REST API.

issue2.PNG

 

Any idea what I should do to fix the issue? May I should pass something else as linebreak for REST API instead of %0A? 

Thank you.

1 answer

1 accepted

0 votes
Answer accepted

Hi

Try the %0d instead

Alex

Excellent answer. Thank you again for the prompt response and it saves me a lot of time trying to figure it out. @Alex Medved _ConfiForms_ You are awesome as always.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events