I have a custom module with a frontend form. How is it possible to show a popup after submitting the form? Please give a solution. Any help would be appreciated.
-
please check this link might be useful for you magento.stackexchange.com/questions/176189/…– Nagaraju KasaJul 5, 2017 at 4:27
-
Please refer the following link: magento.stackexchange.com/questions/181776/…– VindhujaJul 5, 2017 at 4:31
2 Answers
Follow this step
- Submit form Using ajax
- on ajax success open popup
-
I have changed the form submission using ajax. But how is it possible to display the popup on ajax success.This is my script. complete: function(response) { alert("success"); jQuery.fancybox({ maxWidth : 450, maxHeight : 350, fitToView : false, width : '70%', height : '70%', autoSize : false, }); }, alert("success") is working. But popup is not loading. Please help.– E.BJul 4, 2017 at 7:34
-
You can call function onClick event of form button and in that function display/show modal using jQuery.