Common Plugin code with State field mapping
International Region StateThis example demonstrates how to map variable state field options so that the state/region information returned from the Addressfinder service is used to populate the State select box each time an address is captured.
See the Pen Common Plugin code with State field mapping by Addressfinder (@addressfinder) on CodePen.
Related code examples
-
State mappings example - Ireland & New Zealand - This example shows the configuration required to make Ireland and New Zealand addresses searchable. Includes a distinct list of county/region mappings for each country.#International #Region #State
-
American address autocomplete with state selector - Demonstrates how the widget can update a select element containing all the American states.#International #State
-
Address state filter - The example shows the widget enabled with a state filter. Only addresses from the filtered state(s) are returned in the search results.#Restrict #State
-
American address autocomplete - This example demonstrates searching for an address within the USA.#International
-
Autocomplete Address and Suburb-State-Postcode combination - Demonstrates configuring an autocomplete widget on the address field, as well as on the suburb field. This means that if a user is unable/unwilling to select their address for some reason, then they can still use the location autocomplete, ensuring they have a valid suburb/state/postcode combination.#Location #Postcode #State #Suburb