Copy link to clipboard
Copied
Hi all!
Is there a way to create a button (auto copy) so that if the cursor reaches the number field, a message appears (Press to copy)
If i press, it will be copied and i will be notified with a message (copied), I`m using Acrobat DC2020
Thanks advanced
Copy link to clipboard
Copied
It sounds like this could be possible with some custom scripting on the field. But you'll need to be more specific about the behavior you'd like to see. So what exactly is being copied? A value from another field?
Copy link to clipboard
Copied
Phone numbers and bank account numbers will be copied from a text box or drop down list in pdf form
then will be pasted into a text box in another file
Copy link to clipboard
Copied
Is data to be copied in mass, i.e. several fields all at once? or are individual fields on the target form selected for copy by the user? Is the source file always the same? Are the source and target files in the same location? Will they be open Acrobat at the same time?
Copy link to clipboard
Copied
They will be individual fields on the target form selected for copy by the user NO.1(phone number field)-NO.2( bank account field) (i.e. copying the content of each field separately), the source file always will be the same, the source and target files in the same location, they will be open Acrobat at the same time
Copy link to clipboard
Copied
So, a script in a PDF cannot normally see other open PDFs. However, since you have control over the PDFs, you can add a script to "disclose" the source PDF, so it can be seen.
Add this line of code to a document script on the Source PDF
this.disclosed = true;
Then you could have a script in the MouseUp field of the target field on the target document that checks for the existance of the source document in the list of active PDFs and copies the data.
Alternatively, you could use a folder level automation script to copy all the data from a toolbar button.
There is a (not free) tool for this here:
https://www.pdfscripting.com/public/Copy-Form-Data-Between-PDFs-Description.cfm
Copy link to clipboard
Copied
Many thanks for your effort
Copy link to clipboard
Copied
This video tutorial might help:
https://www.pdfscripting.com/public/images/Free_Videos/BeginJS_FormBasics_Free_mp4.cfm