I have a pretty complicated form with custom buttons in it. I would like these buttons to validate the entire form WITHOUT submitting.

Can you call that function by itself? I know it runs when you submit but I need to call it early if possible.

Basic function of buttons.

Is this is what you are going to do, are you sure?
If Yes - Send email with form info, submit info to DB.
If No - Message goes to user and nothing is submitted.

The problem is that the email can get sent now if there are validation errors on the form.

I would like to stop the user from seeing any of this if they have not filled out the form correctly. So if I can check it and kick it back before it runs the email code that would be great. I am having troubles figuring this out...

I am using VB Script in this form.

Thanks for any help you can offer!