Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

help with changing a lock down script

Avatar

Level 3

I have this script that puts all fields to read only when I submit .What do I need to change on this script to have it re-enable all fields again?

I thought changing the "readOnly" to "enable" but it did not work

// Get the field containers from each page.

for

(var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {

var

oFields = xfa.layout.pageContent(nPageCount, "field");

var

nNodesLength = oFields.length;

// Set the field property.

for

(var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {

oFields.item(nNodeCount).access

= "readOnly";

}

}

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

If you look in the Help for LC Designer you will see that the .access property has a number of possible values. The one you are looking for is "open".

Hope that helps,

Niall

Assure Dynamics

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

If you look in the Help for LC Designer you will see that the .access property has a number of possible values. The one you are looking for is "open".

Hope that helps,

Niall

Assure Dynamics