Something along these lines
<form onsubmit="if(!chk.checked){alert('You must check the box'); return
false;}">
.....form fields......
Check this box before you submit <input type="checkbox" name="chk">
<input type="submit">
</form>
You can add more that one JavaScript to the onsubmit separated by a
semi-colon. Also, the nortbots reference indicates that there may be a
problem with the FrontPage Extensions on the web server or if you set up the
form on a disk-based web. The reference shouldn't be in your form.
Switch to Code View and see if your line looks similar to this:
If it does, remove the entire line of code that begins with the "onSubmit"
statement. Your code will now look similar to the following: <form
method="POST" name="myform"
action="--WEBBOT-SELF--">
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.