Skip to main content
Participating Frequently
July 28, 2020
Question

Text automation

  • July 28, 2020
  • 1 reply
  • 365 views

In Adobe Acrobat Pro DC I have designed a fillable survey for clients. At the top is a generic text that I would like to have customized. 

 

The generic text reads "Custom Residence" and is on every other page at the top. I was wondering if there was a simple way to manually change the first pages text to a respective clients names and have that update the same on all other pages?

 

Summary. I'd like to update text on one page, and have all other pages reflect that same change.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 28, 2020

Sure, that's possible, using copies of the same text field. However, where is the client's name coming from?

Participating Frequently
July 28, 2020

It would be manually input on the first page. So if we have a client who is starting a project, I take the form, edit the text "Custom Residence" and change it to "ClientX Residence". Then ideally some automation would update all other pages in the form to reflect that change. 

 

try67
Community Expert
Community Expert
July 29, 2020

So let's say that field is called "ClientName". You can then use this code as the custom calculation script of the Residence field:

 

var clientName = this.getField("ClientName").valueAsString;

if (clientName=="") event.value = "Custom Residence";

else event.value = clientName + " Residence";