Would it be possible to get the dropdowns dynamic, so that when i select data from the first menu, the second changes?
So, for example, if i have nodes with car information, when i choose something from "make" menu, only the models of that make would appear?

In other words, it should do a search right away and then filter out all "impossible" choices from the next dropdown.

Comments

danielb’s picture

I am already working on a case where the 2nd (3rd, 4th, etc..) field is on another page.

So you pick an option, click 'next', and then the options on the 2nd page have filtered out the 'impossible' choices.

Your idea is almost the same, except it uses ahah/ajax to update the next form element instead of a 2nd page.

It may take some time to get around to it, but I think your idea is worth implementing too, and since the form generation and query stuff in Finder Wizard can be reused all that is needed is the javascript callback stuff to pull it all together.

bfr’s picture

Great to hear! By the way, i tried finder wizard, but could not get it to work.. it says that it went to infite loop or something when trying to access the search page.

danielb’s picture

Yeah it's not ready.

danielb’s picture

There is an ajax module which may help significantly in implementing this feature. Just thought i'd leave that info here for when I get to working on this.

danielb’s picture

I figure this issue will require
1) the completion of the wizard module
2) a way to go to the next page upon selecting an element in optionwidgets
3) ahah integration which is on the way

danielb’s picture

Title: Dynamic dropdown menus? » Element's choices dynamically filtered by another
danielb’s picture

OK so I've got the Finder Wizard module working, and Finder now supports AHAH updating, so the theories and queries behind filtering one element by another are workable into something like this.

The differences would be
- Not to 'hide' the other elements on the page.
- To not use back/next buttons but rather to do an AHAH update everytime a choice is made

And possibly/optionally
- Choices on later elements affect earlier elements (Finder Wizard only filters the element choices as you go forward through the steps, this may need to filter both ways)

danielb’s picture

I still plan to finish this, I apologise for the delays.

In the meantime this may be useful if you want to implement something like this yourself?: http://www.interworksinc.com/blogs/scorrales/2009/08/07/limiting-options...

buckley’s picture

+1 Pretty advanced but I needed it a couple weeks ago

danielb’s picture

Status: Active » Postponed
mich5’s picture

Version: 6.x-1.0-beta1 » 6.x-1.8
Status: Postponed » Active

hi,

Sorry for re-opening this issue, but I didn't find how to filter another field this way. I presume it's postponed as indicated ?

danielb’s picture

Version: 6.x-1.8 » 6.x-1.x-dev
Status: Active » Postponed

Please don't change the issue settings.

danielb’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
danielb’s picture

Status: Postponed » Fixed

There are now options for this at (element) -> choices -> reduce
This also facilitated the ability to load an element using ajax when the page finishes loading, so that's under (element) -> form element -> ajax

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.