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
Comment #1
danielb commentedI 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.
Comment #2
bfr commentedGreat 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.
Comment #3
danielb commentedYeah it's not ready.
Comment #4
danielb commentedThere 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.
Comment #5
danielb commentedI 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
Comment #6
danielb commentedComment #7
danielb commentedOK 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)
Comment #8
danielb commentedI 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...
Comment #9
buckley commented+1 Pretty advanced but I needed it a couple weeks ago
Comment #10
danielb commentedComment #11
mich5 commentedhi,
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 ?
Comment #12
danielb commentedPlease don't change the issue settings.
Comment #13
danielb commentedComment #14
danielb commentedThere 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