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.

Locking Fields

Avatar

Level 1

Can someone please walk me through how to lock certain fields in a form? I've already read through this post http://forums.adobe.com/thread/684049

and download Paul's example and copied his LockAllFields script onto my form but it's not working. I only want to lock certain fields and not others so a LockAll would not work for me. I know how to get to the XML script page for my form but that's all I know about XML's in Designer! Thank you.

1 Reply

Avatar

Former Community Member

To lock a field you woudl use the object name and then the add the property called access to lock/unlock the form. So if the field name is Object1 the command to lock the field woudl be Object1.access = "readOnly". To unlock the field you woudl use Object1.access = "". Note that the case of the objects and the commands is important.

You will need one command for each field you want to lock.

Paul