Skip to main content
Participant
June 2, 2025
Question

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

  • June 2, 2025
  • 3 replies
  • 412 views

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!

3 replies

JR Boulay
Community Expert
Community Expert
June 3, 2025
Acrobate du PDF, InDesigner et Photoshopographe
ls_rbls
Community Expert
Community Expert
June 3, 2025

Hi @visual_worldview7751 ,

 

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

Participant
June 3, 2025

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

PDF Automation Station
Community Expert
Community Expert
June 3, 2025

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

PDF Automation Station
Community Expert
Community Expert
June 2, 2025

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.