Forum Post: Re: New Ui - How To Intercept Form Submission (quick Create) ?

  • Thread starter Thread starter Mohammed Siraj
  • Start date Start date
Status
Not open for further replies.
M

Mohammed Siraj

Guest
Meryem, looks like you are attaching multiple submit handlers. That is each invocation like, $("#theForm").submit(function(e){ return false; }); will attach a new submit handler to your form. And, if any ONE of the submit handlers returns false or calls event.preventDefault(), then form submission will fail. Would suggest you have just one handler i.e. onSubmitHandler that you have described above. This same handler should have the necessary logic to lauch all popups & once you are ready to submit, this handler should return TRUE. That is, when it is launching pop-ups only then it should return false. When all popups are done, invoke formNode.submit() or $("#theForm").submit() from within handler. This will cause onSubmitHandler to be called again, this time it should return TRUE.

Continue reading...
 
Status
Not open for further replies.
Back
Top