Add OnSubmit event. May require other params.
Merge pull request #261 from Vermeille/master

Add OnSubmit event. May require other params.