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";
}
}