Setting cookie upon form submission
-
I am confused on how to set a cookie upon form submission so that the form does not open again. I created a cookie to expire in 10 years and set its event to Manual JavaScript. Then I added that cookie to my “Auto Open” trigger. So now, if I understand correctly, I need to set the manual JavaScript. Is that right?
There are two documents that talk about this: https://docs.wppopupmaker.com/article/83-set-a-different-cookie-time-on-form-submission and https://docs.wppopupmaker.com/article/84-getting-started-with-custom-js. However, these two documents provide different code. Do I add both sets of code to my functions.php file (I use the functionality plugin so that I won’t lose the changes with upgrades)? Or do I set the code provided on the Getting Started page in functions.php and set the other code somewhere else? Help.
- The topic ‘Setting cookie upon form submission’ is closed to new replies.