| |
lankfordc
Posts: 1
Score: 0
Joined: 7/2/2004
From: USA
Status: offline
|
Hi I am working on a form. The form has a field that needs to be required if the uses selects the option "Yes" from the a drop down menu. I used an If Then statement and it doesn't work. The form acts asif there is not function tied to the "Yes" option. Do anyone have any suggestions? Here's what I'm talking about: *****If Then Statement***** If Request.Form("product_sold_option") = "Yes" Then If Request.Form("product_sold") = "" Then errs = addError("product_sold", "(Product sold is required)") End IF End If If Request.Form("product_sold_option") = "Yes" Then If Request.Form("acct_number") = "" Then errs = addError("acct_number", "(Account number is required)") End IF End If *********Body********* <table> <tr><td valign="top"><span style="color:#FF0000;">*</span> Was there a Product/Service Sold?</td> <b><td width="100%"> <select name="product_sold_option" id="product_sold_option"<%=BadFields("product_sold_option")%>> <option value="">-Select One-</option> <option value="yes">Yes</option> <option value="no">No</option> <option value="pending">Pending</option> </select><%=BadText("product_sold_option")%></td></b> </table>
|
|