SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75! 
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

How to relate two combo boxes

5 years 7 months ago #122051 by iqsafe
How to relate two combo boxes was created by iqsafe
In a content type I want to include a list select box that contains two countries to select from, and below that box another box that show the relevant provinces. For example, if I select Iraq, the other box will show the provinces that belong to Iraq. If I select Jordan the box below will show the provinces that belong to Jordan. I guess this is done done with taxonomy but I do not know how. Thanks for your help.

Please Log in to join the conversation.

5 years 7 months ago #122070 by steve
Replied by steve on topic How to relate two combo boxes
Hi iqsafe

There's a couple of different approaches you can try here.

Hierarchical Select is a good option:
www.ostraining.com/blog/drupal/hierarchical-select/

Conditional fields is another one. Here's an example using countries and US states: www.ostraining.com/blog/drupal/dropdown-list/
The following user(s) said Thank You: iqsafe

Please Log in to join the conversation.

5 years 7 months ago #122076 by iqsafe
Replied by iqsafe on topic How to relate two combo boxes
Bunch of thanks, this is a great tutorial about the conditional field. I always like written tutorial rather than videos.

Please Log in to join the conversation.

5 years 7 months ago #122081 by steve
Replied by steve on topic How to relate two combo boxes
Great, glad they were useful iqsafe

Yes, sometimes written tutorials are definitely easier to scan.
The following user(s) said Thank You: iqsafe

Please Log in to join the conversation.

5 years 7 months ago #122082 by steve
Replied by steve on topic How to relate two combo boxes
Great, glad they were useful iqsafe

Yes, sometimes written tutorials are definitely easier to scan.

Please Log in to join the conversation.

5 years 7 months ago #122083 by steve
Replied by steve on topic How to relate two combo boxes
Great, glad they were useful iqsafe

Yes, sometimes written tutorials are definitely easier to scan.

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!