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.
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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.