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

Need help using a button to swap field text to another field location

New Here ,
Sep 02, 2020 Sep 02, 2020

Copy link to clipboard

Copied

I have a PDF form where I have infomration about X customer. Call it Pickup Info. I then have another set of fields below that with info about Y customer. Call it Delivery Info. I am trying to create a one click button that will take the form filled text from "Delivery Info" and replace the current text in the fields under "Pickup Info". Thus allowing a 1 click swap of this text vs manualy copying the text over.

 

Would this require java script? if so, would this be difficult to create a script for? I am not familar with Javescript, but understand the flow of Form creatation. 

 

Thanks for the help.

TOPICS
Acrobat SDK and JavaScript

Views

214

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 ,
Sep 02, 2020 Sep 02, 2020

Copy link to clipboard

Copied

LATEST

HI,

 

Allowing for the names of the fields, which you would need to replace with your own the script would be something along the lines of

 

this.getField("PickUpInfoNameField").value = this.getField("DeliveryInfoNameField").value;

this.getField("PickUpInfoNextField").value = this.getField("DeliveryInfoNextField").value;

 

And so on until you have all the fields you want copied, this could just be placed on the click of the button.

 

Hope this helps

 

Malcolm

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