# Multiline text box that multiple lines of text get added into it via button press?

**URL:** <https://forums.unrealengine.com/t/multiline-text-box-that-multiple-lines-of-text-get-added-into-it-via-button-press/500043>\
**Category:** Blueprint\
**Tags:** text, unreal-engine, UE4-27, question, UMG\
**Created:** [February 19, 2022, 9:53pm UTC](https://forums.unrealengine.com/t/multiline-text-box-that-multiple-lines-of-text-get-added-into-it-via-button-press/500043 "2022-02-19T21:53:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NinjaBub504](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NinjaBub504](https://forums.unrealengine.com/u/NinjaBub504)\
**Post date:** [February 19, 2022, 9:53pm UTC](https://forums.unrealengine.com/t/multiline-text-box-that-multiple-lines-of-text-get-added-into-it-via-button-press/500043/1 "2022-02-19T21:53:33Z")

</div>

Hello, all.  
I’m trying to make a text box that allows for multiple, read-only lines to be added into it, but all my attempts cause my box to only print one line, then replace that line with another upon clicking another button. It doesn’t print them out separately. I haven’t yet figured out a possible solution for it.

When the button is clicked once:  
 ![text box example 1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/6/8866caed0077c340351fb6463f2bc2d0e8b53bb5.png)

When the button is clicked again, however, it just clears the first line and adds a new line in its place:  
 ![text box example 2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/4/bf45a14a0f1a33d437bf382490b08d1474a3a32d.png)

Any suggestions and help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Yaklakootmaa2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yaklakootmaa2/32/1194607_2.png) [@Yaklakootmaa2](https://forums.unrealengine.com/u/Yaklakootmaa2)\
**Post date:** [February 20, 2022, 1:01am UTC](https://forums.unrealengine.com/t/multiline-text-box-that-multiple-lines-of-text-get-added-into-it-via-button-press/500043/2 "2022-02-20T01:01:46Z")

</div>

> [@NinjaBub504](#):
>
> text box

It might help you

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/3/a634dbdabd0cbaac6c80e981b701affe6cd1b079.jpeg "HTF do I? Use the Text Box (Multi-Line) Widget in UMG") ](https://www.youtube.com/watch?v=zncQpFk88tA)

---

<div class="post-metadata">

**Author:** ![NinjaBub504](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NinjaBub504](https://forums.unrealengine.com/u/NinjaBub504)\
**Post date:** [February 22, 2022, 2:15am UTC](https://forums.unrealengine.com/t/multiline-text-box-that-multiple-lines-of-text-get-added-into-it-via-button-press/500043/3 "2022-02-22T02:15:36Z")

</div>

That video got me to the problem.  
I watched it already, and it helped at first, until I got to the issue I’m having.  
I appreciate the help though.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 22, 2022, 8:34am UTC](https://forums.unrealengine.com/t/multiline-text-box-that-multiple-lines-of-text-get-added-into-it-via-button-press/500043/4 "2022-02-22T08:34:43Z")

</div>

The answer is in the video, namely:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/3/4f3c1bac1811ef2c7c11c579a485b6b10849d593.png)

* * *

May not be related but if you’re making an event log of sorts, consider this:

> [@Creating a combat log in Blueprint](https://forums.unrealengine.com/t/creating-a-combat-log-in-blueprint/150005/10):
>
> No problem, if you want to experiment with the List View instead: create an Object class blueprint in the content browser with an exposed text variable - it will be used to store data in the list view, called Entry Data below. once you have it, you can do this in the wLogLine’s class settings: The Implemented Interfaces bit on the left is the critical part here! It allows you to pull the data from a list view object and assign it to the widget’s variable. Th…
