Add new line through script in message text in email template

rad2
Mega Sage

I have a field that has new lines. the new lines are displayed as <br/> instead of displaying in a new line. can this be resolved somehow.

Example - 

backend on form

field_a  = "ATTENDEE1

                  ATTENDEE2

                  ATTENDEE3"

 

on email_template --> message text field

<br/>ATTENDEE1<br/>ATTENDEE2<br/>ATTENDEE3

7 REPLIES 7

Prashant Ahire
Kilo Sage
template.print("ATTENDEE1");
template.print("<br>");
template.print("ATTENDEE1" );
template.print("<br>");

Please check and Mark Correct and Helpful if it really helps you.
Regards,
Prashant Ahire

template.print isnt working in the "Message Text" of "Email Template" form

Prashant Ahire
Kilo Sage

You will have to use Message HTML insted of Message text

When i remove the details from "Message Text" and add it in "Message HTML" , the body text in the email sent is empty