Help with onClick Javascript on Submit Button

Avg Bid (USD)
Project Budget (USD)
$15 - $20

Project Description:
I need help solving a subscription form problem:

I'm using mootools validation for my form which works great. The form's action is linked with a SalesForce tracking and this works great.

What I also want to do is when the submit button is clicked, it forwards the person to another page on the website.

I can do this with:


...but my problem is that it will click through even if the form isn't validated. Meaning, if someone clicks submit without entering their email address, the form's action won't work (because the form didn't validate) but it will still bounce the person to the new page.

How can I stop the onClick from happening if the form isn't validated? Does anyone have a solution to this problem? I can provide a URL if requested in private message.

Skills required:
Amazon Web Services, Engineering, Javascript, MySQL, PHP, Project Management, Software Architecture, Software Testing, Web Hosting, Website Management, Website Testing
Hire jami0821
Project posted by:
jami0821 United States
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire tuncaydemirtepe
$ 17
in 1 days
$ 12.75
in 1 days
$ 14.45
in 1 days
Hire ztrekrvw
$ 8.5
in 1 days
Hire expert175
$ 12.75
in 1 days