Close/Open Popup and Create Cookie After Contact Form 7 Submission
Popup Maker integrates directly with the Contact Form 7 (CF7) plugin to allow plugin users to set a browser cookie on form submit. The cookie prevents a popup that contains the form from displaying again after the form is successfully submitted.
Follow these steps to set a Popup Maker 'Contact Form 7 Success' cookie:
- Within the Popup Editor, scroll to the Popup Settings box;
- Select the 'Triggers' option tab;
- Select the 'Triggers & Cookies' option category;
- Select the button labeled 'Add New Cookie'.
The option settings box labeled 'When should your cookie be created?' will open. Select the drop-down menu options to view the cookie options. Select the 'Contact Form 7 Success' option and then select the 'Add' button to set the option. Follow the remaining prompts within the option settings box to either add or update the cookie option setting.
Minimum Plugin Requirements to Integrate Popup Maker and Contact Form 7
Popup Maker version 1.6+
Contact Form 7 version 4.7+
See the Contact Form 7 Success Cookie In Action
The following videos use an older Popup Maker Admin interface ( before version 1.7+ ). However, the process to set and link a trigger with a cookie remains the same in the current version of the plugin. The example videos in this section demonstrate the link between a trigger and a Contact Form 7 Success cookie.
Create a Cookie on Form Submit
Create a cookie just like you normally would, except select the "Contact Form 7 Success" cookie option as shown in the following video:
Close a Popup on Form Submit
Access the "Close Popup" Action when you build your form inside the Contact Form 7 module, as seen in the following video. If you want your users to see your "Success" message, make sure to set a delay (milliseconds) in the Contact Form 7 plugin options that is long enough so they can read it.
Open a Popup on Form Submit
Access the "Open Popup" Action when you build your form inside the Contact Form 7 module, as seen in the following video: