To be more specific about the problem - modal continues to show each time I refresh the page. I want the modal to not show for 7 days once a user clicks out of the modal.
I do have an interaction set on the modal to pop up after 10 seconds. I tried removing the interaction to see if it was the problem but it did not work.
Should I use an interaction or should I add code so the modal doesn’t pop up for 10 seconds? I don’t think the interaction is the problem but here is a forum to help if needed - Here is a forum to help regarding the interaction - Set a cookie on interaction
hi @Jack_Buttjer I don’t use this library but as there is not value signed and stored in storage I was checking library documentation and according to docs a cookie variable should be capitalized Cookies and you have cookies .
hi @Jack_Buttjer I don’t use for cookies any library as I’m using vanilla javaScript. But I had looked on your code and you injecting an old library link. You can try this instead <script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.0/dist/js.cookie.min.js"></script>
and then double check documentation, your code and if need watch video again. It should work.
hi @Jack_Buttjer if you still struggle to implement cookies handler and willing to save your time feel free to PM me to talk about my rates.
EDIT: I have now checked your site and it showing (beside other errors) invalid character \u2018 that is a single quote it seems that code was copy pasted from some word editor. The solution will be replacing ALLsingle quotes to make code readable by browser.
@Stan you’re awesome thank you! What do you recommend using to write/edit code in the future? Also are those errors aside from the invalid character having to do with the same script? I’ll PM and pay you to make the changes if they are different.
hi @Jack_Buttjer I’m happy to help for free on this forum when possible and if this solved your issue I’m happy I was able to find the problem for you. Most popular code editor is VS Code but is not necessary to use it with WF as you can just write code directly in WF. Just do not copy paste from any word/text editor.