Hi,
If you use JavaScript you can create a global boolean variable that initially false. With onSubmit you'll return the value of that variable. The sbmit button will change that variable to true!
I think this works, perhaps there is another method!
Regards,
Luís Silva