Skip to main content

Insert answers with merge tags

What it does​

A merge tag is a placeholder in curly braces, such as {{var field:your_name}}. When WebForms sends the email, it puts the visitor's answer in its place. Tags also give the reference number, the form name, the date and a table of all answers.

You insert tags with the {..} button next to Subject, Preheader and the message editor on a notification's page. Confirmation messages have a shorter list of their own.

Before you start​

  • The form has a notification. See Notify your team.
  • The fields you want to quote are on the published form. A field tag names the field by its field code: see Field codes.

Steps​

Insert a tag in an email​

  1. Go to Content → WebForms → Manage Forms.

  2. Click the form's name.

  3. Click Notifications in the list of sections on the left.

  4. Click the name of the notification. Its page opens.

  5. In the Message section, click where the tag should go: in Subject, in Preheader or in the text.

  6. Click {..}. For Subject and Preheader it's at the right of the box. For the text, it's above the editor, next to Show / Hide Editor.

  7. If you need to find a field, type part of its name in Search fields.... The menu keeps only the items that match.

    The {..} menu with name typed in the search box: Form Name, Product Name, Submitter Name, Store Name, Store Group and the field Your name
  8. Select the item. The menu groups the items under Form, Submission, Submitter, Store and Fields. Fields lists your form's fields by their labels.

    The tag appears where you clicked, for example {{var field:your_name}}.

  9. If you want all answers in the text at once, click {..} above the editor again and select All Fields under Other. It prints a table of the answers, each next to the field's label.

  10. Check the Preview on the right. It fills the tags with sample values.

  11. Click Save.

Show a line only when the visitor answered​

  1. In the editor, write the line that should depend on the answer.

  2. Put {{depend field:message}} in front of it, with the tag name of your field after the word "depend".

  3. Put {{/depend}} after it. The result reads:

    {{depend field:message}}The visitor added a message.{{/depend}}

  4. Click Save.

When the Message field is empty, nothing between the two tags is printed. The preset texts use this to leave out the visitor's name or address when there is none.

Use a tag in a confirmation message​

The message a visitor sees on the page after sending has its own Insert button, with two tags: Response Summary and Reference Number. See Confirmation messages.

Use a field in the form's own settings​

The Submitter Name setting of a form takes a field in a shorter form, without the word "var", such as {{field:your_name}}. See Form settings.

What you should see​

Send the form on your store and open the email:

  • Each field tag shows the visitor's answer. For a field with options, it shows the option as the visitor saw it, such as "Sofas", not the stored value.
  • Reference Number shows the submission's reference number, such as "WF-2026-006192".
  • A tag whose answer is empty prints nothing. Text around it still prints, unless you put it inside {{depend …}}.

Limits​

  • In a confirmation message shown on the page, only Response Summary works. Reference Number comes out empty there, and so does any other tag you type in by hand, such as a field tag or {{var form:name}}.
  • The {..} menu of Subject and Preheader doesn't offer All Fields, Conversation or links.
  • Some tags print only in emails to your team. In an email to the visitor, Submission Subject, Submitted From URL and Submitted From Page print nothing. See Merge tags.
  • WebForms doesn't check the spelling of a field tag you type yourself. A misspelled tag saves without a warning and prints nothing.
  • Emails sent on other events, such as a status change, offer more tags. See Notification triggers.

Troubleshooting​

  • A field tag prints nothing. The visitor left the field empty, or the field code in the tag is wrong. Remove the tag and insert it again from {..}.
  • The confirmation message says "Your reference is ." with nothing in between. See Limits.

What's next​

Applies to WebForms 4Last reviewed October 14, 2026