• Resolved anjanphukan

    (@anjanphukan)


    Hi,

    It looks like the Stripe field is not rendering in a popup. i tried different popup plugins including Hustle, but it doesn’t work.

    The same form works fine if I add it on a page.

    I have recoded a video and added for your reference.

    There is no error in the browser console.

    Is there any solution for this?

    Thank you.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @anjanphukan,

    Unfortunately, it is a known bug which is already fixed in the upcoming v 1.21. Until we release a new plugin update, you can try the following snippet as a workaround to make it work in Hustle:

    <?php
    
    add_action( 'wp_footer', function(){
        ?>
        <script type="text/javascript">
        jQuery( document ).ready(function($){
            let _hustle = ['.module_id_15', '.module_id_16', '.module_id_17']; //Please change module ID here
            jQuery.each(_hustle, function(index, item) {
    			if ( $(item).length ) {
    				var elems = $(item).find('#stripe-1 .forminator-stripe-element');
    				if ( $( elems ).is( ':hidden' ) ) {
    					jQuery.expr.pseudos.visible = function( elems ) {
    						return true;
    					};
    				}
    			}
    		});
        });
        </script>
        <?php
    }, 9999 );

    Please make sure to edit the following section from the above code to your Hustle ID:
    .module_id_15', '.module_id_16', '.module_id_17

    ie suppose you have the form loaded on 3 Hustle popups with ID 32, 44, and 78 then the above line will change to:
    '.module_id_32', '.module_id_44', '.module_id_78'

    You can implement the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,
    Nithin

    Thread Starter anjanphukan

    (@anjanphukan)

    Hi @wpmudevsupport11

    It worked. Thank you so much for your quick resolution.

    I hope we will have the stable version soon.

    Thanks again.
    Anjan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stripe Field doesn’t show in a Popup’ is closed to new replies.