Close Popup and Create Cookie After Gravity Forms Submission

This solution works for Auto Open/Time Delay, Scroll, and Exit Intent Triggers.

Setup Your Cookie

First,  setup your Cookie your using the Manual JavaScript Cookie Creation Event in the Popup Editor.

After clicking Add, you will be able to customize every aspect of how your Cookie will behave. For detailed explanations on all of the Cookie Settings and features, check out the  Cookie Settings and Features Doc.

Add the Code From the WordPress Admin

  1. Edit your form’s confirmation messages.
  2. Check the box to "Disable Auto-Formatting".
  3. Paste your modified code from below, exactly as it is, and save - make sure to change the Popup ID # to your Popup ID # found in the All Popups Screen. You may also want to edit the time value to suit your needs.

Avoid All This Hassle

And  switch to Ninja Forms! Popup Maker comes with this functionality built in if you're using Ninja Forms. Open and close popups, plus create cookies on form submit with the click of a button by using Popup Maker and Ninja Forms together! Plus, these features work with all triggers.

Still need help? Contact Us Contact Us