FrontPage 2003 - Enter Key Exits Form

N

Neal Richey

Using FrontPage 2003, I created a form using a combination of text boxes,
drop-down boxes and check boxes. All works great except when you hit an
Enter Key within any text box, the form immediately ends storing the data as
if the form had been completed . The text boxes are optional comment areas
within a survey so making them required (validation) is not really an
option. Even if I make the last field required entry, all previous answers
(long survey - 50+ questions) are lost when the person returns to the form.
Can the enter key be disabled within the form? Any other suggestions?

Thanks, Neal
 
L

Louis

You need to use the Tab key to move from field to field. This can get some
getting used to but you might put a note on your form instructing the user
how to do this.

I do not know if you can change the function of the enter key without
affecting everything on the program or computer.

Someone else will have to answer that.

Hope this helps at least a little.

L.
 
K

Kevin Spencer

You can certainly capture the ENTER key. The following example blocks it
from doing anything:

document.onkeypress =
function checkKeyPress(e)
{
if(!e)e = window.event;
var key = (typeof e.which == 'number')?e.which:e.keyCode;
if(key == 13) {
return (false);
}
}
 

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.

Ask a Question

Top