Close Popup and Create Cookie After Contact Form 7 Submission
This solution works for Auto Open/Time Delay, Scroll, and Exit Intent Triggers.
Setup Your Cookie
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 below to your functions.php:
Next, after you've added the code in the functions.php, navigate to the Advanced Settings of CF7, and add the following code, replacing the "7" with your form ID number:
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.