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

Griffin BrownGriffin Brown Member
edited August 2018 in Questions
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?

Comments

  • Griffin BrownGriffin Brown Member
    edited March 2017
    Apparently if I put an extra set of {} around my templates, that does the trick.
  • Stephen SellsStephen Sells Member
    edited March 2017
    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.
  • Khamla PhimmachackKhamla Phimmachack Skuid Mod, Admin 🛠️ 
    edited August 2018
    Note: there is also another way to accomplish line breaks in a text area mentioned on this post.
Sign In or Register to comment.