gabbagabba
02-04-2009, 10:55 PM
Dependent form fields
This is what I am trying to do, and I have scoured all my usual resources to find an answer to no avail.
I have a FORM on a basic HTML page. This forms needs to have one dropdown (dropdown B) within it changed depending on what type of input the user selects in dropdown A.
So if user selects Option A in dropdown A, dropdown B in populated with one set of options.
If they Select Option B in dropdown A, dropdown B in populated with another set of unique options.
I have built all 5 Dropdown B's
All other form fields should remain "as is". I don't want to construct 5 unique forms to do this. I think it is Form Manager .js
I have found a script which does what I want (with modification) but it is actually a FORM unto itself, AND as I understand it you cannot have nested forms on a webpage.
Can I place this form outside the main form to be submitted and still be able to access the input for the form to be submitted?
So basically a user has 5 options in form dropdown A, and depending on which one of those 5 they choose they get a new set of options in from dropdown B.
There is no SQL or databases involved in this.
am I making sense? IS there a solution I am missing?
This is what I am trying to do, and I have scoured all my usual resources to find an answer to no avail.
I have a FORM on a basic HTML page. This forms needs to have one dropdown (dropdown B) within it changed depending on what type of input the user selects in dropdown A.
So if user selects Option A in dropdown A, dropdown B in populated with one set of options.
If they Select Option B in dropdown A, dropdown B in populated with another set of unique options.
I have built all 5 Dropdown B's
All other form fields should remain "as is". I don't want to construct 5 unique forms to do this. I think it is Form Manager .js
I have found a script which does what I want (with modification) but it is actually a FORM unto itself, AND as I understand it you cannot have nested forms on a webpage.
Can I place this form outside the main form to be submitted and still be able to access the input for the form to be submitted?
So basically a user has 5 options in form dropdown A, and depending on which one of those 5 they choose they get a new set of options in from dropdown B.
There is no SQL or databases involved in this.
am I making sense? IS there a solution I am missing?