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

display fields with additional columns

chinaboy
Registered: May 26 2009
Posts: 4

Hi guys,

This is my first post, but I have learnt a lot from this forums, but I need some help. I have managed to show / hide fields base on a checkbox. That works great, thanks to an example on the forum. Upon clicking on the a checkbox it displays or hides other checkbox fields. I need a way to add a two more columns to right of the fields and they also hide or show with the initial checkbox.

So, field1 which consist of the check box and label, I need to add to columns on that same line when this line is visible.

Maybe I didn't explain this well, but hope someone can understand what I am trying to do.

Thanks for your help.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can use the instance manager to add rows columns to a form. See this video tutorial:
http://admin.adobe.acrobat.com/_a200985228/p87746471/

Dynamic Columns are a bit tricky because of the limited horizontal space. It might be better to create the column as a subform that is shown and hidden. The show/hide code will need to use the "resolveNodes()" function so that it can find all instances of the column to show/hide.

You can find more detailed video tutorials on this topic 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]

Then most important JavaScript Development tool in Acrobat
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

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