I did this with java script:
function chkData()
{
if((document.frmname.radiobuttonname.checked)&&(document.frmName.RadioButtonName.value.length
<= 0))
{
alert("If you checked 'Other' for question 8, please describe.");
return false;
}
else
{
return true;
}
}
I called this function in the form tag:
<form name="frmName" action="Page4.cfm" method="POST" onSubmit="return chkData()">
hth
miriam
-----Original Message-----
From: Sumeet Khanna [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 11, 2000 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: How to do
Can anyone please tell me how to do radio
button validation ,if I want to use
the check "if radio button "Other" is clicked then only
enter Other option text in text box"
Sumee
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.