• Resolved wilwiljaco

    (@wilwiljaco)


    After simulating the form submission in PayPal sandbox, the pop up returns when revisiting the page. I have both “Do Not Show if the Visitor Completed the Campaign Goal” and “Do Not Show if the Visitor submitted a Form in this Popup” checked. I have tried both frequencies one at a time and the popup still returns, asking the same visitor to pay again.

    Any insight is appreciated. Thank you!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brave

    (@getbrave)

    @wilwiljaco You have probably set the goal to Form Submit. 3rd party Form Submission set to goal completion might not properly work by default. You need to modify the previous code we gave you. Replace the previous code with this:

    add_action('wp_head', 'bravepop_close_forminator');
    function bravepop_close_forminator(){
       echo '<script type="text/javascript">
       jQuery(function($){
          $(document).on( "forminator:form:submit:success", function() {
             brave_close_popup(5343);
             brave_complete_goal(5343, 'form');
          });
       });
       </script>';
    }

    Once you have update the code, clear the cache of your cache plugin if you have one.

    Thanks

    Thread Starter wilwiljaco

    (@wilwiljaco)

    The code you provided crashed my website. Apparently there is an error in line 7.

    Plugin Author Brave

    (@getbrave)

    Very Sorry about that. Kindly replace the code with this:

    add_action('wp_head', 'bravepop_close_forminator');
    function bravepop_close_forminator(){
       echo '<script type="text/javascript">
       jQuery(function($){
          $(document).on( "forminator:form:submit:success", function() {
             brave_close_popup(5343);
             brave_complete_goal(5343, "form");
          });
       });
       </script>';
    Thread Starter wilwiljaco

    (@wilwiljaco)

    As of now the code works. Thank you very much once again. I will make sure to write a good review.

    Plugin Author Brave

    (@getbrave)

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.