Do you want to append a string of text (or characters) before and after the Merge Tag output and keep it empty if the field is empty? With the gwp_append Merge Tag Modifier from Advanced Merge Tags you can do that. We’ll walk you through it step by step.
Adding text before Merge Tag output
To add text at the beginning of the Merge Tag output, use the following Merge Tag Modifier:
{Organization:1:gwp_append before=" - "}
Client example: We have a client with Forms that have a Gravity Forms Single Line Text Field where site visitors can enter their organization. This field is not required, because not everybody is part of an organization. In the e-mail that is send we want to add the organisation to the Subject of the e-mail. In case there is an organization filled in, we want to add a space, a dash and another space in front of the output. With the above modifier, we can do that. There will be no dash in case there is no value available.
Adding text after the Merge Tag output
There are also cases where you want to add something after the output, for example adding some kind of metrics or even a whole string in case something is filled in. You can do that like this:
{Organization:1:gwp_append after=" MWh"}
This will output the value (for example a number) and adds the abbreviation of megawatt hour to the output, if the field value is not empty.
Adding text both before and after the Merge Tag ouput
You can also add both text before and after the Merge Tag ouput of the Gravity Forms field. This examples adds a dash in front of the ouput and a dash after the ouput and will only show if there is a value filled in.
{Organization:1:gwp_append before=" - " after=" - "}
Try it in the demo
Read tutorials about
Gravity Flow Form Submission Step Tutorial
The Gravity Flow Form Submission step pauses a workflow until another form is submitted, then continues once the handoff is complete. This guide shows how to connect two forms, prefill fields with mapping, send the correct secure link, and troubleshoot the most common “workflow didn’t move” issues.
Gravity Flow Delete an Entry Step Tutorial
The Gravity Flow Delete Entry step lets you trash or permanently remove Gravity Forms entries as part of a workflow. This guide covers the key settings, scheduling options (delay or date-based), and safe testing tips so you can follow retention and privacy rules with confidence.
Gravity Flow Update Fields Step Tutorial
The Gravity Flow Update Fields step pulls values from another entry and writes them into the current entry, so your workflow can route using “live” data. This tutorial covers source form selection, entry lookup with filters and sorting, field mapping, and quick testing.
Gravity Flow Update an Entry Step Tutorial
The Gravity Flow Update Entry step lets you update an existing Gravity Forms entry using a stored Entry ID and field mapping. This guide shows a simple parent-child setup where a Task Tracker workflow pushes status updates back into the original Request Form entry.