gwp_replace
With the gwp_replace Merge Tag Modifier for Gravity Forms you can search and replace parts of the field value before outputting it to the screen.
:gwp_replace search= replace=
If you want to change the output of a Merge Tag text, use the Modifier like this:
Example | Modifier | Output |
---|---|---|
{Example:1} | GravityWP | |
{Example:1:gwp_replace search=”ravity” replace=”RAVITY”} | :gwp_replace search=”ravity” replace=”RAVITY | GRAVITYWP |
{Example:1:gwp_replace search=”WP” replace=” Forms”} | :gwp_replace search=”WP” replace=” Forms” | Gravity Forms |
Try it
Last updated: 04-04-2022