Is there a way to stop cakephp ajax submit to stop the submission in case the user has not entered required details and click the submit button.
Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use the $ajax->submit ‘create‘ options, calling user javascript function foo().
Inside the foo() function I have Event.stop(‘submitButtonId’); where submitButtonId is the submit button id.
The Event.stop() stops the event from bubbling up, and thus prevented the ajax submission.