How to select the state on country bases in drupal.I have different country and states now I want to select the state on the country bases. I have installed the webform module and webform conditional field module. How I can do this task.

  • Do you mean have a different set of states depending on what country you select? – Matt Mar 24 '17 at 18:08
  • Yes, I have to select states on country bases @Matt – Pkumar Thakur Mar 26 '17 at 12:36
  • Possible duplicate of Add country, state dropdown to user registrtaion – Japo Domingo Mar 26 '17 at 22:27
  • I have to do this in webform with Id like 1123|Andorra @JapoDomingo – Pkumar Thakur Mar 27 '17 at 4:49
  • Yup there are options in the answers on methods of importing into your taxonomy. :) – Japo Domingo Mar 27 '17 at 21:24

Use the Webform Simple Hierarchical Select and the Simple hierarchical select modules; just create a vocabulary and add countries and states hierarchically.

If you don't have vocabularies for countries and states, using the Taxonomy Manager module helps you to import countries and states from a simple list like the following.

United Stated
- Alabama
- Washington
- Tehran
- Mbambi    
| improve this answer | |

You can use a combination of the Webform Simple Hierarchical Select and the Simple hierarchical select modules. In this way, you can make the latter module work with the Webform module.

If you need a list of countries/states, you can get it from Lists of Options. This is a tutorial on how to import a list of countries/states into your vocabularies using the Taxonomy CSV Import Export module.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.