I have a javascript validation that works fine in the JS Header of a form. I want to create a variation of this form so I copy the form and change one field name on the form and correspondingly in the javascript. When I try out the validation using the new form I get an “Error on Page” and validation no longer works.
Subject: JavaScript validation problem - error on page
John,
Change your browser settings so that you see script errors. You will get a popup that most of the time offers no helpful information, but every now and then it spells out exactly what field on the form it is having trouble with.
Your error might be due to different field types. Dropdown list fields (
Subject: RE: JavaScript validation problem - error on page
Thanks, Ken. I will try the browser setting. I am aware of the need to code different types of fields differently. What I am doing is simply changing a field name and then making the same change of field name in the javascript. So there is no change in field type. And I have tried both changing the name of the field already there and deleting the field and replacing it with the same type of field with the new name. And I am very careful to make no other change to the code. How can it possibly have an error? But it does.
Subject: RE: JavaScript validation problem - error on page
John,
Maybe there is some other place where you have JavaScript code. Try viewing the source in the browser and searching on the old field name in the new form. Also, remember that JavaScript is case sensitive.