My process is:
- Call a js query on submit.
- js determines where the form is to be submitted and how based on the form contents.
- If there is an error in the js or my js determines entries are incorrect, the js finishes but the form component keeps acting as if the form was successfully submitted by running the remaining submitted events and clearing the form.
I am looking for something that duplicates the html submit cancel capability like:
<form onsubmit="return isValidForm()" />
If isValidForm()
returns true
the form is submitted to the server. If it returns false
, all processing stops.
I am guessing this should be moved over to feature requests.