Skip to main content
Question

Expression builder with Liquid expressions

  • December 30, 2024
  • 4 replies
  • 57 views

Forum|alt.badge.img

How can I insert newlines or spaces while using the expression builder with append? I want the appended values to be displayed on separate lines.

 

{{ ' name = "' | append: ticket.actual_requester.name | append: '" ' 
   | append: 'email = "' | append: ticket.actual_requester.email | append: '" ' }}

 

\n before the email does not seem to work.

 


 

Did this topic help you find an answer to your question?

4 replies

Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
Krishnae wrote:

How can I insert newlines or spaces while using the expression builder with append? I want the appended values to be displayed on separate lines.

 

{{ ' name = "' | append: ticket.actual_requester.name | append: '" ' 
   | append: 'email = "' | append: ticket.actual_requester.email | append: '" ' }}

 

\n before the email does not seem to work.

 


 

Are you going to send this in a API or post it in a e-mail/note? 
Better using HTML then <br> for new line. 


Forum|alt.badge.img
  • Author
  • Apprentice
  • 1 reply
  • December 31, 2024

@Daniel Söderlund yes, this is going to be sent in an API call and this data will be updated in an existing file. 


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
Krishnae wrote:

@Daniel Söderlund yes, this is going to be sent in an API call and this data will be updated in an existing file. 

Hmm, why do you use Liquid filter ? 


mahendarsingh
Community Manager
Forum|alt.badge.img+7
  • Community Manager
  • 97 replies
  • January 3, 2025

Hi ​@Krishnae , as ​@Daniel Söderlund highlighted we are curious about your application with liquid filter.


Reply