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.
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.
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
Or replacing it with a TextLabel when disabled.
Support, and also
That works, but it would be so much easier to be able to disable the textbox
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.
Just ran into this problem and this really needs to be a thing