Visible component not working when reopening file | Community
Skip to main content
May 3, 2021
Solved

Visible component not working when reopening file

  • May 3, 2021
  • 3 replies
  • 1310 views

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:

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kosta_Prokopiu1

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

3 replies

Level 4
May 4, 2021

Can you provide the form? Or all code/script you have around the checkbox and row?

Zenos1618Author
May 4, 2021

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";
}

Mayank_Gandhi
Adobe Employee
Adobe Employee
May 4, 2021

@zenos1618 Have you reader extended the form?

Zenos1618Author
May 4, 2021

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.

Kosta_Prokopiu1
Adobe Employee
Kosta_Prokopiu1Adobe EmployeeAccepted solution
Adobe Employee
May 4, 2021

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