Documentation

gwp_append

With the gwp_append Merge Tag Modifier for Gravity Forms you can append a string before and/or after the field value, but only if the field value is not empty.

:gwp_append before="" after=""

If you want to change the output of a Merge Tag text, use the Modifier like this:

ExampleModifierOutputInfo
{Example:1} WPValue of the field is ‘WP’
{Example:1:gwp_append before="Gravity" after=" is great"} :gwp_append before="Gravity" after=" is great"GravityWP is greatModifier adds ‘Gravity’ before and ‘ is great’ after the value ‘WP’
{Example:2} (empty field value)Value is empty
{Example:2:gwp_append before="Gravity" after=" is great"}:gwp_append before="Gravity" after=" is great"Modifier doesn’t append, because the value is empty
Examples of possible output. An empty cell means no output.

Try the demo

1Input
2Output

Check also the tutorial Append text before or after Gravity Forms Merge Tag if not empty.

Last updated: 03-12-2022

Advanced Merge Tagsv1.7.1

To use the functionalities described in this documentation, you'll need to get the GravityWP - Advanced Merge Tags add-on.

Read more