• Is there any option to close the popup when you submit the Divi Contact Form module?

    I am using this plugin on a section with a Divi Contact form. However, I want to close the popup after submission or activate another popup with a Thanks message.

    PS: I don’t like the Thank you message option of the Divi Contact form, that is why I am interested in this option.

    Thanks in advance.

    • This topic was modified 4 years, 1 month ago by konokostore.
Viewing 1 replies (of 1 total)
  • Hello @konokostore ??

    Apologize for the inconvenience!

    This following code closes the Popup and scroll the page on a desired section. When a navigation item is selected from the Popup, the page scrolls to that place and the Popup closes automatically, you can scroll it to the desired section you want.

    JS Code used on this page:

    <script>
    DiviArea.addAction(‘init_area’, function(area) {
    area.get(‘a[href^=”#”]’).click(function() {
    DiviArea.hide(area);
    return true;
    });
    });
    </script>

    Please get back to me, in-case of any query.

    Regards,
    Syed

Viewing 1 replies (of 1 total)
  • The topic ‘Close Popup on form Submission’ is closed to new replies.