Skip to content

How to create a 'locked' text field #31

Answered by NoryiE
luiz00martins asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, if you don't want the user to modify your text you can use :disable():
https://basalt.madefor.cc/#/objects/Object/disable

If your goal is to disable writing only you could use something like this:
:onChar(function() return false end)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by luiz00martins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants