These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Show/Hide Sub Forms in LiveCycle ES 8.2

pviral
Registered: Sep 12 2010
Posts: 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 reference:
http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingObjectPresence.pdf
 
This 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

Viral

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Both your code above and the example form look great. What exactly is the issue?

Have you seen this video?
http://adobechats.adobe.acrobat.com/p87746471/

It explains the concepts behind LiveCycle scripting and hiding/showing subforms

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script