# Way to remove newline from end of text input?

**URL:** <https://community.thunkable.com/t/way-to-remove-newline-from-end-of-text-input/2181798>\
**Category:** Questions about Thunkable X\
**Tags:** textinput\
**Created:** [December 16, 2022, 8:31am UTC](https://community.thunkable.com/t/way-to-remove-newline-from-end-of-text-input/2181798 "2022-12-16T08:31:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 16, 2022, 8:31am UTC](https://community.thunkable.com/t/way-to-remove-newline-from-end-of-text-input/2181798/1 "2022-12-16T08:31:45Z")

</div>

I’m trying to remove the newline from the end of a text input’s text value. When the user types in something and presses return, the cursor moves down to the next line I want to remove that newly-added newline character.

I’ve tried text substitution by replacing all [newline] and all “\n” in the text input’s text but it doesn’t do anything.

Any ideas about how to achieve that?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 16, 2022, 4:44pm UTC](https://community.thunkable.com/t/way-to-remove-newline-from-end-of-text-input/2181798/2 "2022-12-16T16:44:18Z")

</div>

For now, I’ve disabled multiline in the text input’s properties as a workaround. It prevents the newline from being added but it still registers the submit event.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 16, 2023, 4:44pm UTC](https://community.thunkable.com/t/way-to-remove-newline-from-end-of-text-input/2181798/3 "2023-03-16T16:44:37Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
