Expand my Community achievements bar.

How do I lock fields with designer?

Avatar

Level 2
I mean after someone enters some info and tabs out of the field, I want it to lock, or set to read-only. You can do it with acrobat, is it possible in LIveCycle?
1 Reply

Avatar

Former Community Member
You need to change the access to "readOnly."



Let's say your field is called "EnterText." It would look something like this:



EnterText.access = "readOnly";



Then, to open it again, make it



EnterText.access = "open";



I would put the script in either the "change" or "exit" event. Hope that helps!