Apply line break formatting in to personalisation tokens in email
With personalisation tokens we can inset text into emails based on the relevant contact, company etc data.
However at the moment if you have a multi line text field with line breaks and paragraphs, this formatting will show correctly in HubSpot on the contact record, but in the resulting email there will be no line breaks and so the email content is a jumble into one paragraph.
Example: " ID: 1234 Name: John Details: These are fake details Number: 001122334455 " gets formatted as: " ID: 1234 Name: John Details: These are fake details Number: 001122334455 "
You could try adding line breaks in your property, and that should break the lines in the email as well when using multi-line text personalization tokens.
Add <br> in your property
This is how the sent email with the token will look like.
Thanks for pointing that out for anyone looking! For the HubSpot users I've seen needing this, having to add the HTML wouldn't really fit because it's usually something like a 'Ticket description' which is typed up organically by reps, but needs to be resent via automation.
I've just realised that this thread is about something else (personalisation tokens in email), but with the similar issue - but I can't delete my comment!
Would be very helpful for my business to be able to use multi-line text fields for lists that can be used in notes, tasks & emails through tokens. Having the formatting removed makes this not usable.
@Neal When I encountered this issue myself I was very frustrated, since you would think that multi-line text would display as multi-line text. When I saw the workaround @jieyintan offered I was happy that this was possible in some way, albiet a bit janky. It appears that recent changes Hubspot made have removed that workaround and I am now frustrated again and annoyed that Hubspot did not address this issue when they rolled out these changes.
We need the ability to display the information in a multi-line text personalization token property on multiple lines in our emails.
A possible solution... I haven't tried this in email templates because I haven't started creating any yet, but I did do this in the beta for modifiable quote templates.
I wanted the product line item description to honour line breaks, obvoiusly. I noticed it worked on the prebuilt system quote templates so I inspected these and found hubspot use the "<pre>" html tag. As w3schools states, "The <pre> tag defines preformatted text". I added this to the quote template and it worked!
@MelindaNelson just to clarify while this may work in internal emails, it no longer works in external marketing emails. Here is an excerpt from my discussion with Hubspot support about this issue:
I would like to confirm that line breaks (and pre-formatted html) work only for internal emails.
Please fix this as it is prohibiting on sending emails with a proper look and feel.
This is crucial when you do not have the liberty to create multiple contact properties (using the API) or want to simply show a list(!!!) and even more when combined with the inability to use Timeline Event tokens as personalization tokens in email templates (so we have to map them to contact properties etc.).
@JBrake@Mike_Eastwood Please read the original question before posting. OP is asking for Marketing Emails, not pages or templates.
"Please note that using filters on any personalization variables (such as but not limited to contacts, company, and deal variables) is not currently supported for email in HubSpot due to how emails are rendered. Filters can be applied to these properties on HubSpot CMS page and blog templates." Source
@btws@bradgerlach Its odd that this did not work for me in May, but it does indeed work for me now in marketing emails, 3 months later. Thank you both.