on 10-09-2012 6:17 PM
SAP Community Network:
SAP Interactive Form by ADOBE question:
How does one turn a FILLABLE interactive PDF to "read-only" after the form has been created then modified with data?
Scenario:
***NOTE*** at this point, the form should converted to read-only
After the external customer enters data to the form, I would like the form to be read-only. I have not found a method to change the DOCPARAMS-FILLABLE back to ' '. Or, have found in WORKFLOW to change the viewing of attachments as READ-ONLY. Please advise.
(I have entered discussion in SAP BUSINESS WORKFLOW also)
Thank you in Advance.
Jim
Hi Jim,
If I am understanding your requirement right.
On the Submit button from which the customer sends the pdf you can give a java script and make all fields read only.
The syntax of the script will be in formCalc on click event.
form1.sbtable.access = "readOnly"
You have to apply this for all the subforms in the adobe form.
All fields will be read only.
Hope this helps.
Rgds,
Sandeep Katoch
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sandeep:
Thank you for your response.
I was able to change the fields to "readOnly", but I had to do it in a different event on the Submit Button and I did with different code.
The "Submit Button" is not the Email Submit Button in LiveCycle, but a regular Button with Control Type = Submit and the following code in JavaScript to submit for e-mail under Event ready:layout
this.resolveNode("#event.#submit").target = mailto:"=$record.emaildata.value";
I found some documentation that says to not change the form in ready:layout event (which what I was doing with the "readOnly", so I placed the following code (to make all fields readOnly) in the Button's mouseDown event.
// Get the field containers from each page.
for (var i = 0; i < xfa.host.numPages; 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";
}
}
}
This worked. Thanks again.
Jim
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.