Home Help Create links with dynamic variables

Create links with dynamic variables

You can create a link whose destination changes according to a variable selected when the template is used.

This is useful for appointment links, help articles, customer portals, order pages, or other approved destinations.

Start with a standard link

A basic HTML link looks like this:

<a href="https://example.com">Open the page</a>

The URL controls where the link goes. The text between the opening and closing tags is what the reader sees.

Make the destination dynamic

  1. Create a Text Field or Multiple Choices variable for the destination URL.
  2. Use complete HTTPS URLs as the available values.
  3. Add an HTML link to the template.
  4. Replace the fixed URL inside href with the variable.
  5. Select the complete link in the editor.
  6. Enable Treat as code.
  7. Save the template.
  8. Test every available destination.

For example, the reader might always see Book a meeting, while the selected variable determines which approved scheduling page opens.

Can the visible link text be dynamic too?

Yes. You can place a variable where the visible link text appears. Test the result carefully, especially if the value may contain punctuation or formatting.

Why is the HTML appearing as plain text?

Check that:

  • The complete link is marked with Treat as code.
  • The opening and closing tags are present.
  • The URL begins with https://.
  • Quotation marks are paired correctly.
  • The destination supports rich-text links.

Some text fields accept only plain text. In those fields, the HTML may appear as text instead of becoming a clickable link.

A quick safety note

Use URLs from sources you trust. Do not allow unreviewed or untrusted input to become a link destination.

Dynamic should mean flexible, not mysterious.


Need more help?

Send us an email or chat with us using the button below. Our team will get back to you as quickly as possible!

Ask our community

Join our private Facebook group where you can ask tips and tricks to other typedesk users!


© Typedesk 2026. All rights reserved.