Add OnSubmit event. May require other params.