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

Change UI at Runtime

Chandran
Registered: Mar 12 2008
Posts: 58

Hi All

Is ii possible to change a dropdown field UI to Text Field UI using Java script at runtime.
If Yes, kindly let us know how to achieve that using Java Script Code.

Thanks in Advance

Regards,
Chandran S

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It's not possible to actually change one element type to another element type. But you can create both a text field and a dropdown field and place them on top of each other. Then use a script to Hide/Show the fields at runtime to create the configuration you want.

Watch this video:
https://admin.adobe.acrobat.com/_a200985228/p87746471/

You'll find more detailed info at www.pdfscripting.com

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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

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