# How to get a popup to load just once?

**URL:** <https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778>\
**Category:** Need help\
**Created:** [October 6, 2017, 10:06am UTC](https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778 "2017-10-06T10:06:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex8](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@alex8](https://forum.bubble.io/u/alex8)\
**Post date:** [October 6, 2017, 10:06am UTC](https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778/1 "2017-10-06T10:06:40Z")

</div>

Hi,

I’m trying to build a page where a popup will load immediately when a user arrives on a page.  
Once the user has picked ‘i agree’ on the popup, the user will be navigated to the page without the popup.

Currently, I have set it up so once the page is loaded, the popup appears. However, this means everytime I close the popup, the page loads and the popup appears again. How can I get around this so the popup loads only once (upon first-visit).

 ![32](https://us1.discourse-cdn.com/bubble/original/3X/b/b/bb024a0f2c0ec595135535d7e29da3b889ef3a88.png)

Any help appreciated!

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![djwideman](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@djwideman](https://forum.bubble.io/u/djwideman)\
**Post date:** [October 6, 2017, 10:48am UTC](https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778/2 "2017-10-06T10:48:56Z")

</div>

add a true/false field to the user data type (terms\_agreed), and set default to _false_ for new users. In your workflow, when user clicks button I agree, update their terms\_agreed to _true_.

Add a condition to your page load event: when page is loaded and current user’s terms\_agreed=“no”–\>show popup. That should do it.

---

<div class="post-metadata">

**Author:** ![alex8](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@alex8](https://forum.bubble.io/u/alex8)\
**Post date:** [October 6, 2017, 12:29pm UTC](https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778/3 "2017-10-06T12:29:23Z")

</div>

So, I think I set this up correctly but after pressing the ‘I agree button’, the user is not redirected back to the page.  
Not sure what is wrong.

 ![49](https://us1.discourse-cdn.com/bubble/original/3X/f/8/f88480984d610c1e84127cfde06b61014cb90c01.png) ![08](https://us1.discourse-cdn.com/bubble/original/3X/e/4/e4f831d276ed3b8dab293667966e8c2f84fd6476.jpg) ![39](https://us1.discourse-cdn.com/bubble/original/3X/9/9/99b2f2a14867dcb213d2cbedc60c29843d1a0e35.png)

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [October 6, 2017, 12:38pm UTC](https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778/4 "2017-10-06T12:38:04Z")

</div>

Are you trying to navigate them back to the page they’re already on? Why not just hide the popup?

Also, it says you have 2 errors, what are they?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 15, 2017, 10:06am UTC](https://forum.bubble.io/t/how-to-get-a-popup-to-load-just-once/18778/5 "2017-12-15T10:06:42Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
