Check box not displaying content after form is closed | Community
Skip to main content
New Participant
Aug 4, 2022 10:24 PM UTC
Solved

Check box not displaying content after form is closed

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.
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Aug 5, 2022 6:04 AM UTC

@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. 

 

 

4 replies

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Aug 5, 2022 6:04 AM UTC

@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. 

 

 

Translate
txk22Author
New Participant
Aug 5, 2022 7:12 PM UTC

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.

Translate
Mayank_Gandhi
Employee
Aug 7, 2022 2:07 PM UTC

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

Translate
Level 4
Aug 5, 2022 2:48 AM UTC

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

Translate