Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Dec 18, 2022 Dec 18, 2022

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.

TOPICS
Acrobat SDK and JavaScript , Mac , Windows
624
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 19, 2022 Dec 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 ent

...
Translate
New Here ,
Dec 19, 2022 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2022 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 19, 2022 Dec 19, 2022
LATEST

Thank you so much.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines