Premium Gravity Forms add-on
Advanced Merge Tags
Format, calculate and look up form data right inside your merge tags
Advanced Merge Tags is a Gravity Forms add-on that adds 22 modifiers and 16 merge tags. Change capitalization, format and shift dates, count or sum entries, read values from other forms and encrypt data in notifications, confirmations, GravityView and Gravity Flow, without writing PHP.
- 30-day money-back guarantee
- Support from the developers
- Featured on the Gravity Forms blog
- Listed in the official Gravity Forms add-on directory
For Gravity Forms builders who want every email, confirmation and view to show exactly the right value.
No custom code
Formatting a date, capitalizing a name or counting entries normally needs a PHP snippet. Here you add a modifier to the merge tag and you are done.
Works wherever merge tags work
Notifications, confirmations, GravityView and Gravity Flow steps all understand the same modifiers, so you learn them once.
Combine and nest
Chain modifiers and put merge tags inside merge tags to build exactly the value you need.
Try it
This form runs Advanced Merge Tags on this site. Fill in the fields and see the add-on at work.
Use cases
- Address customers by name in the right capitalization in every confirmation email.
- Show a reply deadline three working days after submission with
{gwp_date_created modify="+3 weekdays" format="d-m-Y"}. - Tell returning customers how many open tickets or earlier orders they have.
- Build prefilled links to a follow-up form with URL-encoded values.
- Filter a GravityView view on the logged-in user’s details with
gwp_gview_advanced_filter. - Store sensitive values encrypted and only decrypt them where they are needed.
Features
-
Change text
Change capitalization with
gwp_case, add text before or after a value withgwp_append, and replace, shorten, reverse, clean up or censor text withgwp_replace,gwp_substring,gwp_reverse,gwp_remove_accents,gwp_sanitizeandgwp_censor. Count characters and words withgwp_lengthandgwp_word_count;gwp_word_countandgwp_substringalso work in calculation fields. -
Format and shift dates
Format any date, convert it to another timezone and move it by days, weeks or working days with
gwp_date_format,gwp_date_created,gwp_date_updatedandgwp_now. For example, show a deadline three working days after submission. -
Count, sum and calculate
Count matching entries with
gwp_count_matched_entries, add up a field across entries withgwp_sum_matched_entries_valuesand calculate withgwp_calculate. Round results up, down or to a set number of decimals and show them as a number or currency. -
Use values from other forms
Look up a value in another form with
gwp_get_matched_entry_value, for example a customer’s last order, or show several entries as a list or table withgwp_get_matched_entries_values. Filter and sort the matched entries, and choose per form or per field who may see the values. -
Encode, encrypt and hash
URL-encode and decode values for prefilled links with
gwp_urlencodeandgwp_urldecode, encrypt and decrypt withgwp_encryptandgwp_decrypt, hash withgwp_hashand create unique codes withgwp_generate_token. Pass an encrypted entry ID in a link and show that entry’s values on the next page withgwp_eeid. -
Work with JSON, users and the site
Read a value from a JSON string with
gwp_json_get, show a user’s role withgwp_user_roleand apply modifiers to user and entry details withgwp_userandgwp_entry. Get the page URL or part of it, the parent page slug, a post ID or the current timestamp withgwp_url,gwp_parent_slug,gwp_post_idandgwp_current_timestamp.
Ready to use Advanced Merge Tags? 30-day money-back guarantee.
Buy now from $49Why GravityWP
Gravity Forms specialists since 2014. The people who build the add-ons also answer your questions.
Built the Gravity Forms way
Our add-ons use the official Gravity Forms add-on framework, so settings, feeds and entries work the way you already know.
Compatibility guaranteed
Works with current Gravity Forms versions and certified add-ons like Gravity Flow, GravityView and Gravity Perks. If something conflicts, we fix it.
Support from the developers
Your question goes straight to the people who wrote the code. Good feature requests often make it into the next release.
What customers say
Your plugins have been so incredibly helpful and useful […] Particularly Advanced Merge tags have drastically reduced my reliance on things like nested forms […] SO much easier, more lightweight […]
I really, really appreciate all the time you spent on this, although I would argue that it has made your plugin even more powerful and more useful to everyone ;-)
Thank you for your suite of incredible tools. […] I will explore the advanced merge tags a bit more over these next days because I see some other use cases for us that could help in how we display important data.
Get Advanced Merge Tags
Yearly license with updates and email support. Prices excl. VAT.
30-day money-back guarantee on your first purchase. Refund policy. When a license ends, everything you installed keeps working; only downloads, updates and support stop. Compare all licenses
Questions before you start? Ask us
Frequently Asked Questions
Everywhere Gravity Forms replaces merge tags: notifications, confirmations, default values, GravityView views and Gravity Flow steps. Settings let you also use them in post content and in administrative text fields after submission.
No. You add the modifier to the merge tag in the Gravity Forms editor, for example {Name:1:gwp_case to=upper}, and an optional setting shows an error message when a merge tag is set up wrong.
Yes. Nested modifiers apply several changes in one merge tag, nested merge tags let you use other field values inside a modifier, and regular Gravity Forms modifiers such as :value still work after an advanced modifier.
Lookups such as gwp_get_matched_entry_value only return values after you allow it in that form’s Advanced Merge Tags settings: no access, logged-in users, everyone, or a choice per field. Values for logged-in users also work in notifications and workflow steps that run later on a schedule.
Everything you installed keeps working. You no longer get downloads, updates, new features and support until you renew.
Yes, within 30 days of your first purchase. Request it through your account on my.gravitywp.com. Renewals are not refunded; see the refund policy.
Examples
| Value | Merge tag with modifier | Result |
|---|---|---|
| GravityWP | {Example:1:gwp_case to=upper} | GRAVITYWP |
| Café Entrepôt Façade | {Text:1:gwp_remove_accents} | Cafe Entrepot Facade |
| GravityWP Advanced Merge Tags | {Text:1:gwp_word_count} | 4 |
| GravityWP | {Example:1:gwp_replace search="WP" replace="WordPress"} | GravityWordPress |
| Café 50% off | {Text:1:gwp_urlencode} | Caf%C3%A9+50%25+off |
| client-1003 | {Customer:1:gwp_count_matched_entries form_id="2" match_id="1"} | 2 |
Every modifier and merge tag, with all its options, is explained in the documentation.
Requirements
- Gravity Forms 2.4 or later
- WordPress, tested up to 6.9
- PHP 7.0 or later
- Optional: GravityView and Gravity Flow, for modifiers in views and workflow steps
- Optional: GravityKit Advanced Filters, for
gwp_gview_advanced_filterin view filters - Optional: GP Populate Anything, for modifiers in templates that populate from Gravity Forms entries
- Optional: GravityWP List Number Format, for
gwp_word_countandgwp_substringin List field calculations
Current version 1.9.10, updated 2 September 2026. View the changelog
Documentation and tutorials
- Advanced Merge Tags settings
- Nested Merge Tags
- Nested Modifiers
- Combine regular with advanced modifiers
- Filter and sort matched entries
- Relative Date Formats in Gravity Forms (gwp_date_format, gwp_date_created, gwp_date_updated)
- Show Previous Gravity Forms Submissions Using Advanced Merge Tags
- How to Create an Event Workshop Registration + Waitlist System in WordPress
- Pay per word with starting price for Gravity Forms
Start using Advanced Merge Tags today
Format, calculate and look up form data right inside your merge tags
Buy now from $4930-day money-back guarantee