Submit button for a form

M

Mark Flynn

How do you prevent the Submit button from activating when the "Enter" key is
pressed. On my form you can tab from one field to the next as you enter
data, but if a visitor presses the Enter key to move to the next field -
the Submit button is activated.
In other words, how can you make the "Enter" key behave like the tab key in
a form, except when the Submit button is selected?
The form I'm talking about is here:
http://www.josephinedemocrats.org/Volunteer1.asp
Thanks, Mark Flynn
 
T

Tom [Pepper] Willett

Make at least the last field required by using the form field validation.
 
M

Mark Flynn

Hi Tom:
Thanks for your prompt reply. Sorry, I don't understand your directions
(below)

"Make at least the last field required by using the form field validation."

Using Form Field Validation on the "Phone" field - by requiring the Data
Length to be Min Length= 0 , and Max Length =20. Hitting the "Enter" key
after filling in FirstName field brings up a dialog box "Please enter a
value for "Phone" field". This approach at least prevents the user form
activating the "Submit" button when the Enter key is pressed.
Is this what you had in mind, or am I not doing something?

BTW, I'm running FP2000

Best regards, Mark Flynn

Tom [Pepper] Willett said:
Make at least the last field required by using the form field validation.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Mark Flynn said:
How do you prevent the Submit button from activating when the "Enter" key
is
pressed. On my form you can tab from one field to the next as you enter
data, but if a visitor presses the Enter key to move to the next field -
the Submit button is activated.
In other words, how can you make the "Enter" key behave like the tab key
in
a form, except when the Submit button is selected?
The form I'm talking about is here:
http://www.josephinedemocrats.org/Volunteer1.asp
Thanks, Mark Flynn
 
M

Mark Flynn

OK, I see what you mean.
Thanks for your help

Mark Flynn

Mark Flynn said:
Hi Tom:
Thanks for your prompt reply. Sorry, I don't understand your directions
(below)

"Make at least the last field required by using the form field validation."

Using Form Field Validation on the "Phone" field - by requiring the Data
Length to be Min Length= 0 , and Max Length =20. Hitting the "Enter" key
after filling in FirstName field brings up a dialog box "Please enter a
value for "Phone" field". This approach at least prevents the user form
activating the "Submit" button when the Enter key is pressed.
Is this what you had in mind, or am I not doing something?

BTW, I'm running FP2000

Best regards, Mark Flynn

Tom [Pepper] Willett said:
Make at least the last field required by using the form field validation.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Mark Flynn said:
How do you prevent the Submit button from activating when the "Enter" key
is
pressed. On my form you can tab from one field to the next as you enter
data, but if a visitor presses the Enter key to move to the next field -
the Submit button is activated.
In other words, how can you make the "Enter" key behave like the tab key
in
a form, except when the Submit button is selected?
The form I'm talking about is here:
http://www.josephinedemocrats.org/Volunteer1.asp
Thanks, Mark Flynn
 
T

Tom [Pepper] Willett

Glad you got it sorted, Mark.

--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Mark Flynn said:
OK, I see what you mean.
Thanks for your help

Mark Flynn

Mark Flynn said:
Hi Tom:
Thanks for your prompt reply. Sorry, I don't understand your directions
(below)

"Make at least the last field required by using the form field validation."

Using Form Field Validation on the "Phone" field - by requiring the Data
Length to be Min Length= 0 , and Max Length =20. Hitting the "Enter" key
after filling in FirstName field brings up a dialog box "Please enter a
value for "Phone" field". This approach at least prevents the user form
activating the "Submit" button when the Enter key is pressed.
Is this what you had in mind, or am I not doing something?

BTW, I'm running FP2000

Best regards, Mark Flynn

Tom [Pepper] Willett said:
Make at least the last field required by using the form field validation.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
How do you prevent the Submit button from activating when the "Enter" key
is
pressed. On my form you can tab from one field to the next as you enter
data, but if a visitor presses the Enter key to move to the next field -
the Submit button is activated.
In other words, how can you make the "Enter" key behave like the tab key
in
a form, except when the Submit button is selected?
The form I'm talking about is here:
http://www.josephinedemocrats.org/Volunteer1.asp
Thanks, Mark Flynn
 
S

Stefan B Rusynko

A Min length of 0 will bypass that field
- for a phone # make it at least 7
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| OK, I see what you mean.
| Thanks for your help
|
| Mark Flynn
|
| | > Hi Tom:
| > Thanks for your prompt reply. Sorry, I don't understand your directions
| > (below)
| >
| > "Make at least the last field required by using the form field
| validation."
| >
| > Using Form Field Validation on the "Phone" field - by requiring the Data
| > Length to be Min Length= 0 , and Max Length =20. Hitting the "Enter" key
| > after filling in FirstName field brings up a dialog box "Please enter a
| > value for "Phone" field". This approach at least prevents the user form
| > activating the "Submit" button when the Enter key is pressed.
| > Is this what you had in mind, or am I not doing something?
| >
| > BTW, I'm running FP2000
| >
| > Best regards, Mark Flynn
| >
| > | > > Make at least the last field required by using the form field
| validation.
| > > --
| > > Tom [Pepper] Willett
| > > Microsoft MVP - FrontPage
| > > FrontPage Support: http://www.frontpagemvps.com/
| > > ----------
| > > | > > > How do you prevent the Submit button from activating when the "Enter"
| > key
| > > > is
| > > > pressed. On my form you can tab from one field to the next as you
| enter
| > > > data, but if a visitor presses the Enter key to move to the next
| field -
| > > > the Submit button is activated.
| > > > In other words, how can you make the "Enter" key behave like the tab
| key
| > > > in
| > > > a form, except when the Submit button is selected?
| > > > The form I'm talking about is here:
| > > > http://www.josephinedemocrats.org/Volunteer1.asp
| > > > Thanks, Mark Flynn
| > > >
| > > >
| > >
| > >
| >
| >
|
|
 

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