• Resolved alexjefimov

    (@alexjefimov)


    Hallo!
    Please help me!

    How can I prevent popup opening when client fill in our CF7 form as works, for example, slider’s HoverPause function.

    Thank you!

    The page I need help with: [log in to see the link]

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

    (@mariatogonon)

    Hello @alexjefimov – thank you for writing in to us!

    If I understand your query correctly, once a user has filled up the popup form then the popup will not be displayed anymore. Is that right?

    If yes then you will need to add a From Submission trigger with the help of Form Submission cookie event to the popup.
    ?
    ?The Form Submission trigger is an event that processes data submitted to a form. Use this trigger when adding a Popup Maker subscription form or an integration-supported WordPress form to a popup.
    ?
    ?Use this trigger in combination with a Form Submission cookie to manage when to redisplay the popup after the embedded form is successfully submitted. For more details, see this: Trigger: Form Submission You can also check out this demo screencast from my end: https://share.getcloudapp.com/xQu7dmZ9

    Hope that helps. If you have further questions just let us know.

    Thread Starter alexjefimov

    (@alexjefimov)

    Thank you for an answer. This options we have been using for about 2 years.

    I mean something else.
    1. I have a popup window what will opens in a 30 sec. when client comes on our webpage.
    2. Client wants to fill one of our CF7 forms.
    3. Client starts to fill form and during this process my popup window also starts to open.
    Conclusion: I would like to find possibility to prevent opening ANY of popup windows DURING CF7 form filling.

    There is an example with autoplayHoverPause:truehttps://owlcarousel2.github.io/OwlCarousel2/demos/autoplay.html

    I would like to get something like that.

    Bel

    (@belimperial)

    Hello @alexjefimov

    Thank you for getting back and for providing a sample.

    As of the moment, the plugin doesn’t have the same feature on the sample page. But if you would like the other popups to stop displaying especially if are not associated on the page, I suggest adding targeting rules to each of your popups, limiting it to only where it is actually needed.
    Please see article Standard Targeting Conditions

    I hope that helps.

    Let us know if this fixes the issue or if you have any questions.

    Plugin Support mark l chaves

    (@mlchaves)

    Hi @alexjefimov,

    You should be able to prevent a popup from launching using a listener on your form fields.

    This PHP hook adds jQuery that will prevent a popup from opening when any input field in the first form (wpcf7-f656-o2) on your homepage slider gets clicked.

    
    <?php
    
    /**
     *  Add custom JavaScript for Popup Maker to the footer of your site.
     */
    function prevent_popup_when_filling_out_form() { ?>
    	<script type="text/javascript">
    						
    		jQuery(document).ready(function ($) {
    	
                            // Listen for focus on the first form in the slider.
    			$( '#wpcf7-f656-o2 input, .wpcf7-f656-o2 textarea' ).focus( function() {		
                                    // Change the popup ID to yours.		
    				PUM.preventOpen( 15 );
    				// DEBUG: REMOVE IN PRODUCTION
    				console.log( '[DEBUG] Prevented popup 15 from opening.' );
    			}); // Listener
    			
        	        }); // jQuery
    				
    	</script><?php
    }
    add_action( 'wp_footer', 'prevent_popup_when_filling_out_form', 500 );
    /** 
     * Add the code above to your child theme's functions.php file or 
     * use a code snippets plugin.
     */
    

    Please give that a try. Yell back if you have any questions or need help with that.

    Cheers ??

    Plugin Support mark l chaves

    (@mlchaves)

    Hello @alexjefimov,

    We’re going to close this thread since we haven’t heard back from you.

    Feel free to post a new issue or contact us directly if you need help with anything else.

    https://wppopupmaker.com/support/

    Cheers ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Prevent popup opening when fill in CF7 form’ is closed to new replies.