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.

Individually set "Required / Not Required" for each input of the address field.

  1. I think it would be great if you could set "required" for each individual input of the address field. Sometimes it's required that users will input data into all fields and sometimes it is not. For example, most of my customers would be in Ireland, and in Ireland Post / Zip code is only used within Dublin. It's a pain having to set that all fields are required, as then users outside Dublin have to enter gibberish in the Post Code / Zip input just to fill out the form. My only alternatives is to set the entire Address field as un-required, or to enter each field as individual inputs which is a pain. A solution to this would be greatly appreciated.

    Cheers

    Posted 13 years ago on Thursday November 3, 2011 | Permalink
  2. Hiya I had the same problem, you can perform validation in 1.6+
    Have a look at http://www.gravityhelp.com/documentation/page/Gform_field_validation
    Worked for me, as I didn't want the Address 2 field to be required even though I had set the address to be required.

    Cheers

    Ben

    Posted 13 years ago on Wednesday November 16, 2011 | Permalink
  3. Address 2 field shouldn't be required when you have set the Address field to be required. Only the Address Line 1 field will be required.

    Currently the only way to change the validation with the Address field is going to be as Ben explained above, via custom validation using the gform_field_validation hook.

    Posted 13 years ago on Wednesday November 16, 2011 | Permalink

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