Lead Form Tokens

Prev Next

Personalizing with Lead Forms

Tokens can be auto-filled based on data captured from lead forms - whether you're using Storylane’s native form or a custom one like HubSpot or Marketo.

✅ Storylane Lead Form

Tokens like {{email}}, {{first_name}}, {{last_name}}, and {{company}} populate automatically from form inputs.

🛠 Custom Forms (HubSpot, Marketo, etc.)

Use cross-origin messaging to pass values into the demo:

Example (HubSpot):

window.parent.postMessage({
  message: 'storylane-token-submit',
  payload: {
    token: {first_name: "John", last_name: "Doe"}
  }
}, '*');

Example (Marketo):

MktoForms2.loadForm("//test.storylane.io", "###-####-####", ####, function(form) {
  form.onSuccess(function(){
    var vals = form.vals();
    window.parent.postMessage({
      message: 'storylane-token-submit',
      payload: { token: { first_name: vals.first_name, last_name: vals.last_name } }
    }, '*');
  });
});

🔗 Personalizing via URL Parameters

You can personalize a demo just by passing token values in the URL.

Example:

https://app.storylane.io/share/demo123?token[first_name]=Jane&token[company]=Acme

CRM & Marketing Platform Integrations

HubSpot:

?token[first_name]={{contact.firstname}}&token[company]={{contact.company}}

Marketo:

?email={{lead.Email Address:default=noemail}}

Pardot:

?email={{Recipient.Email}}

ActiveCampaign:

?email=%EMAIL%

Lemlist:

?email={{email}}