# \[UE5.1.1\] UEditableTextBox::SetText reverts to previous text. Can't set text...

**URL:** <https://forums.unrealengine.com/t/ue5-1-1-ueditabletextbox-settext-reverts-to-previous-text-cant-set-text/1180739>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, question\
**Created:** [May 27, 2023, 10:23pm UTC](https://forums.unrealengine.com/t/ue5-1-1-ueditabletextbox-settext-reverts-to-previous-text-cant-set-text/1180739 "2023-05-27T22:23:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [May 27, 2023, 10:23pm UTC](https://forums.unrealengine.com/t/ue5-1-1-ueditabletextbox-settext-reverts-to-previous-text-cant-set-text/1180739/1 "2023-05-27T22:23:54Z")

</div>

Setting the text through UEditableTextBox::SetText, deep down into slate wherever the text is also set:

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/0/c107e764d2c5365820136a524ed0616e0435f56e.png)

Immediately after:

 ![afbeelding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/b/44be33ab2c78047c5f82dfa633226bd471976831.png)

Case (including another bug), the moment the field commits (delegate):

```auto
// UE5.1.1 GetText returns nothing. Synchronization issue in the editable textbox.
// https://forums.unrealengine.com/t/bugs-bugs-bugs-slate-widget-synchronization/738172
EditableTextBoxWidget->TakeWidget();
EditableTextBoxWidget->SetText(Text);

if (CommitMethod == ETextCommit::Type::OnEnter) {
  // Here input is validated and if special characters are detected they are stripped and UEditableTextBox::SetText is called again.
}

```
