M
Mohammed Siraj
Guest
Meryem, what I was suggesting was should NEVER detach any existing submit handlers. That is, avoid: formEl.removeAttr('onsubmit'); Second, you need not change your code in 4.0.4, its just that you are duplicating 'Cancel' handling in your submit handler something which is already being addressed in the default existing submit handler. Going forward to attach submit handlers, on the formContext object, we are providing API, i.e.: formDetails.addSubmitHandler(onSubmitHandler);. You can leverage the same instead of : formEl.submit(onSubmitHandler); Once again, if you have got things working, please continue with them & you need not be concerned about any compatibility issues on upgrading to 4.0.4.
Continue reading...
Continue reading...