# Triggering a custom action when user visits page

**URL:** <https://forum.adalo.com/t/triggering-a-custom-action-when-user-visits-page/25698>\
**Category:** Get Help\
**Created:** [April 8, 2022, 8:58am UTC](https://forum.adalo.com/t/triggering-a-custom-action-when-user-visits-page/25698 "2022-04-08T08:58:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomBlue](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@TomBlue](https://forum.adalo.com/u/TomBlue)\
**Post date:** [April 8, 2022, 8:58am UTC](https://forum.adalo.com/t/triggering-a-custom-action-when-user-visits-page/25698/1 "2022-04-08T08:58:53Z")

</div>

Hey guys,

I was able to call a custom action upon visiting the page:

 ![Screen Shot 2022-04-08 at 11.54.48](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/4/b/4bb47976f8086ae30396fd794eab6cbd79905578.png)

But… I also want to update some text fields (“inputs”) with the results of this custom action. I want it all to happen upon visiting the page (without clicking anything). There are no custom actions when I try to do it:

 ![Screen Shot 2022-04-08 at 11.56.16](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/d/7d76aebbc042808aba1df493e39fc8072ce1740a.png)

If I put a button that does this custom action, then it works well and I can see the custom action results when updating a text field (“input”):

![Screen Shot 2022-04-08 at 11.57.34](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/a/f/afc965c657cb862aee8365f0c62adbc8d9336df9.png)

Any idea how can I do it without a button?  
I want it all to happen automatically when a user visits the page…

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [April 8, 2022, 9:18am UTC](https://forum.adalo.com/t/triggering-a-custom-action-when-user-visits-page/25698/2 "2022-04-08T09:18:27Z")

</div>

Try using a countdown timer component, time it for 1 second and have the action when the timer completes.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [April 8, 2022, 5:21pm UTC](https://forum.adalo.com/t/triggering-a-custom-action-when-user-visits-page/25698/3 "2022-04-08T17:21:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/5/f5b0290e65d74caef41bb366e846834d6705f621.png)  
🙂

> [@theadaloguy](#):
>
> Try using a countdown timer component, time it for 1 second and have the action when the timer completes.

👆

---

<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:** [April 18, 2022, 5:21pm UTC](https://forum.adalo.com/t/triggering-a-custom-action-when-user-visits-page/25698/4 "2022-04-18T17:21:42Z")

</div>

Closed on April 18, 2022, 5:21pm UTC

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