Skip to main content
Ashley_Rodwell
Level 1
December 16, 2019
Question

Using a Token to display a database field

  • December 16, 2019
  • 1 reply
  • 2201 views

I want to use a token to display a database field, I have it setup as below;

But it renders as the below on the page;

Does anyone know of a way to use a token to display a database field?

I did enter "{{lead.Membership Package}}" on the template HTML, but it wasnt displaying the values on test users, despite the field having data in.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Michael_Florin-2
Level 10
December 16, 2019

Your first setup must fail, as you cannot use a token within a token.

But if you put {{lead.Membership Package}} in the HTML, and this field has a value for your test member, that value should be displayed. How did you test this? You can either

  • preview your email and use "View by person"
  • send the email in a real send email flow step
  • send email as a sample and populate the Person field
Ashley_Rodwell
Level 1
December 16, 2019

Sorry, I should have been more clear in the content.

This is for a Landing Page, not an email. 

Michael_Florin-2
Level 10
December 16, 2019

Ah, okay. Doesn't make that big a difference. To test, send a real email from an email sending flow step to your test person with a link to that landing page in it. After clicking the link you should see that landing page with a populated token. The email link needs to be tracked, so the LP URL after clicking the link needs to look something like this: 

www.yourdomain.com/landingpage/?mkt_tok=verylongstring