My form includes radio buttons for yes/no but also a text input. I waned to submit the yes/no answer and update the database on the same page independent of the text submission. But I also wanted to to update the current status of the radio button. But my code does not submit the radio button and I get an error.
I can easily combine both the radio buttons and the text input but I wanted to make the interface cleaner but not having to remind the user to SAVE each time they changed the condition of the radio buttons.
<form name="Form1" id="Main" action="/event/pending/edit/edit-pending.cfm" method="post" onSubmit="return validateForm(this)">
<input type="radio" name="Yes/No" value="1" onclick="this.form.submit();">
<input type="radio" name="Yes/No" value="0" onclick="this.form.submit();">
<input type="submit" name="SaveButton" value="Save" />