This is the system that I use and it workes perfectly:/** * Loop through
all elements of eForm, except button named "view", and set the access to
"protected" */function LockForm() { // Get the field containers from
each page. for (var nPageCount = 0; nPageCount < xfa.layout.pageCount();
nPageCount++) { var oFields = xfa.layout.pageContent(nPageCount,
"field"); var nNodesLength = oFields.length; // Set the field property.
for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) { if
(!(o...