Copy link to clipboard
Copied
I'm trying to have space to enter information into two text fields ("First" and "Last") which then merges those into one field ("FullName") on a PDF document. I can get the information to load in when I first enter it, but then when I go back to try and change the original boxes the "FullName" box won't update.
Here is the JavaScript I've been using:
event.value = this.getField("First").value + " " + this.getField("Last").value;
Any help is appreciated!
Copy link to clipboard
Copied
If your script is a calculation script in the FullName field, it should work. If it doesn't work you probably have errors somewhere in the form. Check the console.
Copy link to clipboard
Copied
As @PDF Automation Station suggested, where exactly are you executing the script from?
Copy link to clipboard
Copied
It is in the format tab with the category set to custom. Then it's just in the custom format script section.
Copy link to clipboard
Copied
You misunderstand what a format script is. It should be in the calculation tab under custom calculation script.
Copy link to clipboard
Copied
PDF Automation Station is right, you should read this tuto: https://www.pdfscripting.com/public/PDF-Form-Scripting.cfm
Find more inspiration, events, and resources on the new Adobe Community
Explore Now