# Trigger after leaving input field

**URL:** <https://community.weweb.io/t/trigger-after-leaving-input-field/6630>\
**Category:** How do I?\
**Created:** [January 26, 2024, 6:59pm UTC](https://community.weweb.io/t/trigger-after-leaving-input-field/6630 "2024-01-26T18:59:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip1](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Philip1](https://community.weweb.io/u/Philip1)\
**Post date:** [January 26, 2024, 6:59pm UTC](https://community.weweb.io/t/trigger-after-leaving-input-field/6630/1 "2024-01-26T18:59:32Z")

</div>

Hi,  
Is it possible to trigger a workflow after leaving an input field? (by clicking elsewhere)

I am trying to find a way to trigger without needing to press enter, but also don’t want to send an API request after each key being pressed…

Thanks!

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [January 26, 2024, 8:31pm UTC](https://community.weweb.io/t/trigger-after-leaving-input-field/6630/2 "2024-01-26T20:31:15Z")

</div>

You’re looking for the blur event, which is the opposite of focus (when you’re inside the field)

 ![Screenshot 2024-01-26 at 21.30.39](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/14468a85d52e98899537b6e7c0d0d6c63c9d2972.png)

---

<div class="post-metadata">

**Author:** ![Philip1](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Philip1](https://community.weweb.io/u/Philip1)\
**Post date:** [January 28, 2024, 7:17pm UTC](https://community.weweb.io/t/trigger-after-leaving-input-field/6630/4 "2024-01-28T19:17:36Z")

</div>

Found it!  
2 workflows:

1. to update a variable with field value ‘on change’
2. to update database with variable ‘on blur’
