Documentation

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.

:gwp_case to=upper|lower|lower_first|upper_first|upper_words

Examples

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

ExampleModifierOutput
{Example:1} GravityWP
{Example:1:gwp_case to=upper} :gwp_case to=upperGRAVITYWP
{Example:1:gwp_case to=lower} :gwp_case to=lowergravitywp
{Example:1:gwp_case to=lower_first} :gwp_case to=lower_firstgravityWP
{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

How can I convert Field Value to UPPERCASE?

 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}

How do I display the text in all lowercase?

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}

How can I capitalize only the first letter of the entire text?

 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}

How do I lowercase only the first letter of the text?

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}

How can I capitalize the first letter of every word in the text?

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

Advanced Merge Tagsv1.9.3

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

Read more