Skip to main content
Participant
February 28, 2024
Question

How to autofill a field, based on another

  • February 28, 2024
  • 1 reply
  • 244 views

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?

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
February 28, 2024

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

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