Support » Plugin: Simple Cloudflare Turnstile - CAPTCHA Alternative » Request for integration in forms in Elementor Popups

  • Resolved chrissienoodle

    (@chrissienoodle)


    Is there any chance you could integrate turnstile in Elementor forms that are located inside Elementor modals (popups) ?

    Elementor modals do not exist in the DOM when the page loads but are generated after a specific action. All forms located in Elementor popup fail the turnstile verification because the adequate input is not added to the form.

    Here is the JS script that should enable you to add the appropriate methods to add the input :

    jQuery(window).load(function() {
        jQuery.each( elementorFrontend.documentsManager.documents, ( id, document ) => {
    	if ( document.getModal ) {
                document.getModal().on( 'show', () => {
    		//Run your script here
    	    });
    	}
        });
    });	

    Thank you very much in advance and keep up the great work.

Viewing 1 replies (of 1 total)
  • Plugin Author Elliot Sowersby

    (@elliotvs)

    Thanks for the info! Will look into this and consider adding support for it in the future.

Viewing 1 replies (of 1 total)
  • The topic ‘Request for integration in forms in Elementor Popups’ is closed to new replies.