# What's the point of UEditableTextBox::IsPassword?

**URL:** <https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 16, 2018, 4:44pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807 "2018-04-16T16:44:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 16, 2018, 4:44pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/1 "2018-04-16T16:44:06Z")

</div>

I see no difference whether i set it to true or false.

I was expecting that when set to true, the text would be hidden/replaced with stars but that doesn’t seem to be the case.

Am i missing something ?

Thanks

Cedric

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 16, 2018, 5:06pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/2 "2018-04-16T17:06:39Z")

</div>

Some precisions:

It works when set in the widget blueprint, or in the widget Initialize() function.

But it doesn’t work when called in a regular function.

I’d like to give to players the possibility to display/hide the password, so i need to be able to change this value at runtime, which doesn’t seem to work. Is that the expected behavior or should i open a bug report ?

Thanks

Cedric

---

<div class="post-metadata">

**Author:** ![project.gheist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@project.gheist](https://forums.unrealengine.com/u/project.gheist)\
**Post date:** [April 16, 2018, 6:10pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/3 "2018-04-16T18:10:30Z")

</div>

It should work during runtime. Could you please attach a repro case?

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 16, 2018, 6:31pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/4 "2018-04-16T18:31:25Z")

</div>

Hey,

You can do the following, it should repro:

- create a c++ project

- create a class inheriting from UUserWidget

- In this class, create a function containing:

- in editor, create a widget BP inheriting from your c++ class and put in it an editable textbox named EditableTextBox\_ServerPassword

- call the function in runtime, then write in the textbox: the letters are still visible.

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 16, 2018, 6:47pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/5 "2018-04-16T18:47:41Z")

</div>

FYI: i tried to setup the same thing in BP only but the EditableTextBox is seen as a “Text Box Object Reference” and won’t plug in the SetIsPassword node, which only accpets “Editable Text Object Reference”.

There seems to be a confusion between both classes when creating them in a BP.

---

<div class="post-metadata">

**Author:** ![project.gheist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@project.gheist](https://forums.unrealengine.com/u/project.gheist)\
**Post date:** [April 16, 2018, 8:56pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/6 "2018-04-16T20:56:06Z")

</div>

I was able to reproduce your issue and have submitted the necessary code changes to Epic for review, see [https://github.com/EpicGames/UnrealEngine/pull/4664](https://github.com/EpicGames/UnrealEngine/pull/4664) . `UEditableTextBox` is supposed to have a `SetIsPassword` function that properly passes through the boolean to the Slate widget, accessing it directly as in the example doesn’t do that. I hope that helps. Cheers,

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [April 16, 2018, 9:26pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-ueditabletextbox-ispassword/422807/7 "2018-04-16T21:26:12Z")

</div>

Thanks a lot !
