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: 27-06-2022

Advanced Merge Tagsv1.1.1

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

Read more

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close