"Submit" closes the lightbox form is in
-
Hello,
I put form (via the shortcode) in to lightbox that opens when visitor clicks on certain link on the page and I have the following problem:
If I just click form submit button without entering anything in the fields (required fields included) form just closes the lightbox (refreshes so to speak). If I open the lightbox again I can see error text in red above the “required” fields, but how to prevent form from “refreshing” and closing the lightbox in the process if there are errors (like missed required fields). It is fine if form refreshes (and closes lightbox) if submit is succesful, but if there are error messages – they not visible if lightbox is closed. I think the error messages should be displayed “on the spot”, without refreshing the page – is it possible.
Thank you in advance.
- The topic ‘"Submit" closes the lightbox form is in’ is closed to new replies.