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

Create UI element at runtime

senthilprabhu05
Registered: Sep 10 2008
Posts: 2

Hi Experts,

1.I have one dynamic table. In that i have placed add and remove button. My scenario is When i add row first time all the rows should be in Textfield. Second time if i add a row means i need to change the textfields into dropdown.

2.Is it possible to do like this?

3.Is it possible to create UI elements dynamically at runtime?

Please help me if anybody know about this.

Thanks,
SenthilPrabhu

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
No it is not possible to create new UI elements at run time. But this doesn't mean you can create a new instance of a "hidden" subform. Make both types of subforms and set them both to hidden, then create the instance you need. You can even place both subforms inside another subform that is the one that gets instanciated, then unhide the sub-subform that you need.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

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