Jump to content

New line in custom fields


carlt

Recommended Posts

Hi

Is there a way to put a new line character into a custom field and get it to render in an email template?

I'm setting the custom fields in the BPM based on answers to the Pro Cap questions so that they can be included in an email. However, there are more questions than custom fields - so I was intending to combine more than one answer in each custom field.

I've tried using \r\n in a <pre> tag and If I use <br> or <p> tags in the custom field the less than/greater than characters just get converted into character entities i.e. &lt; &gt;

Or is there another way of doing this?

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

@carlt @nasimg

A new feature has been added to email templates called modifiers which is available from Server Build > 2817 and can be seen documented on our wiki here: https://wiki.hornbill.com/index.php/Email_Templates#Variables

You can add |html to the variable in the email template and it will output HTML and not text.

Kind Regards

Trevor Killick

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...