# Custom Action when "user enters the screen"

**URL:** <https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160>\
**Category:** Get Help\
**Created:** [November 19, 2020, 11:44pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160 "2020-11-19T23:44:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncmarc](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@ncmarc](https://forum.adalo.com/u/ncmarc)\
**Post date:** [November 19, 2020, 11:44pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/1 "2020-11-19T23:44:47Z")

</div>

Is there a reason why magic text is not available when you run a custom action when the user enters the screen but does when you click a button?

I would love to be able to look something up when a user goes to a page and display/get the result and do something with it.

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 20, 2020, 4:27pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/2 "2020-11-20T16:27:53Z")

</div>

Hi @ncmarc,

I’m not sure what you are referring too as I can use magic text 👇

![MagicText](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/5248f60b89bf15152c5f6e6030a78cf493d3d1ef.png)

Can you please share a picture?

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 20, 2020, 4:32pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/3 "2020-11-20T16:32:16Z")

</div>

Did you correctly set up your data items?

 ![Datafields](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/3/39ee0b82f4742e190f09610f693260bd038aa250.png)

---

<div class="post-metadata">

**Author:** ![ncmarc](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@ncmarc](https://forum.adalo.com/u/ncmarc)\
**Post date:** [November 20, 2020, 7:34pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/4 "2020-11-20T19:34:48Z")

</div>

Yes, for example this (all test data):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/f4becb77348b570939058f7f5d5d67167ff73627.png)

You can see what it returns:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/ae44de7553b681dd1d8735639c9a01429615117d.png)

So why cant I use the variable “totalnotifications” to update some text:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/f807221729166d639fab8fbe6f90bebbecd8affe.png)

But if I use a button to trigger the action instead, then I can grab that data. I feel like I am not understanding something.

---

<div class="post-metadata">

**Author:** ![Devops](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/devops/32/3723_2.png) [@Devops](https://forum.adalo.com/u/Devops)\
**Post date:** [November 20, 2020, 7:43pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/5 "2020-11-20T19:43:32Z")

</div>

Thanks for the screenshots, I haven’t yet seen this bug, did you set up your Custom Action with **Create**?

I’ll try this tomorrow, and see if I have the same bug…

---

<div class="post-metadata">

**Author:** ![ncmarc](https://avatars.discourse-cdn.com/v4/letter/n/d07c76/32.png) [@ncmarc](https://forum.adalo.com/u/ncmarc)\
**Post date:** [November 20, 2020, 8:03pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/6 "2020-11-20T20:03:07Z")

</div>

I found a solution for now. Adalo support confirmed this is not possible.

I was able to get around the issue for now by using the countdown element (made invisible) and run the custom action once the countdown is complete, then it updates the the database. I wasn’t able to do it on a “previous” page because it’s the home page and the user would be getting there from a Push-Notification. (Since we can’t direct users to specific pages from a push notification).

---

<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:** [November 30, 2020, 8:03pm UTC](https://forum.adalo.com/t/custom-action-when-user-enters-the-screen/6160/7 "2020-11-30T20:03:08Z")

</div>

Closed on November 30, 2020, 8:03pm UTC

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