# Action temporelle

**URL:** <https://community.glideapps.com/t/action-temporelle/66186>\
**Category:** Ask for Help\
**Tags:** actions\
**Created:** [September 15, 2023, 10:28am UTC](https://community.glideapps.com/t/action-temporelle/66186 "2023-09-15T10:28:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![theom](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@theom](https://community.glideapps.com/u/theom)\
**Post date:** [September 15, 2023, 10:28am UTC](https://community.glideapps.com/t/action-temporelle/66186/1 "2023-09-15T10:28:51Z")

</div>

Existe t-il la possibilité de déclencher une action en fonction d’une date ?  
Ou bien de l’état d’un champ ?

Par exemple, un champ date et un champ boolean.  
Le boolean est initialisé par un if-\>then-\>else. Lorsque que la date du champ date est égale à la date courante, le boolean passe à true. Ceci fonctionne.

Ce changement d’état peux ensuite déclencher une action ? L’idée c’est d’avoir une action temporelle. Lorsqu’une date est atteinte, un sms est automatiquement envoyé.

Ou bien, est-ce que la seule possibilité pour lancer une action, c’est d’appuyer sur un bouton ?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 15, 2023, 11:59am UTC](https://community.glideapps.com/t/action-temporelle/66186/2 "2023-09-15T11:59:36Z")

</div>

> [@theom](#):
>
> Or, is the only possibility to launch an action is to press a button?

Correct. Only the user can launch an action when they do something, like pressing a button.

---

<div class="post-metadata">

**Author:** ![AyS\_0908](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ays_0908/32/27349_2.png) [@AyS\_0908](https://community.glideapps.com/u/AyS_0908)\
**Post date:** [September 16, 2023, 12:41pm UTC](https://community.glideapps.com/t/action-temporelle/66186/3 "2023-09-16T12:41:47Z")

</div>

Hi @Jeff_Hager , do you think that it would be possible for @theom to do it with a “wait for conditions” action?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 16, 2023, 1:44pm UTC](https://community.glideapps.com/t/action-temporelle/66186/4 "2023-09-16T13:44:33Z")

</div>

Even if that works, you would still have to click a button first. And keep the app on that device open until it fires.

That already sounds like it’s not doable, not taking into account a max timeout Glide may have set for that action.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 16, 2023, 3:13pm UTC](https://community.glideapps.com/t/action-temporelle/66186/5 "2023-09-16T15:13:04Z")

</div>

> [@AyS\_0908](#):
>
> Hi @Jeff_Hager , do you think that it would be possible for @theom to do it with a “wait for conditions” action?

No I don’t. ‘Wait for Condition’ should only be useful for waiting at most 1 minute or less. Even one minute is a bit extreme. Really only a few seconds at most. The wait action runs on the user’s device. If they close the app or navigate away from a particular screen, that action is most likely no longer running and waiting…and all subsequent actions won’t run at all.
