Skip to main content
Participating Frequently
February 2, 2016
Answered

Set subsequent fields as "read only" to take data from first occurrence?

  • February 2, 2016
  • 1 reply
  • 1199 views

Hoping this can be easily done without the need for scripts.

I'm working on creating a proposal form. There are a few areas where I would like the first instance of a field to be editable but the rest would be locked so that they are even taken out of the tab order.

Example: On the front page I have a field for the company name. This field is repeated across the several pages of the proposal. Each field has the same name. As a result any data entered into any one of them is distributed to all of them.

Ideal Solution: Front page field is editable and is where the data is entered. All subsequent fields are set as "read only" and take their data from the "master" field" As a result, someone can't make a change to that form on, for example, the third page and have that error replicate out across the document.

Is this possible?

I'm using Acrobat Pro DC on Windows 7 pro.

Thanks.

This topic has been closed for replies.
Correct answer try67

You have to use a script to do it, but it's a very simple one.

If the "master" field is called "Text1" then enter this code as the custom calculation script for all other fields that need to have its value:

event.value = this.getField("Text1").value;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 2, 2016

You have to use a script to do it, but it's a very simple one.

If the "master" field is called "Text1" then enter this code as the custom calculation script for all other fields that need to have its value:

event.value = this.getField("Text1").value;

Participating Frequently
February 2, 2016

Thanks for the quick feedback.

Where would I enter this script? I'm assuming in the Properties dialog box but not sure which tab.

Thanks!

try67
Community Expert
Community Expert
February 2, 2016

Properties - Calculation - Custom calculation script (the third option).