I am having trouble with some scripting and have posted previous questions to know response on the forums. So I'm going to go a different route. Is there a simple method that once a form has been filled out (i.e. selections, check boxes, etc.. selected) that I can 'lock' all the fields to an email recipient can not change the values? I have successfully created an submit to email button that emails the full PDF but the fields are still editable by end users. Any ideas?
Views
Replies
Total Likes
You can try setting the access property to readOnly for the root subform in the heirarchy.
For example: form1.Page1.access = "readOnly";
(OR)
You can loop thru the entire PDF and set access to readOnly for each editable field.
// Get the field containers from each page.
for (var i = 0; i < xfa.layout.absPageCount(); i++) {
var oFields = xfa.layout.pageContent(i, "field");
var nodesLength = oFields.length;
// Set the access type.
for (var j = 0; j < nodesLength; j++) {
var oItem = oFields.item(j);
if (oItem != this) {
oItem.access = "readOnly";
}
}
}
And you need to choose the "Preserve Scripting changes to form when saved" to Automatically in the File menu -> Form Properties -> Default tab..
Thanks
Srini
Views
Replies
Total Likes
Tried method 2, did not work result is still editable. Not sure where to try and implement method 1?
Views
Replies
Total Likes