Read-only TextBox issue with mobile

Hey all! I have a textbox that are only meant to be read-only. Players are to use it to copy and paste it wherever they want. For their friends to use in our game for rewards, a referral.

There are 2 problems with the mobile platform:-

  1. They could somehow still able to edit the text even when the settings are set to non-editable.
  2. When the textbox is focused, the content disappears.

On the PC version, it is working as intended. Only the mobile having this issue, not sure if any additional scripting is necessary. I tried looking if anyone has similar problems, can’t seem to find one. Any insight on this issue is appreciated!

Default State

Focused State - Text disappears

Edit - On Mobile

Gui settings on textbox
Star Tag - Referral Code UI Settings

1 Like

try setting th TextEditable to true

Hey! Thanks for the suggestion. I tried setting TextEditable to true, problem still persists. Text disappears on focus on mobile, still editable with or without.

But it made PC text editable which it’s not the intended goal.

do you have any script that have a connection with the TextBox?

try

DevText = 'Qin2007 is best'
TextBox = 'your TextBox  here'
TextBox:GetPropertyChangedSignal('Text'):Connect(function()
     TextBox .Text = DevText
end)
TextBox .Text = DevText

as soon as a player changes it, change it back

Screenshot_85
Turn off the ‘‘Interactable’’ Property to prevent the Textbox from being edited on mobile.

1 Like

The issue with this is it makes it non selectable, this should be fixed as its a bug