Need Help with PDF Javascript for
Hi Guys, just do a post to see if anyone can help me with non-programmer.
I am creating an interactive pdf form and I used page 7 (11 pages in total) as a template for spawning extra"Task Card" for engineering purposes. I created a button for page generating on the Template page, and I also created a text field on the template page that can populate the sequential numbers for each new Task Card created (the Template page text field will have the total number of cards generated +1), which means the text field on the template page will have the number 7 if I generate the Task Card six times.
- Here is the barrier I am facing, on the second page of this PDF, I have an index table with a column named Task Card No., so how am I able to let the Task Card number (not the sum total number) pop into each cell every time I generate a card, which is basically a sequential number 1, 2, 3, etc...
- Another barrier is on the Template page, there is another text field with some brief description of a job and another corresponding column on the index table on the second page, and how am I able to come up with a script to let the job description populate into the corresponding column of the index table on the 2nd page for every new Card generated. (we fill in the Card first)
Here is the script I used for Template page button for spawning page and generate sequential number in the text field:
this.getTemplate("Task Card").
spawn(this.numPages-2,true,false);
var f = this.getField("task no 1");
f.value = Number(f.value)+1;
f.defaultValue = f.value;
Really appreciate it if anyone can help me out...:)
Thanks a million!
Regards,
