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

How to autofill a field, based on another

New Here ,
Feb 28, 2024 Feb 28, 2024

Copy link to clipboard

Copied

I have a document in which the "name" field appears several times. I want the rest to autofill when I fill out the first one.

 I have this code, but doesn´t run : 
var v = this.getField("name").value;

this.getField("name2").value = v; 

 

Can you help me?

TOPICS
JavaScript , PDF , PDF forms

Views

60

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 ,
Feb 28, 2024 Feb 28, 2024

Copy link to clipboard

Copied

LATEST

Make sure your fields is named correctly, "name" and "Name" are not same.

There is an easier solution, just name all fields same.

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