Form validation problems - alerts don't work

G

Guest

Have built a Contact Us form and the validation is not working. Name and
Email fields are set as required (Validate, Data Length .. Required). If I
fill in the form and leave those fields blank no alerts appear, and the form
can be submitted without the required fields completed. I'm not a coder, but
the javascript generated by FrontPage appears to be OK re the validation ..
it just doesn't work on this page.

To troubleshoot, I created a new form on a new blank page (no template, no
stylesheet attached), and its validation works fine - the alerts appear when
required fields are left blank.

My problem Contact Us form is based on a Dynamic Web Template I built,
incorporating a top banner and left nav as Includes (FrontPage components).
The template works fine, all the other pages using it all work perfectly
fine. Just not the validation on the Contact Us form. Does anyone have any
clues as to the cause?
 
P

Paul M

Hi MaryLou
I had this same problem I guess I deleted something by accident, anyway I
fixed it by deleting the form and redoing it
Paul M
 
S

Stefan B Rusynko

Post a URL to the form page

--




| Have built a Contact Us form and the validation is not working. Name and
| Email fields are set as required (Validate, Data Length .. Required). If I
| fill in the form and leave those fields blank no alerts appear, and the form
| can be submitted without the required fields completed. I'm not a coder, but
| the javascript generated by FrontPage appears to be OK re the validation ..
| it just doesn't work on this page.
|
| To troubleshoot, I created a new form on a new blank page (no template, no
| stylesheet attached), and its validation works fine - the alerts appear when
| required fields are left blank.
|
| My problem Contact Us form is based on a Dynamic Web Template I built,
| incorporating a top banner and left nav as Includes (FrontPage components).
| The template works fine, all the other pages using it all work perfectly
| fine. Just not the validation on the Contact Us form. Does anyone have any
| clues as to the cause?
|
| --
| ... MaryLou
 
T

Thomas A. Rowe

The validation is working, however you haven't specific a min or max length for the field content,
so a empty field is allowed.

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

Guest

Hi Thomas,

OK ... I just added a min length of 1 to the Name field. But now instead of
seeing a javascript alert I'm taken to the default Form Validation Error page
saying "Please enter at least 1 characters in the "Name" field." Still not
getting the normal alert.
 
G

Guest

Hi Paul,

You were right. Building the whole form again from scratch resolved it. Am
now getting correct javascript alerts. I'm surprised, as I didn't think I
had done anything manually with the code that could have caused problems. Oh
well. Simple solutions are sometimes the best! Thanks

.... MaryLou
 
S

Stefan B Rusynko

I get a JavaScript alert popup (w/ no name in form)

--




| Hi Thomas,
|
| OK ... I just added a min length of 1 to the Name field. But now instead of
| seeing a javascript alert I'm taken to the default Form Validation Error page
| saying "Please enter at least 1 characters in the "Name" field." Still not
| getting the normal alert.
|
| --
| ... MaryLou
|
|
| "Thomas A. Rowe" wrote:
|
| > The validation is working, however you haven't specific a min or max length for the field content,
| > so a empty field is allowed.
| >
| > --
| > ==============================================
| > 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.
| > ==============================================
| >
| > | > > Here's the troublesome page:
| > > http://www.zum.com.au/rwmorningside/contact_us.htm
| > >
| > > --
| > > ... MaryLou
| > >
| > >
| > > "Stefan B Rusynko" wrote:
| > >
| > >> Post a URL to the form page
| > >>
| > >> --
| > >>
| > >> _____________________________________________
| > >> 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
| > >> _____________________________________________
| > >>
| > >>
| > >> | > >> | Have built a Contact Us form and the validation is not working. Name and
| > >> | Email fields are set as required (Validate, Data Length .. Required). If I
| > >> | fill in the form and leave those fields blank no alerts appear, and the form
| > >> | can be submitted without the required fields completed. I'm not a coder, but
| > >> | the javascript generated by FrontPage appears to be OK re the validation ..
| > >> | it just doesn't work on this page.
| > >> |
| > >> | To troubleshoot, I created a new form on a new blank page (no template, no
| > >> | stylesheet attached), and its validation works fine - the alerts appear when
| > >> | required fields are left blank.
| > >> |
| > >> | My problem Contact Us form is based on a Dynamic Web Template I built,
| > >> | incorporating a top banner and left nav as Includes (FrontPage components).
| > >> | The template works fine, all the other pages using it all work perfectly
| > >> | fine. Just not the validation on the Contact Us form. Does anyone have any
| > >> | clues as to the cause?
| > >> |
| > >> | --
| > >> | ... MaryLou
| > >>
| > >>
| > >>
| >
| >
| >
 

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