# Form button does not trigger when Enter key pressed in input

**URL:** <https://forum.bubble.io/t/form-button-does-not-trigger-when-enter-key-pressed-in-input/145279>\
**Category:** Need help\
**Created:** [April 8, 2021, 2:25am UTC](https://forum.bubble.io/t/form-button-does-not-trigger-when-enter-key-pressed-in-input/145279 "2021-04-08T02:25:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon16514257](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@anon16514257](https://forum.bubble.io/u/anon16514257)\
**Post date:** [April 8, 2021, 2:25am UTC](https://forum.bubble.io/t/form-button-does-not-trigger-when-enter-key-pressed-in-input/145279/1 "2021-04-08T02:25:48Z")

</div>

I have a group that contains two inputs (one text and one location search) and a button. I can see in the element tree they are all within the same group. I double-checked to make sure the inputs do not have **Prevent “enter” key from submitting** checked. I’ve read that if you [press **Enter** in the inputs](http://forum.bubble.io/t/saving-text-on-return-key/77580/4), the click event of the button in same group should be fired. However, I’m not seeing that behavior. Any ideas what could be preventing it?

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [April 8, 2021, 2:44am UTC](https://forum.bubble.io/t/form-button-does-not-trigger-when-enter-key-pressed-in-input/145279/2 "2021-04-08T02:44:46Z")

</div>

If the button triggers a function that requires any or all of those inputs. And if those inputs are set not to be empty then the button will not fire the flow.

Check for any of the above and make the preferred changes.

---

<div class="post-metadata">

**Author:** ![anon16514257](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@anon16514257](https://forum.bubble.io/u/anon16514257)\
**Post date:** [April 9, 2021, 3:13pm UTC](https://forum.bubble.io/t/form-button-does-not-trigger-when-enter-key-pressed-in-input/145279/3 "2021-04-09T15:13:52Z")

</div>

Both the inputs are set to allow empty.

The workflow associated with the button click does use those inputs for a search, but **Ignore empty constraints** is set. The button action fires if I click, but not if I hit **Enter** in the inputs.

---

<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:** [June 17, 2021, 2:26am UTC](https://forum.bubble.io/t/form-button-does-not-trigger-when-enter-key-pressed-in-input/145279/4 "2021-06-17T02:26:08Z")

</div>

Closed on June 17, 2021, 2:26am UTC

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