Archive for September, 2020

How to Capture a User’s State or Province on a Form

FormSmarts' Country Subdivision selector allows you to easily capture a visitor's state, province or other administrative country subdivision on a form.

  • The person's state, province, county, etc. is automatically preselected from their approximate IP address location, so the form control requires no or minimal action from the user
  • The Country Subdivision (CSD) selector works in all countries and territories worldwide
  • The country subdivisions listed are those in use in each country: state in the US, India and Australia, province in Canada, prefecture in Japan, land in Germany, county or borough in the UK, …
  • Please try this demo.

How to Select a Subdivision of Another Country

When we ask a user to provide their state or province on a form, we usually want to collect their state or province of residence, which is most likely (but not always) a subdivision of the same country they are submitting the form from.

For instance, if we need to get a visitor's country of birth or travel destination, this might not be the case, so we need to allow users to select an administrative subdivision in another country. We do this by adding a Country Selector before the Country Subdivision selector, as illustrated below.

User Management Dashboard

If a user changes the country selected, the list of subdivisions is updated accordingly. To allow more than one set of country & subdivision selectors on a form, a country selector is associated with the closest country subdivision selector it precedes.

For example, if a user changes their Country of Birth above, only the country subdivisions in the State/Province of Birth selector will be updated, those in the State/Province of Residence won't be affected.

To ensure a form works in all scenarios, we recommend you always add a Country Selector on a form whenever you include a Country Subdivision selector. Remember: because the country is automatically preselected, adding a Country Selector adds little if any friction/complexity to a form.

About the Form Builder Blog

The Online Form Builder Blog is published by FormSmarts, a web form service providing all you need to create a form and publish it online in minutes. FormSmarts makes it easy to build a form and embed it on your site. You can then get form submissions by email or store them on FormSmarts and download an Excel report. Learn more about the many other benefits of FormSmarts.