PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage Form submit

Reply

Form submit

 
Thread Tools Rate Thread
Old 14-12-2005, 03:38 AM   #1
=?Utf-8?B?TWFyeQ==?=
Guest
 
Posts: n/a
Default Form submit


My form is submitting when the user types a "TAB." Is there a way to avoid
this?
Thank you for the help.
  Reply With Quote
Old 14-12-2005, 09:53 AM   #2
Stefan B Rusynko
Guest
 
Posts: n/a
Default Re: Form submit

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.


  Reply With Quote
Old 14-12-2005, 01:23 PM   #3
Andrew Murray
Guest
 
Posts: n/a
Default Re: Form submit

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.
>
>



  Reply With Quote
Old 14-12-2005, 02:42 PM   #4
=?Utf-8?B?TWFyeQ==?=
Guest
 
Posts: n/a
Default Re: Form submit

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.
> >
> >

>
>
>

  Reply With Quote
Old 14-12-2005, 03:36 PM   #5
Ronx
Guest
 
Posts: n/a
Default Re: Form submit

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.
> > >
> > >

> >
> >
> >



  Reply With Quote
Old 15-12-2005, 04:28 AM   #6
Trevor L.
Guest
 
Posts: n/a
Default Re: Form submit

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


  Reply With Quote
Old 15-12-2005, 11:10 AM   #7
Ronx
Guest
 
Posts: n/a
Default Re: Form submit

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
>
>



  Reply With Quote
Old 18-12-2005, 10:57 PM   #8
=?Utf-8?B?QU15c3RpY1dlYg==?=
Guest
 
Posts: n/a
Default RE: Form submit

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.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off