PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Remove required field asterisk

  1. Jay
    Member

    From a usability and design standpoint, required field asterisk generation should be removed, and not be something that turns on/off by default.

    If a user wants to denote a field as required with an asterisk, they can add it to the field label. Sometimes, every form field is required, and its easier to simply insert a html field with "all fields required", than to flood the form with asterisks.

    Modification: form_display.php - Line 1755
    $required_div = IS_ADMIN ? sprintf("<span class='gfield_required'>%s</span>", $field["isRequired"] ? "*" : "") : "";

    note: || rgar($field, "isRequired") has been removed.

    Posted 13 years ago on Sunday November 13, 2011 | Permalink
  2. You can also hide it with CSS rather than hacking the plugin.

    [css]
    .gform_wrapper .gfield_required {
    display: none;
    }

    Thank you for the usability suggestion.

    Posted 13 years ago on Sunday November 13, 2011 | Permalink

This topic has been resolved and has been closed to new replies.