Close Popup When YOP Poll Is Submitted
-
First… Thank you for creating this beautiful plugin, I appreciate all the hard work you have done here. My #1 popup plugin.
That being said, I hope you can help me. I am currently using YOP Poll in conjunction with this plugin. I need the popup to close on poll submission and not reopen. I followed the tutorial that you detailed below but unfortunately I can’t get it to work. Please help!!…
Looking forward to your response…
Thank you!…
Set a Different Cookie Time on Form Submission
If you are not already familiar with using custom JS, check out our getting started guide.
Use CaseYou have a popup with a short cookie so that it opens all the time, and you want to hide it permanently when the user submits your sign up form.
Code
jQuery(‘#popmake-123 form’).on(‘submit’, function () {
jQuery.pm_cookie(
‘pum-123′, // The cookie name that is checked prior to auto opening.
true, // Setting a cookie value of true.
’10 years’, // Plain english time frame.
‘/’ // Cookie path of / means site wide.
);
- The topic ‘Close Popup When YOP Poll Is Submitted’ is closed to new replies.