I’m trying to put a simple modal up when a user first visits. The standard one about cookies being used and when they click agree the modal goes away.
I created a cookie, I created the modal. I have bound the value of the cookie to the modal button and defaulted it to 0. I have an “on click” action for the modal button that sets the cookie value to 1.
Then I have a show/hide on the modal to show when cookie is 0 and hide when cookie is 1.
If I set the modal to auto show it always comes up no matter what and when I turn auto show off the modal never comes up. Code below. Please help!
Thanks this worked and it is funny I did not see the bottom of the post and I first tried cookies1.data.agree == 0, and that did not work because on the first go the cookie is not set yet. I figured it out and I was going to come back and mention it and then noticed I was too late - you guys are too good and too fast.