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.

Address Line 2 - Required

  1. sbruner
    Member

    When using the address field block and marking it required, all labels (address, address line 2, city, etc) are marked with an asterisk. However, Address Line 2, is not really required.

    Is there an easy way to remove the asterisk from "Address Line 2"? I have 12 forms like this, and rather not rewrite them all.

    Form example: http://dev.commentarymagazine.com/subscribe/give-a-gift/

    Posted 13 years ago on Tuesday December 7, 2010 | Permalink
  2. Actually, the default form functionality doesn't work this way. You can see the screeshot below.

    screenshot: http://grab.by/7LXu

    You have something custom (jQuery script apparently) in your theme that's causing that. If you notice, your sub-labels are positioned above the fields too - again, not the default GF layout.

    This works for the form on the page/form you referenced above.

    body .gform_wrapper span#input_2_7_2_container span.gfield_required {display:none}

    screenshot: http://grab.by/7LWF

    Posted 13 years ago on Tuesday December 7, 2010 | Permalink
  3. sbruner
    Member

    Thanks. Picked this up from another dev and didn't know. I found the JS.

    Thanks

    Posted 13 years ago on Tuesday December 7, 2010 | Permalink

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