# Pressing enter key in input does not trigger button workflow

**URL:** <https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396>\
**Category:** Need help\
**Created:** [March 12, 2023, 11:54pm UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396 "2023-03-12T23:54:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali7e](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ali7e](https://forum.bubble.io/u/ali7e)\
**Post date:** [March 12, 2023, 11:54pm UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/1 "2023-03-12T23:54:54Z")

</div>

Hello,

Like it has been said in other posts, I have an input field (single line text field) and a button in the same group. Clicking on the button, when the input field is not empty, triggers a workflow. However, pressing enter does not initiate the workflow associated with the button. Is there something I need to do beyond just having input and button in the same group?

Thanks!

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [March 13, 2023, 12:46am UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/2 "2023-03-13T00:46:13Z")

</div>

There is an option for defeating/enabling enter as submit. Sure you don’t have that set incorrectly?

---

<div class="post-metadata">

**Author:** ![ali7e](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ali7e](https://forum.bubble.io/u/ali7e)\
**Post date:** [March 13, 2023, 12:53am UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/3 "2023-03-13T00:53:30Z")

</div>

I don’t seem to have that enabled:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/e/ae86124e20f47e9f91100832af582bd00ba7e329.png)

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [March 13, 2023, 12:58am UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/4 "2023-03-13T00:58:51Z")

</div>

Are you sure your input linked in a meaningful way/used in the corresponding workflow?

(Aside: Also, you’re now discovering that vague descriptions of issues in Bubble pretty much immediately escalate to “MOOOOVE… lemme fix your editor”. There’s no other way for that to work in drag/drop/visual coding environments. No StackOverflow for you!)

---

<div class="post-metadata">

**Author:** ![ali7e](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@ali7e](https://forum.bubble.io/u/ali7e)\
**Post date:** [March 13, 2023, 1:15am UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/5 "2023-03-13T01:15:34Z")

</div>

Hi Keith,

Thanks for the quick reply. Input is definitely used in a workflow. Once the button is clicked, a loading animation is triggered, the input’s value is passed to an API, the result is stored in the database, and the result is also displayed on the page, and the loading animation is then hidden. Is that maybe not meaningful enough for the button and the input to get linked?

Thanks.

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [March 13, 2023, 10:32am UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/6 "2023-03-13T10:32:43Z")

</div>

Hi there, @ali7e… to the best of my knowledge, what you described should work (i.e., pressing _Enter_ should run the button’s workflow). If you haven’t done this already, you could try adding an _An input’s value is changed_ workflow event for the input, and have the event run the same actions that are run when the button is clicked.

Hope this helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 21, 2023, 11:55pm UTC](https://forum.bubble.io/t/pressing-enter-key-in-input-does-not-trigger-button-workflow/251396/7 "2023-05-21T23:55:04Z")

</div>

Closed on May 21, 2023, 11:55pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
