• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Views

164

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
Community Expert ,
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

Votes

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?

Votes

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