Open popup after a period of time

If I had a pop up on page load but I only wanted it to open after 2 weeks of the app being used by a user or after a certain number of times the app was opened, is there a way to do that?

Set a field on user table “first signup” (created at is not always correct since an anonymous user has this set as well and so when such a user signs up in a few days time created at will not be adjusted.

Populate that field “first_signup” when the user signups.

Have a workflow that checks that field and compares it with current date/time. When two weeks or more, show pop-up.

Cheers, Im glad its doable, Im not sure how to make a workflow that checks a field and compares it to current date and time though. Ill have to have a play

It is just like math, you have to play in order to fully understand ;). Some extra hooks for you to start your search:

  • learn how to change a thing and change current user in workflow (to set a field value in Bubble DB)
  • learn about “current date/time” in bubble. Remember that current date/time is the time set on page load and will not be updated when you leave the page as is. So if you load the page, wait for 5 min, the current date/time will give you the time 5 minutes ago.
  • you can have your “first_signup” of type date minus current date/time or add it. Do operations with it etc.
  • learn about extracting weeks, days, months, hours from a date field
  • learn about convert to number (as date/time in bubble is the number of miliseconds after epoch - learn about UTC and the concept of “moment in time” and timezones.

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