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

Auto copy button

New Here ,
Dec 29, 2022 Dec 29, 2022

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

TOPICS
Create PDFs , JavaScript , PDF forms

Views

654

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 ,
Dec 29, 2022 Dec 29, 2022

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?  

 

 

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 ,
Dec 29, 2022 Dec 29, 2022

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

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
Community Expert ,
Dec 29, 2022 Dec 29, 2022

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? 

 

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 ,
Dec 29, 2022 Dec 29, 2022

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

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
Community Expert ,
Dec 29, 2022 Dec 29, 2022

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

 

 

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 ,
Dec 29, 2022 Dec 29, 2022

Copy link to clipboard

Copied

Many thanks for your effort

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
Community Expert ,
Dec 29, 2022 Dec 29, 2022

Copy link to clipboard

Copied

LATEST

This video tutorial might help:

https://www.pdfscripting.com/public/images/Free_Videos/BeginJS_FormBasics_Free_mp4.cfm

 

 

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