This page may contain affiliate links. Please read my disclaimer for more information.

Remove Gravity Forms Required Field Indicator

  |  by Chris Eggleston

Symptoms

You’ve just built a new Gravity Forms form and embedded it in your page, but when you preview the page you see a notice that reads, “*” indicates required fields. Maybe you think this is annoying and overstating the obvious, so you want to know how to remove this notice from your forms.

How To Fix It

Currently, there is no setting that you can use to easily disable this notice as you might expect to find in the form settings. Instead, you will need to use a simple code snippet.

The snippet below can be used for all forms across your site:

add_filter( 'gform_required_legend', '__return_empty_string' );

This next snippet can be used to disable this indicator for a single form (where 1 equals the forms ID number):

add_filter( 'gform_required_legend_1', '__return_empty_string' );

If you plan to use the snippet above, you will need to replace the 1 with your forms ID number.

Where to put this code

You can add this snippet to your themes functions.php file, or you can use a functionality plugin like WPCodeBox (recommended).

Need More Help?

If you have an active Gravity Forms license, you can also open a support ticket here.

If you still need help and Gravity Forms support isn’t an option, feel free to use the comments or chat options below.

Photo of author
About the Author
Chris Eggleston
I’m not just a Gravity Forms enthusiast; I’m a dedicated father and loving husband. As the owner of WP Mantis & Marketing Draft, I’m on a mission to simplify the WordPress experience for site owners. I try to bring a unique perspective to the Gravity Forms community.
Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments