# Pressing enter in input not triggering button

**URL:** <https://forum.bubble.io/t/pressing-enter-in-input-not-triggering-button/176801>\
**Category:** Need help\
**Created:** [November 4, 2021, 1:02pm UTC](https://forum.bubble.io/t/pressing-enter-in-input-not-triggering-button/176801 "2021-11-04T13:02:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipp1](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@philipp1](https://forum.bubble.io/u/philipp1)\
**Post date:** [November 4, 2021, 1:02pm UTC](https://forum.bubble.io/t/pressing-enter-in-input-not-triggering-button/176801/1 "2021-11-04T13:02:14Z")

</div>

Hey,

I have an input field and a button in a group, as suggested everywhere to submit the button when pressing enter inside the input field:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/c/1c5e90d8164699e3b198bd7195eea7e2c5158c26.png)

To check if it works, I have a text field showing the text from the input. When I press the button the text is shown in the text field, but when pressing enter inside the input field nothing happens.  
Any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![bhavika.kaneria](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bhavika.kaneria](https://forum.bubble.io/u/bhavika.kaneria)\
**Post date:** [November 5, 2021, 5:47pm UTC](https://forum.bubble.io/t/pressing-enter-in-input-not-triggering-button/176801/2 "2021-11-05T17:47:50Z")

</div>

Hi, thanks for posting about this! I did some research and found a workaround that some of our users have come up with: if you group the input element and button together, clicking the “Enter” key should trigger the button’s workflow. I was able to find a couple forum posts about this that explain in a bit more detail ([Saving text on Return Key](http://forum.bubble.io/t/saving-text-on-return-key/77580)). I hope this helps!

---

<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:** [January 13, 2022, 1:02pm UTC](https://forum.bubble.io/t/pressing-enter-in-input-not-triggering-button/176801/3 "2022-01-13T13:02:44Z")

</div>

Closed on January 13, 2022, 1:02pm UTC

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