2 Replies Latest reply on Aug 30, 2011 8:36 PM by Bob W - CMT

    Is it possible to have a button to show extra hidden fields?

    Bob W - CMT Level 1

      I'm trying to have extra form fields hidden in my pdf form and then have them appear when the reader clicks "add". Is this possible in a pdf form using Acrobat Pro? I've seen it done with LiveCycle but I'm using Acrobat Pro.

       

      Thanks,

      Bob

        • 1. Re: Is it possible to have a button to show extra hidden fields?
          maxwyss Level 4

          Sure, this is possible.

           

          The simplest version is to prepare your table for a specific number of lines, but show only the first one(s). The button to add an additoinal line will then turn the next line visible. With some smart field naming (such as in myline.n.fieldname (where n is the number of the line), you can show and hide the line with a simple

           

             this.getField("myline.n").display = display.visible ;

           

          without having to show/hide each field of the line.

           

           

          A bit more sophisticated is, if you have a total line underneath, to move that total line when you show or hide a line, by accordingly changing the rect property of the fields of the line.

           

           

          The next level in sophistication is to dynamically add fields for a new line (and move totals etc. accordingly.

           

           

          And even more sophisticated would be to put any text etc. further down the expandable list in fields and do your own pagination.

           

           

          So, it is up to you to chose how much sophistication you need.

           

          Hope this can help.

           

          Max Wyss.

          • 2. Re: Is it possible to have a button to show extra hidden fields?
            Bob W - CMT Level 1

            thanks for your reply but other than adding the javascript, I have no idea how to accomplish this. I didn't think I could add a table in acrobat. I used illustrator to add labels and the layout as a background page. any additional help would be great!

             

            thanks,

            Bob