Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Preventing User from Adding Text into a Text Box

Avatar

04-09-2008

I have a situation where I want to prevent the user from entering text into a Text box after they have clicked on a button.



I have looked at all the properties and can't find any way to do this. I don't want the field to be "Hidden" or "Invisible". I just want to lock it so nothing can be typed in!



Thank you in advance for any ideas you can share.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

04-09-2008

put this code on the button click event as the last line of code



fieldname.access = "readOnly"

Avatar

05-09-2008

additionally, if you don't want the field to be in the tab order, set the access property to be "protected".