Expand my Community achievements bar.

SOLVED

Drop-down list in one subform controls fields in other subform

Avatar

Former Community Member

Hello,

I am new to adobe livecycle. I haven't been spending time on creating a quite complex pdf fillable form.  It seems I rely heavily on this forum to find my answer.  You guys have been great.  Thank you. 

I have a question on form and subform:

I have a parent form which has subform1 and subform2.  Within subform1, I have subform1a and subform1b.  Same as subform2 with subform2a and subform2b.

Parent form has a button called "Add".  As I click on 'Add', there is a new instance of subform1 added. 

within subform1a, there is a drop-down1a.  Depend on the value selected for drop-down1a, certain fields in subform1b are visible.  Also, depend on the value selected for drop-down1a, button 'Add' can be visible or hidden.

I find out that the above could only be accomplished if all the button and fields are in the same form.

For instances, drop-down1a can't make button 'Add' visible or hidden because they are not in the same form. 

Drop-down1a can't make fields in subform1b visible or hidden unless subform1b is nested inside subform1a. 

Also, as I repeat subform, is there a way to control what fields in repeating subform be visible or hidden based on a certain selection?

The last question: Is there a way to get a list of existing scripts that come with adobe livecycle and what they are useful for? 

I want to upload my form so that you can see but I can't find a way to do so.

Thank you very much for your help.  Truly appreciate your expertise on these subjects.

Best regards,

Sahra

1 Accepted Solution

Avatar

Correct answer by
Level 5

On the subform issue, there isnt any restriction on where you can add/hide objects from. It sounds like a scripting visibility issue where your hierarchy needs to be taken into account when you try and access an object through script. The objects are encapsulated inside a subform and are only visible if they are a child or on the same level as the current context. Outside that, you need to provide the correct path to an object, for example subform1a.dropdown1a would be visible to subform1b and so on.

There are samples in the installed folder of designer under EN sub-directory and a few people have websites than do samples here. You can probably create a free account on Acrobat.com and publish forms there for people to see via link.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

On the subform issue, there isnt any restriction on where you can add/hide objects from. It sounds like a scripting visibility issue where your hierarchy needs to be taken into account when you try and access an object through script. The objects are encapsulated inside a subform and are only visible if they are a child or on the same level as the current context. Outside that, you need to provide the correct path to an object, for example subform1a.dropdown1a would be visible to subform1b and so on.

There are samples in the installed folder of designer under EN sub-directory and a few people have websites than do samples here. You can probably create a free account on Acrobat.com and publish forms there for people to see via link.

Avatar

Former Community Member

Thank you so much! You are right. As I specified the fields per your suggestion, I was able to access the value of the field!