Forum Moderators: open

Message Too Old, No Replies

Determined Drop down menus

         

webboy1

12:54 pm on Apr 14, 2003 (gmt 0)

10+ Year Member



Hi,

I am trying to create a form which has 5 drop down menus. The options given in Menu 2 depend on what was selected in menu 1. The options of menu 3 depend on what was entered in menus 1 and 2 and so on.

I have kind of managed to get it working.

I originally had a Javascript to do it, but, not being great with Javascript, i didn't really know what i was doing, so i am now trying ASP and an Access database.

There are example scripts online, but they only usually have 2 - 3 menus.......i need 5.

Has anyone got any ideas as to how i could do this?

Webboy

graywolf

2:12 pm on Apr 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could make the page to reload by forcing the form to submit when you make a selection from the drop down option, and then using the ASP code to build the subsequent drop downs.

I would be a little concerned about the user experience though. Not knowing the details of your application 5 chained drop down elements seems a bit much.

webboy1

2:40 pm on Apr 14, 2003 (gmt 0)

10+ Year Member



Thanks for that. What you said is what i had been trying.

I realise 5 seems a lot. I think i can actually cut it to 4, as the last menu will be a quantity selector.....and will be the same for all options.

The reason i need as many is because it is for ordering a sample of paper. To do this, such things as range, shade, weight and size are required.

Obviously not all shades are available in all weights etc, so each menu has to be determined by what has been previously selected.

I will plod on and see what i can come up with.

Thanks anyway