Streaming live at 10am (PST)

Popup that doesn't reappear


#1

hello

I think this has been asked before, but I can't find it in the archives.

I've created a simple popup on scroll on the home page using interactions, but is there a way to stop the popup reappearing if it has been opened once, or the form in the popup submitted, even if the viewer navigates away from the home page and then back to it?

Thanks

Dan


#2

Hi - can anyone help with this? @cyberdave @vincent @bartekkustra ?

Thanks


#3

Hello Dan,

By the sounds of it what you're looking to do may need some cookies functionality which checks whether the user has a cookie or not.

You may need to wait for the professionals here:smile: )


#4

Hi - Yes, thanks...I suspected that and am waiting patiently...! :grimacing:


#5

Yep you need to set a cookie.

Now the european law oblige you to make an extra popup upon site launch to tell europeans you're using cookies. You can use another cookie to prevent this cookie popup to reopen. How's that funny... :wink:


#6

Ha!... Thanks @vincent ... but given my lack of jQuery knowledge and that I have already built the popup using interactions, which parts of the code in the examples do I need to put into the head and body? Your help is appreciated.


#7

Did you manage to get this sorted? I'm looking to do something similar and I'm trying to work out if it's viable to have this kind of functionality on a Webflow hosted site, and ideally with an interaction based pop-up like you.

@vincent do you know if that's doable?


#8

Hi I should have answered, I don't do JS or anything server related like cookies, htaccess etc... I have no skills at that.


#9

Ah OK, thanks anyway! My first strategy is to try and convince the client that it's not a great idea anyway as I think the thing he's asking for is a bit 'dark UX', but I am still interested to know how it would be done if anyone else knows.


#10

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.