Highlighted

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

New Here ,
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, How to, PDF forms

Views

24

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

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

New Here ,
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, How to, PDF forms

Views

25

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
BarlaeDC LATEST
Adobe Community Professional ,
Sep 02, 2020

Copy link to clipboard

Copied

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

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
Reply
Loading...
Resources
One Stop Solution for Acrobat
Edit a PDF