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

How to duplicate a table on a form to another table?

eloralon
Registered: Dec 30 2008
Posts: 16
Answered

Hi All,

I have the following scenario, where I have designed a form with a table on it containing the address of submitter that I would like to duplicate further down on the same page of the pdf form. Or may be able to copy the content of the first table in the second table? Like copy the content of table1 to table table2 on the dynamic pdf form using javascript.

It works a bit like the concept of billing and shipping address are the same.

Thank you for your anticipated help.

My Product Information:
LiveCycle Designer, Windows
eloralon
Registered: Dec 30 2008
Posts: 16
Hi All,

I finally managed to perform the task I wanted using the following code. I created two tables named subf1 and subf2 and wrapped both in subforms and applied the below code on the change event of the radio button.


if (this.rawValue==1)

formone.pageone.subftwo.tworname.tworowname.twonamefld.rawValue = formone.pageone.subfone.nameone.onerowname.onenamefld.rawValue;

formone.pageone.subftwo.tworname.tworowtitle.twotitlefld.rawValue = formone.pageone.subfone.nameone.onerowtitle.onetitlefld.rawValue;

formone.pageone.subftwo.tworname.tworowphone.twophonefld.rawValue = formone.pageone.subfone.nameone.onerowphone.onephonefld.rawValue;

formone.pageone.subftwo.tworname.tworowemail.twoemailfld.rawValue = formone.pageone.subfone.nameone.onerowemail.oneemailfld.rawValue;

if (this.rawValue==2) xfa.host.resetData("formone.pageone.subftwo")

I don't know whether this is the best way to achieve the functionality I wanted but it does work at least.

Thank. I can provide the pdf file if some wants it.