Skip to main content
Participant
Jun 2, 2025 6:39 PM UTC
Question

I have two different text boxes which merge into one, but secondary box can't update

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!

5 replies

JR Boulay
Community Expert
Community Expert
Jun 3, 2025 10:09 PM UTC
Acrobate du PDF, InDesigner et Photoshopographe
ls_rbls
Community Expert
Community Expert
Jun 3, 2025 9:30 AM UTC

Hi @visual_worldview7751 ,

 

As @PDF Automation Station suggested, where exactly are you executing the script from?

Translate
Technical Generalist
Participant
Jun 3, 2025 8:39 PM UTC

It is in the format tab with the category set to custom. Then it's just in the custom format script section.

Translate
PDF Automation Station
Community Expert
Community Expert
Jun 3, 2025 9:39 PM UTC

You misunderstand what a format script is.  It should be in the calculation tab under custom calculation script.

Translate
PDF Automation Station
Community Expert
Community Expert
Jun 2, 2025 6:54 PM UTC

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.

Translate