# Multi-line user input - Allow an option for "Enter" to send

**URL:** <https://forum.bubble.io/t/multi-line-user-input-allow-an-option-for-enter-to-send/267549>\
**Category:** Idea\
**Created:** [June 14, 2023, 1:04am UTC](https://forum.bubble.io/t/multi-line-user-input-allow-an-option-for-enter-to-send/267549 "2023-06-14T01:04:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [September 13, 2023, 8:29am UTC](https://forum.bubble.io/t/multi-line-user-input-allow-an-option-for-enter-to-send/267549/3 "2023-09-13T08:29:21Z")

</div>

Add JS with toolbox on page load:

$(window).keydown(function(e) {  
if (e.keyCode == 13 && !e.shiftKey) {  
e.preventDefault();  
$(’#message’).blur();  
if($(’#enter’).length){  
$(’#enter’).click();  
}  
}  
});

where ‘message’ is the HTML custom ID of the multiline input and ‘enter’ is the ID of the ‘send’ button. When enter is typed without shift, it will simulate a click on the send message button.

---

_[View the full topic](https://forum.bubble.io/t/multi-line-user-input-allow-an-option-for-enter-to-send/267549)._
