Support » Plugin: CP Contact Form with PayPal » Opening PayPal in New Window

  • Resolved nrtdesign

    (@nrtdesign)


    Can you direct me to the file that I could change so I could force PayPal to open in a new window? I just need to change it from _self to _blank.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Into the “Customization Area” >> “Add Custom JavaScript” located at the bottom of the page that contains the list of forms, add the following script:

    document.addEventListener("DOMContentLoaded", function(event) {
      document.getElementById("cp_contactformpp_pform_1").target="_blank";
    });

    Thank you for using the plugin!

    • This reply was modified 5 months, 2 weeks ago by  codepeople.

    Thanks for responding so fast. But I added this code where you instructed, and its still not opening in a new window. I refreshed the browser multiple times, and its still not doing it.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please open a private ticket (it’s free) at https://cfpaypal.dwbooster.com/contact-us and indicate into the message the address of the page that contains the form to check the case in detail and adjust the provided code if needed.

    Thank you!

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