Mail Form Problem

E

Ed_R

I have a form that allows mail to be send using CDONTS. If a user is in
any of the first three fields such as From or Subject, (anyplace but
the text message field) and they hit the enter key, the message will be
sent even though they never pressed the Send Message button at the
bottom. Focus doesn't seem to be set on the button. I have a tab
order set up with the first four fields so clicking tab isn't putting
you in the Send button field. I've also added validation that requires
entry in all the fields, but if somehow they end up back and in any of
the first three fields and hit enter, the message will get sent without
ever completing the text field.

Any idea what is causing the message to be sent without pressing Send
Message botton. And what can I do to prevent it is the bigger
question?
 
T

Thomas A. Rowe

That is default for using the Enter key in a form, to workaround this, make or create a field at the
end of the form that require data to be entered using the FP form field validation

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

You could also require the message to have a minimum number of characters using the FP form field
Validation.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
E

Ed Richter

I already did that, used a small number of charactors like 10, just to make
sure they entered something. But a couple of users after entering one line
of text, would somehow end up back in the subject field and hit enter. One
users comments were, I'm a lousy typist, so I'm looking at the keyboard, not
the screen. Am in the text field typing away, next thing I know when I look
up message was already sent. Also thought of adding a checkbox next to the
send button that has to be checked first befoire hitting Send button, but
hate to add an extra mouse click everytime for the few users who sometimes
screw it up.
 
S

Stefan B Rusynko

Not much beyond validation of all fields you can do
- especially since the enter or tab key (by user) will trigger form field changes or submit
You could send the form to a confirmation page w/ an option to send it from to there to CDONTS, or return to edit it




|I already did that, used a small number of charactors like 10, just to make
| sure they entered something. But a couple of users after entering one line
| of text, would somehow end up back in the subject field and hit enter. One
| users comments were, I'm a lousy typist, so I'm looking at the keyboard, not
| the screen. Am in the text field typing away, next thing I know when I look
| up message was already sent. Also thought of adding a checkbox next to the
| send button that has to be checked first befoire hitting Send button, but
| hate to add an extra mouse click everytime for the few users who sometimes
| screw it up.
|
|
| | > You could also require the message to have a minimum number of characters
| > using the FP form field Validation.
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | >>I have a form that allows mail to be send using CDONTS. If a user is in
| >> any of the first three fields such as From or Subject, (anyplace but
| >> the text message field) and they hit the enter key, the message will be
| >> sent even though they never pressed the Send Message button at the
| >> bottom. Focus doesn't seem to be set on the button. I have a tab
| >> order set up with the first four fields so clicking tab isn't putting
| >> you in the Send button field. I've also added validation that requires
| >> entry in all the fields, but if somehow they end up back and in any of
| >> the first three fields and hit enter, the message will get sent without
| >> ever completing the text field.
| >>
| >> Any idea what is causing the message to be sent without pressing Send
| >> Message botton. And what can I do to prevent it is the bigger
| >> question?
| >>
| >
| >
|
|
 
E

Ed Richter

Yeah figure if I do anything I'll add the check box that must be checked. I
never myself have this problem but a couple of people repeatedly have this
isue. Can't figure out how their curser ends up back in the subject line
after thery were typing in the message field. Something they must be doing
I guess??
 
S

Stefan B Rusynko

Could be the tab key depend on your field tab sequence




| Yeah figure if I do anything I'll add the check box that must be checked. I
| never myself have this problem but a couple of people repeatedly have this
| isue. Can't figure out how their curser ends up back in the subject line
| after thery were typing in the message field. Something they must be doing
| I guess??
|
| | > Not much beyond validation of all fields you can do
| > - especially since the enter or tab key (by user) will trigger form field
| > changes or submit
| > You could send the form to a confirmation page w/ an option to send it
| > from to there to CDONTS, or return to edit it
| >
| > --
| >
| > _____________________________________________
| > 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.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | > |I already did that, used a small number of charactors like 10, just to
| > make
| > | sure they entered something. But a couple of users after entering one
| > line
| > | of text, would somehow end up back in the subject field and hit enter.
| > One
| > | users comments were, I'm a lousy typist, so I'm looking at the keyboard,
| > not
| > | the screen. Am in the text field typing away, next thing I know when I
| > look
| > | up message was already sent. Also thought of adding a checkbox next to
| > the
| > | send button that has to be checked first befoire hitting Send button,
| > but
| > | hate to add an extra mouse click everytime for the few users who
| > sometimes
| > | screw it up.
| > |
| > |
| > | | > | > You could also require the message to have a minimum number of
| > characters
| > | > using the FP form field Validation.
| > | >
| > | > --
| > | > ==============================================
| > | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > ==============================================
| > | > If you feel your current issue is a results of installing
| > | > a Service Pack or security update, please contact
| > | > Microsoft Product Support Services:
| > | > http://support.microsoft.com
| > | > If the problem can be shown to have been caused by a
| > | > security update, then there is usually no charge for the call.
| > | > ==============================================
| > | >
| > | > | > | >>I have a form that allows mail to be send using CDONTS. If a user is
| > in
| > | >> any of the first three fields such as From or Subject, (anyplace but
| > | >> the text message field) and they hit the enter key, the message will
| > be
| > | >> sent even though they never pressed the Send Message button at the
| > | >> bottom. Focus doesn't seem to be set on the button. I have a tab
| > | >> order set up with the first four fields so clicking tab isn't putting
| > | >> you in the Send button field. I've also added validation that
| > requires
| > | >> entry in all the fields, but if somehow they end up back and in any
| > of
| > | >> the first three fields and hit enter, the message will get sent
| > without
| > | >> ever completing the text field.
| > | >>
| > | >> Any idea what is causing the message to be sent without pressing Send
| > | >> Message botton. And what can I do to prevent it is the bigger
| > | >> question?
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Top