Skip to main content
Known Participant
October 7, 2021
Answered

Autopopulate then read only

  • October 7, 2021
  • 1 reply
  • 605 views

Hi, I can name a textfield the same name on different pages. Enter text in one, exact text autopopulates.

 

I all the fields that autopopulate except the one on page 1 to become read only. Only way to change any of them is to use the field on page 1?

This topic has been closed for replies.
Correct answer try67

You would need to give the first field a different name and use a script to copy its value to the other fields.

If the first field is called "Name1" and the others "Name" then use this code as the custom calculation script for the latter:

 

event.value = this.getField("Name1").valueAsString;

1 reply

try67
try67Correct answer
Community Expert
October 8, 2021

You would need to give the first field a different name and use a script to copy its value to the other fields.

If the first field is called "Name1" and the others "Name" then use this code as the custom calculation script for the latter:

 

event.value = this.getField("Name1").valueAsString;

murrjamesAuthor
Known Participant
October 8, 2021

I greatly appreciate this, thank you.