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

How to autofill a field, based on another

New Here ,
Feb 28, 2024 Feb 28, 2024

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

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

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

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