I have three drop-down boxes just like ex:

1. class list (ClassI, ClassII...)
2. subject list (Hindi, English...)
3. chapter list (H-ChapterI, H-ChapterII, E-ChapterI, E-ChapterII...)

When a user clicks on class list drop-down, there will be two option (ClassI, ClassII and so on...). When I select ClassI in a subject list (Hindi, English and so on...) will become as same. When I select on Hindi in chapter list related to Hindi (HChapterI, HChapterII) all chapter will come. This is what I want in my view filter.

  • What Drupal version? Please tag your question with a Drupal version. – leymannx Jan 13 '17 at 16:00

I think you should use Simple Hierarchical Select, this also works with views and exposed filters out of the box.

| improve this answer | |
  • I have tried to use it but it helps only on content level.How can i use it as exposed filter to visitors. – Prince Srivastava Feb 19 '15 at 8:23
  • 1
    Views (exposed filter) add a new filter using the field set-up as "Simple hierarchical select" or use "Content: Has taxonomy terms (with depth; Simple hierarchical select)" as a new filter use "Simple hierarchical select" as selection type select "Expose this filter to visitors, to allow them to change it" – Fons Vandamme Feb 19 '15 at 8:56

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.