I’m using AEM 6.3. I have a Check Box function which opens a hidden row when checked. I’m able to fill out the new row and save it. Unfortunately, when I re-open the file in Reader and DC, the new row is not visible. How can I configure AEM to display the new row when re-opening the file?
Saved layout:
Reopened layout:
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Zenos1618 ,
I think the initial state of your form may be wrong. Also, your script is unnecessary complex and uses resolveNode too much. I made a simple version of what I interpreted from your description, see if that does the trick. And as the others said, if opening this in Adobe Reader you need to have Reader Extensions applied to get the form saved in its current state. See here for a form example with no Reader Extensions - open and test in Acrobat Pro.
https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:9cbdc3e6-92bb-4a6b-9ecb-586a8f6f3999
Can you provide the form? Or all code/script you have around the checkbox and row?
Here you go:
if (this.rawValue == "0") {
this.resolveNode("Construct_Entry").presence = "hidden";
oTargetField = this.resolveNode("Supply_Check");
oTargetField.access = "open";
oTargetField = this.resolveNode("Service_Check");
oTargetField.access = "open";
oTargetField = this.resolveNode("$");
oTargetField.access = "open";
}
if (this.rawValue == "1") {
this.resolveNode("Construct_Entry").presence = "visible";
xfa.host.setFocus("Construct_Entry.Service_RDD");
oTargetField = this.resolveNode("Supply_Check");
oTargetField.access = "readOnly";
oTargetField = this.resolveNode("Service_Check");
oTargetField.access = "readOnly";
oTargetField = this.resolveNode("Construct_Entry");
oTargetField.access = "open";
}
@Zenos1618 Have you reader extended the form?
Good idea. I tried to Save As Other>Reader Extended PDF>Enable More Tools, but it still didn't show the new row on re-opening the file.
Hi @Zenos1618 ,
I think the initial state of your form may be wrong. Also, your script is unnecessary complex and uses resolveNode too much. I made a simple version of what I interpreted from your description, see if that does the trick. And as the others said, if opening this in Adobe Reader you need to have Reader Extensions applied to get the form saved in its current state. See here for a form example with no Reader Extensions - open and test in Acrobat Pro.
https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:9cbdc3e6-92bb-4a6b-9ecb-586a8f6f3999
Views
Likes
Replies