This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > FrontPage Programming > May 2006 > Submit button for a form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Submit button for a form
|
|
| Mark Flynn 2006-05-28, 6:37 pm |
| 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
| |
| Tom [Pepper] Willett 2006-05-28, 6:37 pm |
| 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" <flynn@NoSpam.uci.net> wrote in message
news:uV%23T9gogGHA.1204@TK2MSFTNGP02.phx.gbl...
> 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
>
>
| |
| Mark Flynn 2006-05-28, 6:37 pm |
| 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" <tompepper@mvps.invalid> wrote in message
news:OUDiG0ogGHA.1520@TK2MSFTNGP03.phx.gbl...
> 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" <flynn@NoSpam.uci.net> wrote in message
> news:uV%23T9gogGHA.1204@TK2MSFTNGP02.phx.gbl...
key[color=darkred]
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|