# Disabling submission of text input when Enter is hit

**URL:** <https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212>\
**Category:** Need help\
**Created:** [September 12, 2015, 10:51pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212 "2015-09-12T22:51:31Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![laf](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@laf](https://forum.bubble.io/u/laf)\
**Post date:** [September 12, 2015, 10:51pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/1 "2015-09-12T22:51:31Z")

</div>

Currently, it seems that whenever one hits Enter while typing inside an Input form, the content gets submitted via the action associated with a nearby (?) button.

It is possible to turn off sending when Enter is pressed? Many of our users find that otherwise useful feature irritating because they tend to submit multiple sentences in a certain input form.

Thanks.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [September 13, 2015, 6:51am UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/2 "2015-09-13T06:51:00Z")

</div>

The action “Enter” seems to vary between a standard input and the “Multi Line” input. In Multi Line input, enter gives you a new line in the box, and doesn’t do the “nearby button” action.

Maybe change the input to Multi Line ?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [September 13, 2015, 2:59pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/3 "2015-09-13T14:59:04Z")

</div>

That’s the right approach indeed.

---

<div class="post-metadata">

**Author:** ![laf](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@laf](https://forum.bubble.io/u/laf)\
**Post date:** [September 14, 2015, 6:03am UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/4 "2015-09-14T06:03:23Z")

</div>

Great. Thanks Nigel / Emmanuel.

---

<div class="post-metadata">

**Author:** ![lonetour](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lonetour/32/536_2.png) [@lonetour](https://forum.bubble.io/u/lonetour)\
**Post date:** [February 29, 2016, 5:52pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/5 "2016-02-29T17:52:44Z")

</div>

Is this still an issue? Hitting ENTER always returns the value of the Input, so we need to change every input box to a single line “mulitline input box”? There’s no way to disable an Input??

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.bubble.io/u/Pat)\
**Post date:** [June 2, 2016, 8:02pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/6 "2016-06-02T20:02:10Z")

</div>

also, I would like to be able to switch this function on for multilineinputs. Would it be possible to put that on “the list”?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [June 3, 2016, 12:38am UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/7 "2016-06-03T00:38:21Z")

</div>

We can’t do this, multiline inputs take enter to go to the next line.

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.bubble.io/u/Pat)\
**Post date:** [June 3, 2016, 11:26am UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/8 "2016-06-03T11:26:52Z")

</div>

sorry need to be more specific:

I was thinking about something like in facebook:

![](https://us1.discourse-cdn.com/bubble/original/2X/5/537ba9e8368f7a81c720b26e842317f14f6ef753.png)

Where you have to press Shift + Enter to get a new line or press only enter and it sends the data. Or you can deactivate it and need to press the button to send.

Would that be something achievable?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [June 3, 2016, 2:03pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/9 "2016-06-03T14:03:24Z")

</div>

What we could do is add an option “Trigger a workflow when the user presses SHIFT + Enter”. would that do it?

---

<div class="post-metadata">

**Author:** ![alexandrepineault](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@alexandrepineault](https://forum.bubble.io/u/alexandrepineault)\
**Post date:** [September 18, 2016, 3:10pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/10 "2016-09-18T15:10:34Z")

</div>

Hi,  
Is there a way to remove the action triggered by pressing Enter for single line input?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [September 18, 2016, 3:25pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/11 "2016-09-18T15:25:40Z")

</div>

No there isn’t, but in general it’s a better UX that way. What is the situation?

A hack is to have 2 workflows that could run using this input, in that case, none will be run.

---

<div class="post-metadata">

**Author:** ![thomas.schijf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomas.schijf/32/7387_2.png) [@thomas.schijf](https://forum.bubble.io/u/thomas.schijf)\
**Post date:** [January 23, 2017, 10:43am UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/12 "2017-01-23T10:43:39Z")

</div>

How can I set up such an worflow? So when SHIFT+Enter is pressed the multi-line input is submitted?

---

<div class="post-metadata">

**Author:** ![AlonsoC](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@AlonsoC](https://forum.bubble.io/u/AlonsoC)\
**Post date:** [July 28, 2017, 10:24pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/13 "2017-07-28T22:24:57Z")

</div>

hello everyone!

I’m building a simple chat using a regular input. I’m ok with Bubble sending the chat message when I hit Enter on my keyboard. My issue is that for some reason, when I hit Enter, the page scrolls down quite a bit, which is very annoying for UX.

There is no workflow to change the scroll position on my page.

I know I could use the multiline input instead and have this issue go away, but I prefer the regular input unless I have no other option.

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [July 29, 2017, 12:54am UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/14 "2017-07-29T00:54:13Z")

</div>

@AlonsoC Have you tried using the “Scroll to” element action? You can add it to the same workflow and choose the Enter button as your element to scroll to so that it stays there… or wherever you’d like the page to be.

![](https://us1.discourse-cdn.com/bubble/original/2X/d/d0c84a0657b64b70f9f227764fc14f5eba9a3992.png)

---

<div class="post-metadata">

**Author:** ![AlonsoC](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@AlonsoC](https://forum.bubble.io/u/AlonsoC)\
**Post date:** [July 31, 2017, 2:21pm UTC](https://forum.bubble.io/t/disabling-submission-of-text-input-when-enter-is-hit/212/15 "2017-07-31T14:21:23Z")

</div>

Thank you Gaby for your useful suggestion! It´s weird that it´s scrolling on it its own by default so I´ll have to use a “scroll to element” workflow to counteract that behavior.
