Forum
Modal box close on form submit
Hi,
I have a bPopup modal box having a perch form. On submit it closes the dialog box even if form has errors. Is there a way in perch to prevent modal dialog close if perch error (e.g. empty fields) exits.
Regards Kuljeet
You'll need to have your front end code re-open the modal if there's an error.
Please let me know where to fire code from
Is there is place in perch code where i can fire JS code if perch error is generated and stop event propagation.
Yes, use the error tags.
Ok, thanks iill try