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 asterisk from required field.

  1. jayd
    Member

    can you remove asterisk from required field. but still require that field?

    Posted 11 years ago on Thursday February 17, 2011 | Permalink
  2. STB
    Member

    add some custom css

    span.gfield_required {
    display:none;
    }
    Posted 11 years ago on Thursday February 17, 2011 | Permalink
  3. Yes, as the user said above you can hide it using CSS. There is no way to remove it. If the field is required you want some sort of visual cue so the user knows it is required.

    Posted 11 years ago on Thursday February 17, 2011 | Permalink
  4. tanksalot
    Member

    Can we replace the asterisk with a written "(required)" or "required" in italics?

    Posted 10 years ago on Tuesday May 24, 2011 | Permalink
  5. You would have to do this with a jQuery snippet added to your theme file. You would look for the "gfield_required" span and replace the contents with whatever you'd like. This of course assumes that you have already enqueued the jQuery library in your theme header.

    jQuery.noConflict();
      jQuery(document).ready(function($) {
    
         $('.gform_wrapper .gfield_required').html('* required');
    
      });

    screenshot: http://grab.by/aczC

    Posted 10 years ago on Tuesday May 24, 2011 | Permalink