# Set editable text to equal string when button from another widget is pressed

**URL:** <https://forums.unrealengine.com/t/set-editable-text-to-equal-string-when-button-from-another-widget-is-pressed/486804>\
**Category:** UI\
**Tags:** textbox, unreal-engine, Widget, question\
**Created:** [July 30, 2021, 3:13pm UTC](https://forums.unrealengine.com/t/set-editable-text-to-equal-string-when-button-from-another-widget-is-pressed/486804 "2021-07-30T15:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca957b851](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca957b851](https://forums.unrealengine.com/u/anonymous_user_ca957b851)\
**Post date:** [July 30, 2021, 3:13pm UTC](https://forums.unrealengine.com/t/set-editable-text-to-equal-string-when-button-from-another-widget-is-pressed/486804/1 "2021-07-30T15:13:59Z")

</div>

I have a widget with a button and an editable text box, and another widget with just an editable text box. What I want to happen is in the first widget when I type into the text box then click on the “enter” button, the text box from the other widget will be set to equal the text that I just typed into the text box from the first widget. I’ve tried a couple different things, but each time when I click on the button nothing will happen. Right now I’m currently trying to just set the second text box to equal a test string when I click on the button, but nothing happens when I do that either.

 ![345198-text1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/a/64ab915587abd2ce4980534811a0272df5943a23.png)

Any help with this would be great!

---

<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:** [July 30, 2021, 4:28pm UTC](https://forums.unrealengine.com/t/set-editable-text-to-equal-string-when-button-from-another-widget-is-pressed/486804/2 "2021-07-30T16:28:03Z")

</div>

You did not include any details regarding how this is set up / organised so here’s something agnostic:

 ![345270-screenshot-6.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/f/f0fecaf5dc3b2fb5d6eef18d3dfeb1068b7ae1e0.jpeg)

- clicking a button pulls text from box and pushes it into another.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ca957b851](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ca957b851](https://forums.unrealengine.com/u/anonymous_user_ca957b851)\
**Post date:** [July 30, 2021, 7:59pm UTC](https://forums.unrealengine.com/t/set-editable-text-to-equal-string-when-button-from-another-widget-is-pressed/486804/3 "2021-07-30T19:59:50Z")

</div>

This worked! Thank you so much! And sorry about that I just realized I forgot to include that info.
