• Resolved manilLons

    (@manillons)


    Hi,
    I use a signature add-on for contact form 7. It works well but not when the form is inserted into a popup. I need redrawing the signature field when the popup is open.
    The plugin dev tells we should add this to the popup callback:
    $('div.wpcf7 > form').wpcf7InitSignatures();
    Can you help me to implement this please ?
    regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Maria T

    (@mariatogonon)

    Hello @manillons, thanks for reaching out.

    I will have to escalate your?concern?to our lead developer and?as soon as we get any new information regarding this then we will reply to this thread with an update.?

    We appreciate your patience.

    Thread Starter manilLons

    (@manillons)

    Hi,
    Thank you. You can see here the form and the signature field issue when opened into a popup :

    https://comptepersonnel.com/elearning/test-cf7-popup-signature/

    Regards

    Plugin Author Daniel Iser

    (@danieliser)

    @manillons – I think this is what your looking for:

    jQuery('.pum').on(function () {
        $('div.wpcf7 > form').wpcf7InitSignatures();
    });

    Hope that helps. If your issue is resolved please take a moment to rate and review the plugin or support.

    If you still need help please message us directly at https://wppopupmaker.com/support/.

    Thread Starter manilLons

    (@manillons)

    Hi,
    Thank you for your help. Can you just tell me where to add this function please?
    Regards

    Thread Starter manilLons

    (@manillons)

    Hi there,

    I received support by mail. Here is the solution for this issue :

    add_action( 'wp_footer', 'my_custom_popup_scripts', 500 );
    /**
     *  Add custom JavaScript scripts to the footer of your site theme.
     *
     * @since 1.0.0
     *
     * @return void
     */
    
    function my_custom_popup_scripts() { ?>
            <script type="text/javascript">
            (function ($, document, undefined) {
    
    			jQuery('.pum').on('pumAfterOpen', function () {
        $('div.wpcf7 > form').wpcf7InitSignatures();
    });
    
            }(jQuery, document))
            </script><?php
    }

    Thank you for the great support !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Popup callback function for signature’ is closed to new replies.