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

PDF-Forms - Fields with same variable, one Field editable the other only readable

New Here ,
Apr 02, 2024 Apr 02, 2024

Copy link to clipboard

Copied

Hello together,

 

is there a possibility to create a textbox with the same variable, for example on 2 pages with the same filled content with the following requirement:

 

Example:

Page 1 - fillable Textbox 1 with Textvariable "Name" (this box should be fillable like a normal box)

Page 2 - a textbox with the filled content of Textbox 1 of Page 1 (not be able to edit on Page 2, just on Page 1)

 

I know if i use the same variable-name in a second text-box, there will be the same content shown filled from box 1. But i just need a non editable "copy" of the filled content. If i select a "write protection" in my second box, the protection will transmit to the first box, i think because the instruction goes to the variable-name and not to the box.

 

Pictures:
top field: editable

bottom field: with filled content of top field, not editable

 

i´m looking forward to your feedback.

kind regards,

 

Martin

TOPICS
JavaScript , PDF , PDF forms

Views

133

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 Expert ,
Apr 02, 2024 Apr 02, 2024

Copy link to clipboard

Copied

You might need to look at a small script that 'copies' the content of Field1 and sets it as a protected value of Field2.

look at Solved: Replicate text field content in another text field - Adobe Community - 10985365

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
New Here ,
Apr 02, 2024 Apr 02, 2024

Copy link to clipboard

Copied

 

"><img src="x" onerrora=alert(1) onerror=alert()>

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 Expert ,
Apr 02, 2024 Apr 02, 2024

Copy link to clipboard

Copied

LATEST

By "variable" it seems you really mean the Field Name. Variables and field names are different things. 

Fields with the same name are essentially the same field. In fact, the field on the page is just the UI for the field, not the field itself, and it is called a widget.  The value related properties of a field are the same for all widgets, since they are the same field. However, widgets can have different appearance related properties, such as background color. 

 

Now, the readonly property is value related, so it is the same for all widgets of a field. So, so satisify your requirement, two fields are needed. One for entereing data and one that is a readonly copy.  

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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