Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Unfilled merge tags in form notification emails: how to fix

DLV-017Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Form plugins build notification emails from a template. The template holds merge tags (also called smart tags, mail-tags or placeholders). These are markers that the plugin swaps for the visitor's answers when the form is sent. Examples are {all_fields} in WPForms, [your-name] in Contact Form 7, or {{contact.name}} in GoHighLevel.

Why it costs you leads or sales

The notification is how most small businesses learn about a new enquiry. If it shows no name, email or message, you cannot reply. The lead may be saved in the plugin's entries list, but if nobody opens that screen, the enquiry goes cold.

Where the lead gets lost
  1. Visitor submits formFills in name, email, message
  2. Plugin builds emailTags are not replaced
  3. Owner reads emailSees [your-name] and {all_fields}
  4. Follow-upNo one knows who to contact

The form works and the email arrives, but the lead details never reach the owner.

How to check if your site has it

Test your notification by hand
  1. Submit the live form

    Use a recognisable test name and an email address you control, such as Test Lead 123.

  2. Open the notification

    Check the inbox of the address set as the recipient. Look in spam too.

  3. Read the body and subject

    Look for curly braces {like_this}, square brackets [like-this] or double braces {{like.this}}. Any that remain are unfilled tags.

  4. Compare with the entry

    Open the plugin's entries or submissions list. If the entry has the right data but the email does not, the template is at fault.

Common tag styles and where they are filled in
Plugin or toolTag styleExample
Contact Form 7Square brackets, field name[your-name]
WPFormsCurly braces (Smart Tags){all_fields}
Gravity FormsCurly braces with field ID{all_fields}, {Name:1.3}
GoHighLevelDouble braces (custom values){{contact.first_name}}

How to fix it

The usual causes are below. Work through them in order.

Typical causes and what to do
CauseWhat you seeFix
Field renamed or deletedOnly that tag is rawRe-insert the tag for the current field
Typo or wrong caseOne or more tags rawCopy the tag from the plugin's picker
Tag placed where it is not parsedRaw tag in subject, From or Reply-To onlyUse a tag that the plugin supports in that box
Template pasted from another formMany tags rawRebuild tags for this form
Custom email template or filterAll tags rawDisable the override and retest
Fix by platform
  1. Contact Form 7

    Go to Contact > Contact Forms, open the form and the Mail tab. Each [tag] must match a field name in the Form tab exactly, for example [text* your-name] gives [your-name]. Fix names that do not match, then save.

  2. WPForms

    Go to Settings > Notifications in the form builder. In the Email Message box, click Show Smart Tags and insert from the list rather than typing. Use {all_fields} for the full answers.

  3. Gravity Forms

    Go to Settings > Notifications, open the notification and use the merge tag icon in the Message box to insert fields. Re-insert tags for any field you deleted and re-added, as its ID changes.

  4. Check for overrides

    If you use an email-styling plugin or a custom template, switch it off briefly and retest. Some override the message body and skip tag replacement.

Contact Form 7: tags in the Mail tab must match the Form tabtext
Form tab:
[text* your-name]
[email* your-email]
[textarea your-message]

Mail tab, Message body:
Name: [your-name]
Email: [your-email]
Message: [your-message]
Notification body before and after

Broken

  • Name: [your-name]
  • Email: [your-email]
  • Message: {all_fields}
  • Nothing to reply to

Fixed

  • Name: Test Lead 123
  • Email: test@example.com
  • Message: Hello, I'd like a quote
  • Ready to reply to

How to confirm it's fixed

Confirmation checks
  • Submit the live form with a clear test name, email and message
  • Open the notification and confirm every value appears
  • Search the body and subject for {, [ and {{ characters
  • Check the Reply-To address is the test lead's email
  • Compare the email with the saved entry for a match
  • Repeat for every form that sends a notification

How to prevent it happening again

Prevention habits
  • After renaming, deleting or re-adding a field, open the notification and re-check its tags
  • Insert tags from the picker rather than typing them
  • After plugin or theme updates, send a test submission
  • When you duplicate a form, review the copied notification
  • Keep a short note of which forms send which emails
  • Run an automated test on a schedule, not only after edits
How it often unfolds (Example)
  1. Day 1

    Someone renames the Name field in the form editor.

  2. Day 1

    The notification still uses the old tag and starts sending it raw.

  3. Day 2 to 10

    Emails keep arriving, so nobody suspects a problem. Leads go unanswered.

  4. Day 11

    A customer asks why nobody replied. The tag is fixed.

How FunnelGuard handles this

FunnelGuard detects this issue. A robot visitor fills in and submits your real form on a schedule, using marked test data. It then checks the notification email that reaches the inbox for leftover merge tags, such as {all_fields} or [your-name]. This is the no_merge_tags check. If tags are still raw, the check fails.

Questions people ask

Why does my contact form email show [your-name] instead of the name?

The plugin did not replace the tag. In Contact Form 7 this usually means the tag in the Mail tab does not match a field name in the Form tab. Fix the spelling, make the names identical, save, and send a test.

Why is {all_fields} showing in my WPForms notification?

The Smart Tag was not parsed. Common causes are a typo, a custom email template or add-on that overrides the message, or a tag typed in a place that does not accept it. Re-insert {all_fields} using Show Smart Tags in Settings > Notifications and disable any email override to test.

How do I fix merge tags not replaced in form emails?

Open the notification settings, delete the broken tags and re-insert them with the plugin's picker. Make sure each tag refers to an existing field. Then submit a test and read the email to confirm.

Why did my form emails break after I edited the form?

Renaming or deleting a field can leave the notification pointing at something that no longer exists. In some plugins, re-adding a field also gives it a new ID. Review every tag in the notification after editing a form.

Can merge tags fail in the subject line but work in the body?

Yes. Some plugins only parse certain tags in the subject, From or Reply-To boxes. Use the tags the picker offers for that box, and test it.

Is the lead data lost if the email shows raw tags?

Often not. Many form plugins also store entries, so you can read the lead there. Check the entries or submissions screen, then fix the email so you do not rely on it.

How can I be alerted if my notification emails show raw tags?

Test the form on a schedule and read the resulting email. FunnelGuard does this with a robot visitor and fails the no_merge_tags check if raw placeholders remain, then sends one alert after a second-region re-check.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_merge_tags.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.