Check box not displaying content after form is closed | Community
Skip to main content
New Participant
August 4, 2022
Solved

Check box not displaying content after form is closed

  • August 4, 2022
  • 2 replies
  • 979 views

I am using AEM 6.1 to display text fields with a check box. Here are my steps and the encountered problem:

 

Open PDF form

Select Checkbox (text fields display or are now visible)

Enter data in text fields

Save PDF form

Close PDF form

Open PDF form

PROBLEM: The checkbox is still selected but the text fields are invisible or hidden.

WORK AROUND: Deselect the check box then reselect the check box (text fields become visible again)

 

QUESTION: How do I make the text fields remain visible after closing the form with the check box selected?

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 Mayank_Gandhi

@txk22 This would possibly happen if there are any script on initialize, form ready, layout ready such that when you are re-opening the form the scripts are getting re-triggered and among that there may be an option where it was set hidden. 

 

Check the script editor for such scripts. 

 

 

2 replies

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
August 5, 2022

@txk22 This would possibly happen if there are any script on initialize, form ready, layout ready such that when you are re-opening the form the scripts are getting re-triggered and among that there may be an option where it was set hidden. 

 

Check the script editor for such scripts. 

 

 

txk22Author
New Participant
August 5, 2022

I do not see any scripts in the highlighted areas that indicate anything is hidden or would cause this issue. The only script that includes a "hidden" presence is associated with the check boxes. The information I would like to have displayed with the check boxes are subforms containing text fields and tables with text fields. The subform's presence is "Hidden (Exclude from Layout)". The checkbox script to display the subform is:  

 

if (this.rawValue==1) {
Bio.presence = "visible";
}
if (this.rawValue==0) {
Bio.presence = "hidden";
}

 

Any additional help is greatly appreciated.

Mayank_Gandhi
Employee
August 7, 2022

@txk22 Create a sample form and send it to me via gdrive

New Participant
August 5, 2022

Do you have any script that may be causing this effect?