Add_filter( 'gform_required_legend', '__return_empty_string' );....doesn't work for me

Hey Milco,

  1. To change the text “*” indicates required fields to a custom text, use the following code in your child theme’s functions.php file or a Code Snippets plugin. Make sure to replace the text within the function below.
add_filter( 'gform_required_legend', function( $legend, $form ) {
    return 'your custom legend here';
}, 10, 2 );

  1. To change the required fields indicator, navigate to Forms Settings → Required Field Indicator and choose the Custom option to insert your own text, as shown in the screenshot below.

:warning: Note: These are the recommended ways to modify these settings without encountering any issues in the future.

Final preview:

:link: Useful Resources: