I have two forms with the following script in the mousedown event (Java Script run at Client)
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";
}
}
Views
Replies
Total Likes
Did you try the below setting to automatic..
https://acrobat.com/#d=DdcaswsjCu9LbY7hR-HfRQ
If you still have issues, you can post both the forms to LiveCycle9@gmail.com, so I can have a look at them..
Thanks
Srini
Views
Replies
Total Likes
Update to original question.
This is the scripting on the form that does not work (placed in mouse down event on submit button):
topmostSubform.Page1.P.Email::mouseDown - (JavaScript, client)
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";
}
}
form1.#subform[0].Email::mouseDown - (JavaScript, client)
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";
}
}
Action is to be when use click on the button, button 'locks' all fields (by setting to read only) and attaches PDF to email. Broken form does not lock fields but instead attaches the PDF in which fields can be edited?
Views
Replies
Total Likes
Ok, this is driving me nutz! Does anyone have any insight? I've been @(*$&(@# with this for a while now and I'm not any closer to a fix....
Views
Replies
Total Likes
Can you send the forms to LiveCycle8@gmail.com (both the working and the nonworking form) and I will have a look. Please indicate how to duplicate the issue.
Paul
Views
Replies
Total Likes
Thanks Paul!
Ok. Form "New Residential Lease" works fine. Function I'm trying to replicate is when you click on the email button, it sets all fields to read only and attaches to an email as a PDF file. Works perfectly.
Same functionality with same scripting in "Deposit Agreement" does not work and I'm baffled as to why?
Views
Replies
Total Likes
Did you attach the forms to your email? If so that will not work as they are filtered out by the forum. That is why I need you to email them to the address listed above.
paul
Views
Replies
Total Likes
Sorry, sent to incorrect address, just early here. Give me a sec to resend.
Views
Replies
Total Likes
Views
Likes
Replies