• Resolved bhekzinto

    (@bhekzinto)


    How to remove “Fields marked with an * are required” and the asterisks on those fileds. On prevois versions of Ninja Forms there was such a setting but i don’t see it on Ninja Forms 3.

    • This topic was modified 8 years, 5 months ago by bhekzinto.
    • This topic was modified 8 years, 5 months ago by bhekzinto.
Viewing 4 replies - 1 through 4 (of 4 total)
  • If you want all of the starts to completely disappear, you could just add this to your css:

    .ninja-forms-req-symbol{
    display:none;
    }

    Otherwise you can do it specifically to each field you want to remove it from, by targeting them in css like this (example):

    #nf-field-X .ninja-forms-req-symbol{
    display:none;
    }

    Of course you should change the “X” with the relevant number of the field.

    • This reply was modified 8 years, 5 months ago by Stolle7.

    Edit: by “starts” i mean “stars”. That just glipped ??

    Thread Starter bhekzinto

    (@bhekzinto)

    Thanks though I would have prefered a php function that removes the wording and the stars.

    This snippet was recently posted on slack.com by one of the developers, which might do what you are looking for.

    add_filter( 'ninja_forms_i18n_front_end', 'my_custom_ninja_forms_i18n_front_end' );
    function my_custom_ninja_forms_i18n_front_end( $strings ) {
        $strings['fieldsMarkedRequired'] = 'YOUR CUSTOM REPLACEMENT TEXT';
        return $strings;
    }

    Of course you should replace the “your custom replacement text” with what you want – in your case, nothing at all – so just leave it like this (you can actually just copy the snippet below):

    add_filter( 'ninja_forms_i18n_front_end', 'my_custom_ninja_forms_i18n_front_end' );
    function my_custom_ninja_forms_i18n_front_end( $strings ) {
        $strings['fieldsMarkedRequired'] = '';
        return $strings;
    }

    Note that i havent tested this, and i’m just copying it from a @kjohnson from https://ninjaformsdev.slack.com/messages/general/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing “Fields marked with an * are required’ is closed to new replies.