'Update a field on row(s)' - Text Areas and Line Breaks

  • 1
  • Question
  • Updated 3 months ago
  • Answered
Hey team - I've seen similar posts here:

What I'd like to do is use a text area field value as a variable without losing the line breaks. Here's the use case:

Add a line break and the following phrase: "I like Sprinkles!" (let's call it sprinkles) to the end of a text area field that has several paragraphs (let's call it paragraph):

"I like cupcakes. 

I like frosting. 

But most of all:"

I tried using 'Update a field on row(s)' with the following merge values:

{{paragraph}}&nbsp&#13"{{sprinkles}}

Instead of preserving the line breaks in {{paragraph}}, it displays a result like this:

I like cupcakes.I like frosting.But most of all:I like Sprinkles!


Is there a way to make this work?
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
  • happy

Posted 2 years ago

  • 1
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
Apparently if I put an extra set of {} around my templates, that does the trick.
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Adding {} does the trick because {{{whatever}}} is purely the text rather than being a variable with hooks and other data attached to it. When you put {{whatever}} in, then it becomes a variable interacting with it's surroundings and potentially even affecting them. {{{whatever}}} is just plain text that won't bother anything else around it.
Photo of Khamla Phimmachack

Khamla Phimmachack, Official Rep

  • 1,536 Points 1k badge 2x thumb
Note: there is also another way to accomplish line breaks in a text area mentioned on this post.