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

Fillable label sheet

Explorer ,
Mar 20, 2016 Mar 20, 2016

I'm attempting to create a fillable return address 30 label sheet.  I want the person to type their info into the fields on the first label and have this info populate the fields on the rest of the labels. 

The fields on labels 2-30 must be UNEDITABLE.  The end user will open the form in Adobe Reader, type their info in the first label and then print onto label paper.

What i've tried -

I tried creating fields, and copying those fields to the rest of the labels however those fields are editable.  I am now at a loss for what to do. 

Any help would be appreciated.   

TOPICS
Acrobat SDK and JavaScript
858
Translate
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 , Mar 20, 2016 Mar 20, 2016

You need to use two field names. Let's say the editable field is called "Name" and the non-editable fields with the same value will be called "NameCopy".

Use the following code as the custom calculation script for the "NameCopy" fields:

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

Translate
Community Expert ,
Mar 20, 2016 Mar 20, 2016

You need to use two field names. Let's say the editable field is called "Name" and the non-editable fields with the same value will be called "NameCopy".

Use the following code as the custom calculation script for the "NameCopy" fields:

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

Translate
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
Explorer ,
Mar 20, 2016 Mar 20, 2016

Thanks so much for your speedy reply!    I am going to implement your answer right now. 

I'm not familiar with using the 'string' of code you shared, but I shall try and figure out where it should be pasted. For the remaining fields (address, city etc), I will change 'Name' in your code to match the field. 

Translate
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
Explorer ,
Mar 20, 2016 Mar 20, 2016
LATEST

Thanks! What you said worked perfectly!!  Thanks again!

For others who might read this, what I did was highlight the copied field as try67 stated above and then open PROPERTIES, at the top click >> CALCULATE.  On the next window, at the bottom, click >> Custom Script Calculation then EDIT.  Paste the script in there. 

Translate
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