Skip to main content
iand27859074
Participant
November 14, 2019
Question

Use a script to enable a button when pressed to duplicate the information in a text field to another

  • November 14, 2019
  • 1 reply
  • 364 views

I want to create a Button to automate a task for me. When the button is pressed in duplicates the infomation that has been entered . So the form is filled in and TextField 1 at the press of a button populates TextField 2 .

does anyone know the code to do this or could point me in the right direction on how to learn to do this? 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Thom Parker
Community Expert
Community Expert
November 14, 2019

This is a very basic operation. You should definately spend some time to learn a bit about scripting in Acrobat. It'll help with all kinds of tasks.

You'll find everything you need to perform this simple task here:

Watch the video on "Introduction to form scripting" and "Form Scripting Basics"

https://www.pdfscripting.com/public/Free_Videos.cfm#FormJS

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often