• Hi all,

    I have a custom post type in WordPress and I have created an Elememtor Single template which shows student details. I have a button on this page which launches an Elementor Popup and inside this popup I have a form built with WS Form. The form is used to update ths student details and it all works really well.

    However, having updated the details in the form and then closing the Elementor Popup I need to refresh the parent page.

    I think this should be possible by putting some custom Javascript into the Popup itself but so far I haven’t been able to get this to work.

    I have been trying to use:-

    <script>
        window.onunload = refreshParent;
        function refreshParent() {
            window.opener.location.reload();
        }
    </script>

    Could anyone talk me through what I need to do to get this to work?

    Thanks

    D

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Refresh page when closing popup’ is closed to new replies.