Dynamic Drop down lists

Events happening in the community are now at Drupal community events on www.drupal.org.
Sigal's picture

Hi,

Is there a way to create a CCK list field that it's values depend on a different drop down list?

For example:

Drop down list one has fruit or vegetables in it.

Drop down list two will have either fruit or vegetables in it, depending on what was selected in the first drop down.

Thanks,

Sigal

Comments

ubrowser

Max_Headroom's picture

Hi Sigal
Try the ubrowser module. I think it can do something like that.
Test it here

Quentin

Quentin

Thanks

Sigal's picture

Thanks Quentin, but I am using Drupal 6 and this module is only for 5.

Another

Max_Headroom's picture

Another:
http://drupal.org/project/hierarchical_select
but..still..D5
This is why I am staying with D5 till end of the year.

Quentin

Hierarchical Select Help

Sigal's picture

Hi Quentin,

Can you maybe help me with this module?

The demo is very nice, but there is no real explanation on how to use it, and whatever I try it doesn't work.

I created a vocabulary with 3 terms in it.

Then I created a child term for each parent term one.

In my settings I tried all kinds of variations but nothing works.

If I choose: "Allow the user to choose a term from any level" I see only the parents drop down box.

If I choose: "Force the user to choose a term from a deepest level" I see both drop down boxes but the items in the second box are always the same doesn't matter what value I select in the first box.

Any idea what am I doing wrong?

Thanks,

Sigal

RE: Hierarchical Select Help

Max_Headroom's picture

Hi Sigal
I only knew about the module. But I might want to use it so I gave it a try, and...Ouch! It is a bit of a pain to setup.
Anyways, I think you problem would be that you must update to Jquery v 2.0 first (V1 still works with Drupal, but this modules wants V2) . Download it from http://drupal.org/project/jquery_update. Please note that you must move files to the /misc folder as well, see readme instructions.
Then, you must make sure you have the latest views module installed. And then (I was sighing by then, hehe) , you must apply a patch. I had to do the patch to the latest version of views, even if the instructions say it was not necessary. It is just a three lines you have to paste into the views module.

Have a look in your status report (admin/logs/status) if all errors are cleared.

Finally got it working (will pm you a link). Well, erhm, sort of.. When you want to add more terms its is a pain, you have to flatten everything to root and add all your new terms to root, then rebuild all your levels up from that working backwards from deepest terms. Best is to set up your terms before you enable this module.

I actually found this module to be very slow.

Quentin

Quentin

South Africa

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week