Can I simulate select field chaining?
Can I simulate select field chaining?

in Editor
I used http://www.appelsiini.net/projects/chained on a site
which just makes 2nd (3rd, ...) select input filed values filtered based on previous filed selected values...
e.g. {country] [State] [city]
when country is selected, has a value, state shows only states in that country
etc.
Is this possible with something like
on Init edit
1. fetch the value of country and set the values of [state]
2. if country changes, change the available [state] list ....
?
This discussion has been closed.
Replies
Hi,
Sounds like a perfect use case for the
dependent()
method which was designed for exactly these sort of dependent fields.Allan
thanks, will try it.