briggsc
10-06-2003, 09:30 PM
HELP!!
This section is located on a form. If my users click the radio button, I want them to select option from the drop down menu.
I need a javascript code that will generate an error message if the user only select one of the radio button and not the drop down menu option.
Here's an example
radio button Please add access to my account :
-OR-
radio button Please remove access to my account :
drop down menu
Here's my function
Function addError(field, errDescription)
If NOT BadFields.Exists(field) Then BadFields.Add field, errorclass
If NOT BadText.Exists(field) Then BadText.Add field, "<br><span style=""color:#FF0000; font-size:11.5px; font-weight:bold;"">" & errDescription & "</span>"
errs = true
addError = errs
End Function
Here's the coding that I am using
If Trim(Request.Form("fm_software")) <> "" AND Trim(Request.Form("fms")) = "" Then errs = addError("fms", "(Please choose whether to add or remove Financial Mangement Software)")
End If
Any suggestions of what I may need to use? Thanks!
This section is located on a form. If my users click the radio button, I want them to select option from the drop down menu.
I need a javascript code that will generate an error message if the user only select one of the radio button and not the drop down menu option.
Here's an example
radio button Please add access to my account :
-OR-
radio button Please remove access to my account :
drop down menu
Here's my function
Function addError(field, errDescription)
If NOT BadFields.Exists(field) Then BadFields.Add field, errorclass
If NOT BadText.Exists(field) Then BadText.Add field, "<br><span style=""color:#FF0000; font-size:11.5px; font-weight:bold;"">" & errDescription & "</span>"
errs = true
addError = errs
End Function
Here's the coding that I am using
If Trim(Request.Form("fm_software")) <> "" AND Trim(Request.Form("fms")) = "" Then errs = addError("fms", "(Please choose whether to add or remove Financial Mangement Software)")
End If
Any suggestions of what I may need to use? Thanks!