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";
}
}
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes