Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

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!