# Can't format text that comes from a data table?

**URL:** <https://forums.unrealengine.com/t/cant-format-text-that-comes-from-a-data-table/459267>\
**Category:** UI\
**Tags:** data-table, text, unreal-engine, question, UMG\
**Created:** [December 9, 2019, 5:08am UTC](https://forums.unrealengine.com/t/cant-format-text-that-comes-from-a-data-table/459267 "2019-12-09T05:08:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![McSean](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McSean](https://forums.unrealengine.com/u/McSean)\
**Post date:** [December 9, 2019, 5:08am UTC](https://forums.unrealengine.com/t/cant-format-text-that-comes-from-a-data-table/459267/1 "2019-12-09T05:08:47Z")

</div>

I have a dialog tree system set up to store each dialog tree in its own data table for organizing purposes. The UMG calls the specific data table and reads all the text. However, none of the data table defined text gets any of the formatting done to it, and shift + enter doesn’t work to create any line breaks.

Is there some function I’m missing that needs to run on data table text? A known issue with data tables? I really want to keep using data tables to keep these organized, as the dialog trees could get fairly complex with their set up.

Pictured below is the set up using the data table.

alt text

 ![293615-datatable-text.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/7/4c7052b3817e691da014ac9c8eaf180031f890f7.png)

 ![293614-dialog-formattext.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/6/dc6fc2269ad91aa896f6597b7fe29b76e8d1551d.png)

 ![293616-formattext-show.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/f/80f02b115ed929ceeeb82480527431a62138c624.png)

---

<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:** [December 9, 2019, 12:46pm UTC](https://forums.unrealengine.com/t/cant-format-text-that-comes-from-a-data-table/459267/2 "2019-12-09T12:46:46Z")

</div>

What you’re doing seems a bit awkward here but perhaps I misunderstand it. You’d generally approach it like so:

 ![293634-annotation-2019-12-09-123358.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/2/f82bcb3c4c7396e8b5761ad8f72469ba60883ff7.png)

If you wish to keep _format_ as variable containing the list of arguments, then like so:

 ![293638-annotation-2019-12-09-123953.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a0322ce3fa4ea763676d0ecfbc0546ad551f0bb.png)

This way you can keep the main text in the _Format_ variable and just pepper the format node with a list of relevant arguments.

Both print “Do you know her?” _with_ a question mark. The eTextGender enumerator is already in the engine.

---

<div class="post-metadata">

**Author:** ![McSean](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McSean](https://forums.unrealengine.com/u/McSean)\
**Post date:** [December 9, 2019, 4:20pm UTC](https://forums.unrealengine.com/t/cant-format-text-that-comes-from-a-data-table/459267/3 "2019-12-09T16:20:26Z")

</div>

Thank you SO MUCH! This is absolutely what I needed. You are fantastic!

---

<div class="post-metadata">

**Author:** ![vlePa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vlePa](https://forums.unrealengine.com/u/vlePa)\
**Post date:** [April 10, 2025, 10:27am UTC](https://forums.unrealengine.com/t/cant-format-text-that-comes-from-a-data-table/459267/4 "2025-04-10T10:27:26Z")

</div>

If you would still like to use tables, the way to go is using a String Table

Make a StringTable and format your text as desired

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/a/17a9ec8ee386b4264981cf6a0f249783679814ec.png)

Use format text node and select the entry and plug in the rest

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/1/171df4d467e23f40eede8a40d1845d55fa633992.png)

This is also localizable
