I should start by saying that I'm developing this form in the Lotus Domino environment which may or may not be causing some of this "strange" behavior.
A form that I've been working has a section that requires some field validation based on whether a radio button is checked. This section comes in towards the end of the form. Now, I've been able get the validation to work however the form will not submit. After further analysis I found that what it seems not to like is the 'name' tag for the radio button. If I remove the tag the form will submit. However, doing that bypasses my validation. If I leave the name tag in and change from a radio to a button the form will submit. The code I have is as follows:
<input type="radio" name="second" onClick="yes3()" value="Yes" )>Yes <input type="radio" name="second" onClick="no3()" value="No" )>No
I'm using name="second" so I can use the below validation:
if (document.forms[0].second[0].checked && Date2.value=="") {
alert('Please enter a valid Date for your 2nd event.');
Form.Date2.focus();
If I need to use buttons rather than radio's how would I alter the validation code.
Thank you,
Mark
A form that I've been working has a section that requires some field validation based on whether a radio button is checked. This section comes in towards the end of the form. Now, I've been able get the validation to work however the form will not submit. After further analysis I found that what it seems not to like is the 'name' tag for the radio button. If I remove the tag the form will submit. However, doing that bypasses my validation. If I leave the name tag in and change from a radio to a button the form will submit. The code I have is as follows:
<input type="radio" name="second" onClick="yes3()" value="Yes" )>Yes <input type="radio" name="second" onClick="no3()" value="No" )>No
I'm using name="second" so I can use the below validation:
if (document.forms[0].second[0].checked && Date2.value=="") {
alert('Please enter a valid Date for your 2nd event.');
Form.Date2.focus();
If I need to use buttons rather than radio's how would I alter the validation code.
Thank you,
Mark
Comment