Forums

Using the Auto JavaScript Validation

libdesign 26 Apr, 2013
Hi Bob,

How doe I get the Auto JavaScript Validation to work. I have my form elements structured as follows

Preview area elements:
- custom html (which is my custom form code)
- Enter the Code
- Submit

Events area elements:
On Load
- Load Captcha
- Show html

On Submit
- Auto JavaScript Validation
- Check Captcha
On Success
On Fail
- Event Loop

Email - Website Credit Application Form Email

Show Thanks Message


In the Auto JavaScript Validation I have the required list of required fields comma separated.

When I save all and test the form by clicking on the submit form with no fields filled in I only get the Captcha error, not the error for the required fields.

Do I need to structure the elements to get the required fields to validate before the Captcha gets checked?

Thanks,
Adriana
GreyHead 26 Apr, 2013
Hi Adriana,

The Auto JavaScript Validation is run when the page loads into the browser so it needs to go into the On Load event of your form.

You will also need to turn on JS Validation on the form Validation tab (click the form name link in the Forms Manager to see it).

I think that is all.

Bob
libdesign 26 Apr, 2013
Hi Bob,

Thanks for the help. I turned the JS Validation on as you instructed, then I put the Auto JavaScript Validation in the On Load area and initially it didn't work until I figured out I needed to make it the very first item in On Load. Now it is working. 😀

Adriana
This topic is locked and no more replies can be posted.