Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Visible and Hidden Subforms

Avatar

Former Community Member

Hi, I'm using Livecycle Designer ES (V 8.2).

I have included a checkbox object in my form which, when checked, displays a hidden subform where users enter text in a multiline text field (Sample of script below). The users then save and close the form.

My problem is that when users open the form again, the checkbox remains checked, however to display the completed subform, the user needs to uncheck the box and then check it again. I want the form to open again with the completed subform visible. Is there anything I can add to the script below to make this happen? Any help would be most appreciated.

form1.frmAssessorDetails.frmOmitSections.chkCurrentMedications::click - (JavaScript, client)

if

(this.rawValue == 1){

frmCurrentMedications.presence

= "visible"

}

else{

frmCurrentMedications.presence

= "hidden"

}

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi,

Try this one.Just select the radiobutton Preserve script changes : Automatically through File -> Form properties -> Default.

Forum.JPG

Thanks.

Bibhu.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Hi,

Try this one.Just select the radiobutton Preserve script changes : Automatically through File -> Form properties -> Default.

Forum.JPG

Thanks.

Bibhu.