I have several forms that use the following code to protect fields, so the recipient can't modify what comes through:
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 = "protected";
}
}
I just changed one of these from a Static PDF form to a Dynamic XML form, and the sent file is no longer protected. Is there something else I need to do, or is it not possible that way?
I have the same problem. Did you ever figure this out?