PC Review
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Form submit
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Form submit
![]() |
Form submit |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
My form is submitting when the user types a "TAB." Is there a way to avoid
this? Thank you for the help. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Not w/o scripting
- add FP form validation to the last field as a required field -- _____________________________________________ 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/FrontP...53/Default.aspx _____________________________________________ "Mary" <Mary@discussions.microsoft.com> wrote in message news:76423E7D-9AB6-4564-AD20-E0D4372A8281@microsoft.com... | My form is submitting when the user types a "TAB." Is there a way to avoid | this? | Thank you for the help. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
I'd have thought "TAB" would tab through the fields - not submit the form -
at least that's not its default function, so why would scripting be necessary to *stop* the tab key submitting the form if that is not what it is supposed to do in the first place? "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message news:eU1yKRJAGHA.912@TK2MSFTNGP11.phx.gbl... > Not w/o scripting > - add FP form validation to the last field as a required field > > -- > > _____________________________________________ > 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/FrontP...53/Default.aspx > _____________________________________________ > > > "Mary" <Mary@discussions.microsoft.com> wrote in message > news:76423E7D-9AB6-4564-AD20-E0D4372A8281@microsoft.com... > | My form is submitting when the user types a "TAB." Is there a way to > avoid > | this? > | Thank you for the help. > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Exactly, Andrew. I mistakenly put TAB instead of ENTER. It's the ENTER key
that is causing the form to submit. That's the real problem. Sorry about that. "Andrew Murray" wrote: > I'd have thought "TAB" would tab through the fields - not submit the form - > at least that's not its default function, so why would scripting be > necessary to *stop* the tab key submitting the form if that is not what it > is supposed to do in the first place? > > > "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message > news:eU1yKRJAGHA.912@TK2MSFTNGP11.phx.gbl... > > Not w/o scripting > > - add FP form validation to the last field as a required field > > > > -- > > > > _____________________________________________ > > 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/FrontP...53/Default.aspx > > _____________________________________________ > > > > > > "Mary" <Mary@discussions.microsoft.com> wrote in message > > news:76423E7D-9AB6-4564-AD20-E0D4372A8281@microsoft.com... > > | My form is submitting when the user types a "TAB." Is there a way to > > avoid > > | this? > > | Thank you for the help. > > > > > > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
The Enter key will always submit the form, the easiest way to prevent
this is to make the last form field (immediately before the submit button) a required field. See Stefan's post earlier in this thread. -- Ron Symonds - Microsoft MVP (FrontPage) Reply only to group - emails will be deleted unread. FrontPage Support: http://www.frontpagemvps.com/ "Mary" <Mary@discussions.microsoft.com> wrote in message news:5A22A351-07E6-4878-B296-6E7365BFB7E3@microsoft.com... > Exactly, Andrew. I mistakenly put TAB instead of ENTER. It's the ENTER key > that is causing the form to submit. That's the real problem. Sorry about > that. > > "Andrew Murray" wrote: > > > I'd have thought "TAB" would tab through the fields - not submit the form - > > at least that's not its default function, so why would scripting be > > necessary to *stop* the tab key submitting the form if that is not what it > > is supposed to do in the first place? > > > > > > "Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message > > news:eU1yKRJAGHA.912@TK2MSFTNGP11.phx.gbl... > > > Not w/o scripting > > > - add FP form validation to the last field as a required field > > > > > > -- > > > > > > _____________________________________________ > > > 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/FrontP...53/Default.aspx > > > _____________________________________________ > > > > > > > > > "Mary" <Mary@discussions.microsoft.com> wrote in message > > > news:76423E7D-9AB6-4564-AD20-E0D4372A8281@microsoft.com... > > > | My form is submitting when the user types a "TAB." Is there a way to > > > avoid > > > | this? > > > | Thank you for the help. > > > > > > > > > > > > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Ronx wrote:
> The Enter key will always submit the form, the easiest way to prevent > this is to make the last form field (immediately before the submit > button) a required field. See Stefan's post earlier in this thread. > -- Another way to stop the enter key from submitting is put this in the last form field, in this case a text box <input type="text" id="no" value="" size="1" maxlength="3" onkeypress="return event.keyCode!=13"/> 13 is the keycode for enter, so pressing it will do nothing. -- Cheers, Trevor L. Website: http://tandcl.homemail.com.au |
|
|
|
#7 |
|
Guest
Posts: n/a
|
That onkeypress code will have to go into EVERY field in the form, if
only in the last field, the enter key is only checked for in the last field. With validation, the last field is checked for a valid entry. However, it is possible to submit an incomplete form if the user enters data into the fields in reverse order.. -- Ron Symonds - Microsoft MVP (FrontPage) Reply only to group - emails will be deleted unread. FrontPage Support: http://www.frontpagemvps.com/ "Trevor L." <tandcl@homemail.com.au> wrote in message news:eLt9#$SAGHA.3584@TK2MSFTNGP14.phx.gbl... > Ronx wrote: > > The Enter key will always submit the form, the easiest way to prevent > > this is to make the last form field (immediately before the submit > > button) a required field. See Stefan's post earlier in this thread. > > -- > > Another way to stop the enter key from submitting is put this in the last > form field, in this case a text box > > <input type="text" id="no" value="" size="1" maxlength="3" > onkeypress="return event.keyCode!=13"/> > > 13 is the keycode for enter, so pressing it will do nothing. > > -- > Cheers, > Trevor L. > Website: http://tandcl.homemail.com.au > > |
|
|
|
#8 |
|
Guest
Posts: n/a
|
Hi Mary,
You could use a JavaScript to eliminate this. I have an example here ... http://frontpageforms.com/disable_enter.htm Keep in mind, if you incorporate FP validation along with the script, this may change the form name on publish, so you may need to change the form name in the script for it to work properly. Mike Smith, http://FrontPageForms.com FrontPage Form Tutorials & Form Script Examples "Mary" wrote: > My form is submitting when the user types a "TAB." Is there a way to avoid > this? > Thank you for the help. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

