Tokens allow you to inject data from various sources into your forms, creating dynamic and personalized user experiences. This guide explains how to implement and use tokens across different areas of Formulayt.

What Are Tokens?

Tokens are dynamic placeholders that automatically populate with data from various sources when your forms load or when specific conditions are met. They enable you to create personalized content and messaging without manual intervention.

Where You Can Use Tokens

The following areas support tokens and include a special button (represented by a {*} icon) to assist in adding tokens:

  • Custom content fields, including rule actions to change content
  • Custom formulas (both in basic pre-population and in rule actions to change field values)
  • Gate messaging (form intro, thank you, and return messages)

How Tokens Work

Real-Time Updates

For custom content fields, tokens update in real-time as users interact with your forms. This means content can change dynamically based on user inputs or other conditions.

Static Updates

For gate messaging, tokens are populated when the message first displays and won't update after that point.

Adding Tokens to Your Forms

To add tokens to supported areas:

  1. Navigate to the field or area where you want to use tokens
  2. Look for the {*} icon button
  3. Click the button to access available token options
  4. Select the appropriate token for your needs

Example Use Cases

Tokens are particularly useful for:

  • Personalizing welcome messages with user data
  • Creating dynamic privacy policy links based on user location
  • Customizing form content based on previous user selections
  • Automatically populating fields with calculated values

Example - Dynamically Update Privacy Policy Link Based On Language

To get started create a hidden field which will store you various privacy policy URLs.



Then create a rule which update the Privacy Policy URL depending on the language. 



Repeat this for each language e.g. https://formulayt.com/legal/privacy-policy/fr. This will ensure that if a user is on a French language gate they will be provided with a link to a French privacy policy page. 



Then goto the custom content field that will be displayed on the form and click the {*} icon to insert a token.



Select your Privacy Policy URL hidden field. You can also set a default value here. 



In this example the words privacy policy are being used as a hyperlink populated by the token. 



Below is an example of what this would like like on a gate.