Pat Sanders
09-23-2003, 07:21 AM
I have a form where the last item is a checkbox that the user is not required to check, but before they submit the form I want to verify that they have not forgotten to check the checkbox. Every confirm box script I have seen has an if else statement that refreshes the page. I do not want the user to lose the information in the other form fields. I need for the script to simply either focus on the field(checkbox) (if yes) or stay on the current page (if no) so they can submit the form.
Here is the url to the page:http://www.cctech.edu/cgi-bin/forms/grad_placement.asp
the checkbox in question is the last field on the form.
I have a function in the form which does all the validation -
<form name="form1" action="/cgi-bin/forms/grad_thks.asp" method="post" onSubmit="return ValidateForm() ">
function ValidateForm() {
Here is the url to the page:http://www.cctech.edu/cgi-bin/forms/grad_placement.asp
the checkbox in question is the last field on the form.
I have a function in the form which does all the validation -
<form name="form1" action="/cgi-bin/forms/grad_thks.asp" method="post" onSubmit="return ValidateForm() ">
function ValidateForm() {