gwp_case
With the gwp_case Merge Tag Modifier for Gravity Forms you can easily change the text value to uppercase, lowercase, first character uppercase, first character lowercase or uppercase all the words.
Examples
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_case to=upper} | :gwp_case to=upper | GRAVITYWP |
{Example:1:gwp_case to=lower} | :gwp_case to=lower | gravitywp |
{Example:1:gwp_case to=lower_first} | :gwp_case to=lower_first | gravityWP |
{Example:2} | gravitywp add-on | |
{Example:2:gwp_case to=upper_first} | :gwp_case to=upper_first | Gravitywp add-on |
{Example:2:gwp_case to=upper_words} | :gwp_case to=upper_words | Gravitywp Add-on |
Frequently Asked Questions
If you want to display the form value in all capital letters, use :gwp_case to=upper. This ensures the entire text is shown in uppercase, no matter how it was entered.{Full Name:7:gwp_case to=upper}
To turn the entire text to lowercase, use :gwp_case to=lower. This is great when you want consistent formatting, even if users typed capital letters.{Full Name:7:gwp_case to=lower}
Use :gwp_case to=upper_first. This will uppercase only the first character of the text and leave the rest unchanged.{Full Name:7:gwp_case to=upper_first}
Use :gwp_case to=lower_first. This forces the first character of the text to lowercase, leaving the rest as is.
{Full Name:7:gwp_case to=lower_first}
Use :gwp_case to=upper_words. This makes each word in the text start with a capital letter, similar to “title case.”
{Full Name:7:gwp_case to=upper_words}
Last updated: 17-07-2025