Conditional Dropdowns with Custom Taxonomies
-
I have created a Custom Post Type and some Custom Taxonomies and now I’m using Gravity Forms to let users add some entries. I can add to my form a dropdown select box and populate it with values from a custom taxonomy, which is fine, but I would like to have a select which lists only the main (parent) taxonomy values and then a couple of conditional select boxes, each listing the child values of a previously selected parent taxonomy.
I mean:
First select – Parent Taxonomy 1, Parent Taxonomy 2, Parent Taxonomy 3
If user selects Parent Taxonomy 1 from first select: Show Second Select – Child (of Parent 1) Taxonomy 1, Child Taxonomy 2, Child Taxonomy 3
ELSE
If user selects Parent Taxonomy 2 from first select: Show third Select – Child (of Parent 2)Taxonomy 3, Child Taxonomy 4, Child Taxonomy 5
ELSE
If user selects Parent Taxonomy 3 from first select: Show fourth Select – Child (of Parent 3) Taxonomy 6, Child Taxonomy 7, Child Taxonomy 8
Is this possible in any way?
Thanks for your help!
P.S. In alternative: Can I have the select adding both parent taxonomy and child taxonomy?
https://www.ads-software.com/plugins/gravity-forms-custom-post-types/
- The topic ‘Conditional Dropdowns with Custom Taxonomies’ is closed to new replies.