Skip to main content
Known Participant
December 19, 2022
Answered

Javascript code to merge first name, last name and Address in a pdf form

  • December 19, 2022
  • 2 replies
  • 719 views

I want to merge the first name, last name, and address in a pdf form, form field name is, first_name, last_name, and address_name. Please help.

This topic has been closed for replies.
Correct answer try67

- This was discussed many (many) times in the past. Basically, you can do it like this (as the custom Calculation script of the merged text field):

 

event.value = this.getField("first_name").valueAsString + " " + this.getField("last_name").valueAsString + " " + this.getField("address_name").valueAsString;

 

- This is not possible. Each signature field has to be unique, and you can't copy the value from one to another.

Also, there's no need to do that, as a (digital) signature applies to the entire file as a whole, not to a specific page in it.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
December 19, 2022

- This was discussed many (many) times in the past. Basically, you can do it like this (as the custom Calculation script of the merged text field):

 

event.value = this.getField("first_name").valueAsString + " " + this.getField("last_name").valueAsString + " " + this.getField("address_name").valueAsString;

 

- This is not possible. Each signature field has to be unique, and you can't copy the value from one to another.

Also, there's no need to do that, as a (digital) signature applies to the entire file as a whole, not to a specific page in it.

Known Participant
December 19, 2022

Thank you so much.

 

Known Participant
December 19, 2022

Also, I have three signature fields. I want a person to sign only once and the other two to have the same signature.