Skip to main content
Known Participant
Dec 19, 2022 3:27 AM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Dec 19, 2022 1:25 PM UTC

- 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.

3 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Dec 19, 2022 1:25 PM UTC

- 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.

Translate
Known Participant
Dec 19, 2022 3:33 PM UTC

Thank you so much.

 

Translate
Known Participant
Dec 19, 2022 12:33 PM UTC

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

Translate