We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44854
    • 21 Posts
    Hi,

    See attached picture.

    When you select "BHK" it filters option for "PHASE" and on the basis of "PHASE" selection it filters "TOWER" and finally on clicking submit it shoes matched data?

    Is it possible in MODX such kind of functionality.? How?

    Thank you.
      • 23018
      • 353 Posts
      I don't think this is MODX problem. If you can pregenerate some sort of decision tree, you can use a sprinkle of js dust to modify your select field options on the client side.

      You can easily built something yourself or go with a ready to go solution like the ones below:

      https://github.com/markjs/jquery-dependent-selects

      https://github.com/kartek-v/dependent-dropdown

      The first one is pretty straightforward. The later one seems to be better maintained and it offers dynamic drop downs via Ajax calls.

      Regards,

      pepebe [ed. note: pepebe last edited this post 11 years, 3 months ago.]
        Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe