Gossamer Forum
Home : Products : DBMan : Discussions :

Make select field dependent of other select field

Quote Reply
Make select field dependent of other select field
I want to define several select fields on my page.

Is it possible to make the possible choices of one select field dependent of the choice of another select field ?

Kind regards,
Quote Reply
Re: [embee] Make select field dependent of other select field In reply to
To do it dynamically or "on the fly" you'd have to use something like JavaScript (check out javascript.internet.com for some ideas).

To do it using the cgi script you'd have to have a page or form where they make a selection, then submit the form and have it produce the second select box based on the results of the first.

The first option is good if you only have one page (as most dbman users do) for submitting/modifying forms. The second option could be used if you are spanning multiple pages for adding/modifying records.