Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Show/Hide Sub Forms in LiveCycle ES 8.2

Avatar

Level 2

Hello All,

I am using Livecycle to create a form and want following functionality:

If a particular value is selected from drop-down box, it should hide/show a sub-form.

However, I am not able to do it. I looked at adobe livecycle docs, Adobe user forums, and GOOGLE...but fail to run the code.

I have used following PDF as example:

http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingObjectPresence.pdf

The code below is written on drop-down box and I have BMD_Form as subform

----- form1.POS.Emphasis_info.subformOptions::change - (JavaScript, client) ------------------------

switch (xfa.event.newText) {

case "Invisible":

form1.POS.BMD_Form.presence = "invisible"; or

break;

case 'Hidden':

form1.POS.BMD_Form.presence = "hidden";

break;

default:

form1.POS.BMD_Form.presence = "visible";

break;

}

Thanks

Viral

1 Accepted Solution

Avatar

Correct answer by
Level 6

Code working properly, please check how the pdf was saved? static/dynamic?. Make sure it saved as dynamic pdf.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

Code working properly, please check how the pdf was saved? static/dynamic?. Make sure it saved as dynamic pdf.

Avatar

Level 2

I found it after banging my head....