troubleshooting Question

Disable a radio-button if another radio button is selected

Avatar of kuclu
kuclu asked on
9 Comments1 Solution414 ViewsLast Modified:
I have a form that is spread over a number of pages. A field-forwarder is used to forward the selected entries from one page to the next, until the user submits the form. Now i would like to ask if is it possible to have a radio-button disabled, if another radio-button on a previous page is selected? Below is an example of what i have..

<FORM method="post" action="database.php" id="myform">

<INPUT TYPE="radio" NAME="material" VALUE="iron">Iron
<INPUT TYPE="radio" NAME="material" VALUE="wood">Wood
<INPUT TYPE="radio" NAME="material" VALUE="plastic">Plastic
<INPUT TYPE="radio" NAME="material" VALUE="glass">Glass

<INPUT TYPE="submit" id="submit" value="Proceed >>">

//Next page

<FORM method="post" action="database.php" id="myform">

<INPUT TYPE="radio" NAME="process" VALUE="injection_moulding">Injection Moulding
<INPUT TYPE="radio" NAME="process" VALUE="blow_moulding">Blow Moulding
<INPUT TYPE="radio" NAME="process" VALUE="drilling">Drilling
<INPUT TYPE="radio" NAME="process" VALUE="casting">Sand Casting

<INPUT TYPE="submit" id="submit" value="Proceed >>">


Now what i want is this: If a user chooses "Plastic" from the first form, the next form would have only the first two values enabled (i.e. drilling and casting are DISABLED).

How can I do this?
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros