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

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

New Here ,
Dec 18, 2022 Dec 18, 2022

Copy link to clipboard

Copied

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

Views

312

Translate

Translate

Report

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

...

Votes

Translate

Translate
New Here ,
Dec 19, 2022 Dec 19, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you so much.

 

Votes

Translate

Translate

Report

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