Preventing submission
In certain situations it may be necessary to prevent a submit to the form receiver.
For instance, if you add a validation to a field you want to prevent submits when the validation fails.
You can accomplish this using a small piece of javascript.
this.formReceiverSubmitDisabled = true;
This javascript statement sets the formReceiverSubmitDisabled property of the current document.
Do make sure to re-enable submission by setting the value of this property to false. Otherwise no submit will be possible.