When using Address field, how can you make the Zip Code subfield required?

I am using the Address field in a form that auto creates the different address sub-fields. We would like to make only the “Zip Code” sub-field required. How can we accomplish this?

You can use the gform_field_validation filter in the theme functions.php file or a custom functions plugin to perform custom validation of the address field. See the example here: https://docs.gravityforms.com/gform_field_validation/#3-address-field-validation

1 Like
© 2008 - 2019. Gravity Forms is a project by Rocketgenius Inc.