TextBox.Enabled

As a developer, I want to disable a TextBox but it doesn’t look like you can do this.

Use case: disabling a chat bar when chat isn’t enabled.

43 Likes

You can do this with local scripts, but I would love it if we could have a set feature for this.

What do you mean you can do this with local scripts?

If you mean disable a textbox, just loop it so the text = “” constantly. I guess that’s kind of a ghetto way, or put something over it (Z-Index) like a textbutton, make it invisible, unselectable, etc

1 Like

Or replacing it with a TextLabel when disabled.

2 Likes

Support, and also

That works, but it would be so much easier to be able to disable the textbox

2 Likes

replacing it with a TextLabel is also another method of doing this

This has the downside that players can still capture focus of the textbox, and the inputted text might even get lost while the textbox is “disabled”.

Though the idea of replacing it with a TextLabel is cleaner, although we get issues if the TextBox is changed by a script meanwhile, and we need to suddenly sync up two instances - the introduction of an Enabled property would solve this issue easily.

3 Likes

Just ran into this problem and this really needs to be a thing

6 Likes