Stop server side code when <form onSubmit> method finds errors
The documentation suggests this method for calling server side methods via SUBMIT: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...
Following that, the form I'm submitting needs to validate the dates entered (the startDate isn't past the endDate).
Trying to keep everything in the .CSP file, I add a tag:
I'm able to validate the dates here, but not matter what I do (quit, return false, redirect) the code that runs on the SUBMIT goes:
Essentially, how can I stop the runat="server" script from going when I find an error onSubmit from the form?