close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Validation errors showing on page load.

Thread began 4/20/2012 1:47 pm by nibo | Last modified 4/23/2012 6:41 am by nibo | 974 views | 1 replies


Validation errors showing on page load.

I'm using Form Builder (2.0.1) and have several fields which need to validated. When the page is loaded all of the validation error messages are displayed, even without any of the fields being made active.

This has only recently happened as I had been editing the form and the validation errors were working in the correct way.

The area which is displayed, but which should be hidden until validation is triggered is:

<span class="serverInvalidState" id="First_Name_ServerError">Please enter your first name</span>

If I change "false":

if (ValidatedField('getafreeremovalquote','getafreeremovalquote')) {
if ((strpos((",".ValidatedField("getafreeremovalquote","getafreeremovalquote").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {

to "true":

if (ValidatedField('getafreeremovalquote','getafreeremovalquote')) {
if ((strpos((",".ValidatedField("getafreeremovalquote","getafreeremovalquote").","), "," . "1" . ",") !== true|| "1" == "")) {
if (!(true)) {

Then it works as it should. I presume that some code elsewhere on the page is incorrect.

The script placed at teh bottom of the page is:

<script type="text/javascript">
var First_Name_Spry = new Spry.Widget.ValidationTextField("First_Name_Spry", "none",{validateOn:["blur"]});
var Last_Name_Spry = new Spry.Widget.ValidationTextField("Last_Name_Spry", "none",{validateOn:["blur"]});
var Email_Address_Spry = new Spry.Widget.ValidationTextField("Email_Address_Spry", "email",{validateOn:["blur"]});
var Phone_Number_Spry = new Spry.Widget.ValidationTextField("Phone_Number_Spry", "none",{validateOn:["blur"]});
var Delivery_County_Spry = new Spry.Widget.ValidationTextField("Delivery_County_Spry", "none",{validateOn:["blur"]});
var Move_Details_group_Move_Date_Spry = new Spry.Widget.ValidationTextField("Move_Details_group_Move_Date_Spry", "date", { format:'mm/dd/yyyy' , validateOn:["blur"]});
var Move_Details_group_Move_Details_Spry = new Spry.Widget.ValidationTextarea("Move_Details_group_Move_Details_Spry",{validateOn:["blur"]});
var Security_Code_Spry = new Spry.Widget.ValidationTextField("Security_Code_Spry", "none",{validateOn:["blur"]});

var Pickup_County_Spry = new Spry.Widget.ValidationTextField("Pickup_County_Spry", "none",{validateOn:["blur"]});

Could anyone tell me where to look?


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...