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

Copy Data from a input master Field to another field that is read only

Community Beginner ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

I have a couple of input fields that collect data in a pdf I am creating.

"Name" and "Date"

 

I would like these to be replicated on the top of each following page as read only, and without the red box around them.

 

Can anyone help (simple steps non coder here)? - thanks.

TOPICS
How to , JavaScript , PDF forms

Views

142

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Nov 09, 2023 Nov 09, 2023

Create a field called "Name_Copy", for example. Set it as read-only.
As its custom Calculation script enter the following code:

 

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

 

You're done.

Now you can duplicate it across all other pages.

Votes

Translate

Translate
Community Expert ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

Create a field called "Name_Copy", for example. Set it as read-only.
As its custom Calculation script enter the following code:

 

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

 

You're done.

Now you can duplicate it across all other pages.

Votes

Translate

Translate

Report

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 Beginner ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

LATEST

Perfect - thanks very much.

Votes

Translate

Translate

Report

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