Form Field Validations not Working

G

Guest

I use FP 2003 and ValueWeb hosts my website. ValueWeb uses unix servers that
have FrontPage Extensions. I am self taught on website development. Embedded
in my website, are some simple forms that visitors can complete to get
quotations for the equipment that i sell. Each field of the form requires an
input or you will get a Microsoft error that says Name1 must be entered, or
whatever field the visitor omitted. Once completed, another browser opens
giving the visitor a quote, and i receive an email with the information that
they entered. The problem i am having is this: when i first enable one of
these forms, and publish the site, everything works perfectly. After 3 or 4
weeks, the validation part of the form stops working. The form basically
still works if the visitor enters the data, however, they are not REQUIRED to
enter the data, as the validations should require. Another odd thing is that
this does not happen to all of the forms on my website. Just one or two. When
i report this to ValueWeb, they just tell me to reload the FrontPage
extensions, which i do, but it never fixes the problem until i complete
redesign and publish the form. Please help. This is driving me crazy. Thanks
 
S

Stefan B Rusynko

FP validation is pure JavaScript - not server extensions
- check your form name (if you have renamed it FP validation won't work)
Provide a URL to the form

--




| I use FP 2003 and ValueWeb hosts my website. ValueWeb uses unix servers that
| have FrontPage Extensions. I am self taught on website development. Embedded
| in my website, are some simple forms that visitors can complete to get
| quotations for the equipment that i sell. Each field of the form requires an
| input or you will get a Microsoft error that says Name1 must be entered, or
| whatever field the visitor omitted. Once completed, another browser opens
| giving the visitor a quote, and i receive an email with the information that
| they entered. The problem i am having is this: when i first enable one of
| these forms, and publish the site, everything works perfectly. After 3 or 4
| weeks, the validation part of the form stops working. The form basically
| still works if the visitor enters the data, however, they are not REQUIRED to
| enter the data, as the validations should require. Another odd thing is that
| this does not happen to all of the forms on my website. Just one or two. When
| i report this to ValueWeb, they just tell me to reload the FrontPage
| extensions, which i do, but it never fixes the problem until i complete
| redesign and publish the form. Please help. This is driving me crazy. Thanks
| --
| Preston
 
G

Guest

Stefan, Here are the URL to 2 forms, the first is working correctly, the
second isn't. Click the 'go to quote' button without any info in the blanks.
At
http://www.associatesimaging.com/CT for sale 1.html#Imatron EBT Scanner 9-24-04
location, the form performs correctly and give a Internet Explorer Error and
tells the user to enter a valid name in the name field. At
http://www.associatesimaging.com/CT for sale 1.html#Volume Zoom 9-24-04,
when you click, it goes to my error page and ignores the form field
validations. Remember also that this form worked for a month or so and all of
a sudden stopped working correctly, so i don't think that the name of the
form is at fault, although i could be wrong. Thanks for your help.
 
R

Ronx

First, Bookmarks on this page do not work, probably because they contain
spaces. Spaces in links and bookmarks break links. Remove all spaces from
your filenames and bookmark names. There is an addin at www.jimcoaddins.com
that will help with this.

Second Optimising HTML by removing all whitespace makes debugging very
difficult. Also, some browsers have a limit on the length of a line of
code, concatenating the lines of code may cause that limit to reached,
causing the browser to not display the page at all, or even crash.

The validation on the first form on the page works correctly.
The validation on the second form fails, because it is attempting to use the
validation script for the first form.
In the second form (if you can find it in the mess) change
onsubmit="return FrontPage_Form1_Validator(this)" to
onsubmit="return FrontPage_Form2_Validator(this)"
 
G

Guest

Thank you Ron. That did fix the problem. I am not sure what causes this to
change but will keep an eye on it. I will also check out that website to get
rid of the spaces in the file names. My website was down this morning so that
might have been why the links i gave didn't work. Thanks again for your help.
 

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