# How to have the enter/return key add a line break/new line in a form multiline text box?

**URL:** <https://pdfjs.community/t/how-to-have-the-enter-return-key-add-a-line-break-new-line-in-a-form-multiline-text-box/1157>\
**Category:** Technical Support\
**Created:** [November 5, 2021, 6:09pm UTC](https://pdfjs.community/t/how-to-have-the-enter-return-key-add-a-line-break-new-line-in-a-form-multiline-text-box/1157 "2021-11-05T18:09:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [November 5, 2021, 6:09pm UTC](https://pdfjs.community/t/how-to-have-the-enter-return-key-add-a-line-break-new-line-in-a-form-multiline-text-box/1157/3 "2021-11-05T18:09:08Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Rich text](https://pdfjs.express/documentation/annotation/rich-text.8)
- [Open a document from file system](https://pdfjs.express/documentation/basic-operations/open-document/filesystem)
- [Support forms with PDF.js Express](https://pdfjs.express/documentation/forms/overview)

APIs:
- [Core.Annotations.WidgetFlags - new WidgetFlags(options)](https://pdfjs.express/api/Core.Annotations.WidgetFlags.html#WidgetFlags__anchor)
- [UI.Hotkeys - on(key [, handler])](https://pdfjs.express/api/UI.Hotkeys.html#.on__anchor)
- [Core.Tools.RedactionCreateTool - enableAutoSizedText()](https://pdfjs.express/api/Core.Tools.RedactionCreateTool.html#enableAutoSizedText__anchor)

Forums:
- [Can fitText be used to set only height? If not, is there an alternative](https://pdfjs.community/t/can-fittext-be-used-to-set-only-height-if-not-is-there-an-alternative/896/5)
- [Do you have any example from PDF to database](https://pdfjs.community/t/do-you-have-any-example-from-pdf-to-database/196/3)
- [How to style a PDF form drop-down?](https://pdfjs.community/t/how-to-style-a-pdf-form-drop-down/1079/1)

---

_[View the full topic](https://pdfjs.community/t/how-to-have-the-enter-return-key-add-a-line-break-new-line-in-a-form-multiline-text-box/1157)._
