# User survey popup after user spent certain time on app

**URL:** <https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439>\
**Category:** Get Help\
**Created:** [September 1, 2022, 1:35pm UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439 "2022-09-01T13:35:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxZHou](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MaxZHou](https://forum.adalo.com/u/MaxZHou)\
**Post date:** [September 1, 2022, 1:35pm UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/1 "2022-09-01T13:35:32Z")

</div>

Hi everyone:

So basically I want to have a function where after maybe like user spent 5 min on the app, a survey would jump out to ask him/her to provide some feedback for the app, is there any feature that can achieve this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [September 1, 2022, 5:18pm UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/2 "2022-09-01T17:18:03Z")

</div>

Hi @MaxZHou,

I see several options here.

1. You can add a DateTime property to Users collection, call it “survey popup time”. Set it on the 1st app screen, for example to Current time + (86400/24/60)\*5 (this will put a value of current time + 5 minutes).  
Then on each screen of the app you add a conditional action linking to a Survey screen. This action should execute only Logged-in User → survey popup time is before Current time.  
Don’t forget to set “survey popup time” to some far date in future after the survey is completed - otherwise your users will see it each time.

With this approach, users will get to a survey eventually - though only after they perform an action in the app (it won’t pop up automatically).

1. You can use timers. Add timer on each screen, store the remaining seconds (as usual in Logged-in User, calculate them each time you navigate through the screens) and initialise them upon screen enter. This thread may be useful (how to store remaining time for timer: [Getting most recent value from countdown timer](https://forum.adalo.com/t/getting-most-recent-value-from-countdown-timer/14681)).

With this approach, you will get pop-up roughly after 5 minutes (or the time you’ve set).

Unfortunately, the approach of one timer which acts “independently” on a separate screen no longer works.

As a side note - unwanted pop-ups are not the best UX practice and users may not be happy with them.

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![MaxZHou](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MaxZHou](https://forum.adalo.com/u/MaxZHou)\
**Post date:** [September 2, 2022, 6:40am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/3 "2022-09-02T06:40:41Z")

</div>

Hi there

I have done the first step here, however, I am struggling with the second step, so do I add a countdown timer to each of my pages? What is the workflow for this? Thanks very much.

 ![Screen Shot 2022-09-02 at 4.38.51 pm](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/2/6283084bdc7fa59653e7f1f7aa89bc3b2489583d.jpeg)  
 ![Screen Shot 2022-09-02 at 4.39.18 pm](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/6/761b5e54f25ec100762c965efd629615a2dd2215.jpeg)

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [September 2, 2022, 2:57pm UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/4 "2022-09-02T14:57:04Z")

</div>

Hey @MaxZHou,

Options I’ve mentioned more like **alternatives**.  
So if you have conditional action attached to regular button / screen loading / etc. which directs your users to survey screen, no need to use timers.

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![MaxZHou](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MaxZHou](https://forum.adalo.com/u/MaxZHou)\
**Post date:** [September 3, 2022, 8:14am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/5 "2022-09-03T08:14:01Z")

</div>

Hi there, thanks for your suggestion! But however, I didn’t quite get it, if I have conditional action for the buttons, how would I have the conditional action directing to the survey only roughly after 5min? Thanks!

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [September 4, 2022, 10:12am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/6 "2022-09-04T10:12:36Z")

</div>

Hello @MaxZHou,

As I’ve already said:

- add a DateTime property to Users collection, call it “survey popup time”.
- Set it on the 1st app screen, for example to Current time + (86400/24/60)\*5 (this will put a value of current time + 5 minutes)
- on each screen of the app add an action linking to a Survey screen
- make these actions conditional, so that they are executed only if Logged-in User → survey popup time is before Current time
- after user finishes the survey, set Logged-in User → survey popup time to some far date in future.

Best,  
Victor

---

<div class="post-metadata">

**Author:** ![MaxZHou](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MaxZHou](https://forum.adalo.com/u/MaxZHou)\
**Post date:** [September 7, 2022, 7:09am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/7 "2022-09-07T07:09:48Z")

</div>

Hi there

thanks for this! However it is not working, I have set everything up as you said and it is not directing the users to the pop up

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [September 7, 2022, 9:55am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/8 "2022-09-07T09:55:05Z")

</div>

Hello @MaxZHou,

Then most probably you’ve made some mistakes in implementation.

Everything works perfectly on my side. I’ve recored a video with the example: [Loom | Free Screen & Video Recording Software | Loom](https://www.loom.com/share/6e552a51e60a4dfd942547ed87774232)

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![MaxZHou](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MaxZHou](https://forum.adalo.com/u/MaxZHou)\
**Post date:** [September 8, 2022, 11:30am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/9 "2022-09-08T11:30:13Z")

</div>

Thanks! I will check it out and test it.

---

<div class="post-metadata">

**Author:** ![MaxZHou](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MaxZHou](https://forum.adalo.com/u/MaxZHou)\
**Post date:** [September 8, 2022, 11:36am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/10 "2022-09-08T11:36:02Z")

</div>

Thanks it worked!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [September 18, 2022, 11:36am UTC](https://forum.adalo.com/t/user-survey-popup-after-user-spent-certain-time-on-app/31439/11 "2022-09-18T11:36:32Z")

</div>

Closed on September 18, 2022, 11:36am UTC

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