I've built a bunch of form checks, validations and actions in javascript with jquery and am trying to load it in to a Silverstripe page and use the built in form handling to do the final sending of the emails.
The problem I've got is trying to figure out how to submit the form from javascript.
I've tried using jQuery's .submit() method, but it doesn't work.
I suspect I need to modify the way that this line behaves in my form code:
return new Form($this, 'QuoteForm', $fields, $actions);
adding in a 5th parameter where validation normally fits, but again I'm stuck trying to figure out how to specify my own validation function.
Can anyone help, or should I post a more thorough example?