• Resolved northernwebguy

    (@northernwebguy)


    I used the code

    add_filter( 'boxzilla_box_options', function( $opts, $box ) {
        $opts['closable'] = false;
        return $opts;
    }, 10, 2 );

    to prevent users from bypassing the box. but after they sucessfully complete the form, it remains and user cannot proceed to the destined page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    Do you have a link to your site? You will need to call some code that closes the box after the form is successfully completed, otherwise the box will never be closed (as it is unclosable).

    The code to close the box is Boxzilla.dismiss() in JavaScript.

    in HTML:

    
    <script>Boxzilla.dismiss();</script>
    

    In a link:

    
    javascript:Boxzilla.dismiss();
    

    How to go about implementing this really depends on what form you’re showing inside the box.

    Let us know please.

    Plugin Contributor Lap

    (@lapzor)

    Since there have been no replies to this topic for awhile I will now close this ticket as resolved.

    If you still have a problem or you have a similar problem as posted above, please open a NEW topic. Don’t forget to include a link to a page where we can see the issue whenever possible. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘prevent closing box issue’ is closed to new replies.