Token with multiple lines | Community
Skip to main content
August 26, 2014
Question

Token with multiple lines

  • August 26, 2014
  • 3 replies
  • 1438 views
Is there a way to insert a token so that it renders multiple lines of data?

For instance, I would like to use a token to past a mailing address so that it shows multiple lines of information rather than having to break up the information into 3 seperate fields (Address line 1, 2, and 3).
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Dory_Viscoglio
Level 10
August 26, 2014
Hi Taylor, you can create a snippet with the different tokens, so that this can be done as a single entry.

Example:

In my tokens:
{{my.Location}}
{{my.Address}}
{{my.City State Zip}}

Create a snippet:
{{my.Location}}
{{my.Address}}
{{my.City State Zip}}

Then you would add the snippet to your page or email. Otherwise, you could just add the three tokens to a text box in the email or landing page. 
August 26, 2014
Can't you make a rich text my token and put the line breaks into the HTML for that token as well? Or is there anything tricky about that approach you've seen in the past?
Dory_Viscoglio
Level 10
August 26, 2014
Ah, yea... Erik's idea would also work. I'm just not sure how spacing would work if you had something like:

Address:  My Place
                123 Main Street
                Anytown, USA 12345

And wanted all of them to line up after Address. Not sure how that would work with the snippet either, though.