# How to transfer text from umg to umg?

**URL:** <https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819>\
**Category:** UI\
**Tags:** buttons, text, unreal-engine, question, UMG\
**Created:** [September 23, 2020, 6:28pm UTC](https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819 "2020-09-23T18:28:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [September 23, 2020, 6:28pm UTC](https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819/1 "2020-09-23T18:28:46Z")

</div>

Hello here the situation.  
I have **2 buttons** and **2 text’s** on them. One of them - **editable text**.  
I need edit the editable text block with the other text block by click the button.  
Please describe in detail the algorithm of actions, thank you)

---

<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:** [September 23, 2020, 6:46pm UTC](https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819/2 "2020-09-23T18:46:14Z")

</div>

> I need edit the editable text block  
> with the other text block by click the  
> button.

Flag the text block as a variable:

![314812-isvar.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/3/6230fb109a9c887a709cb7fd882c18049fa269b6.jpeg)

And then:

 ![314815-screenshot-2020-09-23-194906.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/d/0eda968fba49089fdd8ba84a35fed04bea6dd581.jpeg)

---

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [September 23, 2020, 6:50pm UTC](https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819/3 "2020-09-23T18:50:33Z")

</div>

Hello!  
I can’t, this is the two different umg, created dynamic, so it’s not possible to do so simple. I’m not very good with casting and dispatcher, but i suspect this is the only way.

---

<div class="post-metadata">

**Author:** ![Shedels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shedels/32/1121823_2.png) [@Shedels](https://forums.unrealengine.com/u/Shedels)\
**Post date:** [September 23, 2020, 6:59pm UTC](https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819/4 "2020-09-23T18:59:29Z")

</div>

Yes, and this is two different umg which were created dynamic as grid panel’s children.

---

<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:** [September 23, 2020, 8:17pm UTC](https://forums.unrealengine.com/t/how-to-transfer-text-from-umg-to-umg/471819/5 "2020-09-23T20:17:42Z")

</div>

> but i suspect this is the only way.

It’s _a_ way but not the only one. Since they were both added dynamically, you have the opportunity to create direct references - use them make the communication happen.

If you do not want to create direct references, you can still fetch the widgets from their container via GetChildAt or loop through all children to find what you need.
