Loading
Issue #3508727: Ignore "Required" field overrides for fields unused by the country's address format
A field-instance "Required" override for a field like administrative_area was enforced even for countries whose address format doesn't use that field at all (e.g. Sweden has no administrative area). The widget already hides such fields, but validation still demanded a value for them, producing entity validation errors that could never be resolved through the form.
getConstraints() now drops "Required" overrides for fields that aren't part of the current country's address format before building the AddressFormat constraint.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Closes #3508727