Expand my Community achievements bar.

Could someone help me figure out why after saving a form some subforms are hidden again

Avatar

Level 2

I am asking this on behalf of a coworker.  We have a form she is working on with a drop down (ddlDropDown) with 1, 2, and 3 listed (same values,,1,2,3)  That trigger hidden subforms to appear (Employee1, Employee2, Employee3).  Initially, Employee1 is visible.  If form user selects 2 or 3 in the dropdown then Employee2 and Employee3 become Visible.  Once the form is filled in, saved, closed and reopened Employee2 and Employee3 are hidden again even though the dropdown says 2 or 3.  The script behind the dropdown's change event is:

subSELECT.Employee1.presence=this.rawValue==1?"visible":"hidden";

subSELECT.Employee2.presence=this.rawValue==2?"visible":"hidden";

subSELECT.Employee3.presence=this.rawValue==3?"visible":"hidden";

I have tried adding this code to the form's initialize, docReady, preOpen, postOpen, layout:ready events but it still doesn't work.

Any ideas?

3 Replies

Avatar

Level 2

Here is a sample I created based on your comments and it works just fine for me after saving the form.

Employee2 and Employee3 subforms have their presence property set to hidden.  I have the script in the exit event of the dropdownlist.

Here is the sample:

https://workspaces.acrobat.com/?d=YWMOMIyD2lLEqPSdO0vqYQ

Avatar

Former Community Member

Thank you for your reply. The main problem that we have is when the form is filled in, saved, closed and reopened Employee2 and Employee3 are hidden again even though the dropdown says 2 or 3. Once we click on the drop down the information entered populates. 

Avatar

Level 2

Are you able to share your form or upload a sample that demonstrates the problem?

Here is post from Jono which explains how to upload your file using Acrobat.com,

"You can share your form via Workspaces on acrobat.com.

 

Upload the file and then Share it from the popup menu. You should get a popup that asks you to whether to Share and Publish, you want to Publish first and then Share to copy the link to share in the forum."