How are you submitting the file (by email, to a web-service, something else)? And what are you submitting (the entire file, an FDF file, something else)?
Do you have required fields in the file that you want validated before it is submitted?
The thing is that if you do the validation with JS then you also need to submit the file with JS. You can't use the built-in Submit Form action any more.