daan/edd-non-required-state-field

Dynamically detect if State should be a required field, based on the selected Country.

v1.0.1 2025-04-13 10:51 UTC

This package is auto-updated.

Last update: 2025-06-13 11:08:11 UTC


README

Dynamically detect if State should be a required field, based on the selected Country.

For any country with a predefined list of states, e.g. US and CA, the State field is a required field. For any other country, where the State field is a text box, it becomes a non-required entry.

Inspired by and an enhanced version of: http://library.easydigitaldownloads.com/checkout/non-required-card-state.html