I've attached a javascript redirect (which launches a download) at the click event of my "submit by email" button on a form. However, I also have required fields for this form. Should a user not complete those required fields, but still click "submit by email", the redirect will occur (launching the download), but it'll prompt them to complete the required fields before it'll submit the form by email. Is there a way to fix this or do I just need to scrap the whole required fields function?
↧