Pull info from one field to another

New Here ,
Jan 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

I have a contract form that I want a client to fill in thier name in a field and that name to be populated into other fields later in the PDF.  However, the fields later on can not be the same as the original field because those fields will be hidden until a checkbox is checked.  How can I do this?

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

40

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

There are two simple methods.

 

1. Use a calcuation script on the destination field to copy the value. You don't need a script for this. Use the simplified field notation. 

 

2. Use the format or validate script on the source field to push the value into the other fields. For this you need a script. 

Something like this. (Script will work the same in either validate or format)

 

this.getField("Dest_Name").value = event.value; 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 23, 2020 Jan 23, 2020

Copy link to clipboard

Copied

LATEST

Ok, so i have tried every which way, no luck

 

the source field is named ClientName

the destination field name is ClientNameDJ

 

what do i put in where?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines