Remove the note “* Indicates required fields” which appears at the top of the forms [RESOLVED]

I made a new Gravity form. The form contains certain fields that are required.

So now I have this note that appears on every page which states “* indicated required fields”.

Hie do I remove this from all pages. I do not not need this note.

Please assist in removing it. I set the form’s title and description to False… But the note still comes up. I have no idea how to get rid of it.

add_filter( 'gform_required_legend', '__return_empty_string' );

Reference: gform_required_legend

Just a follow up question to this…I’m trying to remove the quotes around the asterisk so that it reads *indicates required fields without the quotes. Can you please advise how I can go about this? Thanks!

This should get it done…

add_filter( 'gform_required_legend', function( $legend, $form ) {
    return '* indicates required fields';
}, 10, 2 );

Thank you!

1 Like