We help IT Professionals succeed at work.
Get Started

Need to make a drop down selection enable a REQUIRED FIELD

js1138
js1138 asked
on
458 Views
Last Modified: 2012-05-11
I have a drop down box with 5 options:
<select size="1" name="_fnm_hmo_plan1">
        <option selected value="Please Select">Please Select</option>
        <option value="na">N/A</option>
        <option value="HMO">HMO</option>
        <option value="Open Access HMO">Open Access HMO</option>
        <option value="QPOS">QPOS</option>
        <option value="Aetna Choice POS">Aetna Choice POS</option>
        </select>

I also have 3 input text fields:
<td width="48%" valign="top" align="left" style="border-style:none; border-width:medium; "><b>Group Number(s):</b>
        <input type="text" name="_fnm_HMOcontrol" size="40" ></td>
       </tr>
       <tr>
        <td width="48%" valign="top" align="left" style="border-style:none; border-width:medium; "><b>AQC Quote ID(s) and Quote Option Name(s):</b><input type="text" name="_fnm_HMO_AQC_quote" size="40" ></td>
       </tr>
       <tr>
        <td width="48%" valign="top" align="left" style="border-style:none; border-width:medium; "><b>Guide Quote ID(s):</b>
        <input type="text" name="_fnm_HMO_GUIDE_quote" size="40" ></td>

The desired result:
If anything other than "N/A" is selected from the drop down. At least one or all of the 3 fields needs to be filled in. In which case they become required.

Any thoughts or samples are much appreciated.

Again the user may not need to fill out all three fields but at least one needs to be required in order to submit or
Comment
Watch Question
Sr. System Analyst
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE