Signature field on a spawned page is not maintaining the same properties as from the invisible temp

New Here ,
Apr 30, 2021 Apr 30, 2021

Copy link to clipboard

Copied

Hi All,

 

I'm using Adobe Acrobat Pro DC 21.001.20150 and I'm trying to create a form composed of 2 visible pages and a 3rd page which I converted in template and made it invisible.

Mihai5D19_0-1619804293734.png

 

On this 3rd page (invisible templete) I have a digital signature field which I have set as when "signed" to mark as read-only: All fields except these and I have selected a button which will be used to submit the form.

Mihai5D19_1-1619804582307.png

 

On the second page I have a check box which I coded with JavaScript to:

when checked to spawn a 3rd page based on the invisible template page

when unchecked to delete this 3rd page.

See the code I have used below

 

if(event.target.isBoxChecked(0))
this.getTemplate("Approver2").spawn(2,false,false)
else
this.deletePages({nStart: 2, nEnd: 2});

 

Mihai5D19_2-1619804931756.png

The button is working fine is generating the 3rd page and is deleting the 3rd page.

Mihai5D19_3-1619805110573.pngMihai5D19_4-1619805209824.png

The issue I have is that when the 3rd page (which is spawned ) is signed the fields on the 3rd page are not made read-only as I had set/programed on the invisible template page.

 

I have done a lot of reading but unfortunately I can't figure out to make it work. 😞

Can anyone tell me what I'm doing wrong?

Any help/suggestions how to solve this issue would be much appreciated.

 

Thanks in advance.

M

TOPICS
General troubleshooting, How to, JavaScript, PDF forms, Security digital signatures and esignatures

Views

219

Likes

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 ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

LATEST

Hi All,

 

I have "sorted" this by adding on my 3rd page which I converted in template and made it invisible for the digital signature field the below JavaScript for each of the fields I wanted to make read only.

 

this.getField("FieldNameHere").readonly = true;

 

The jave script is comming from another article I have read here:

PDF Form javascript for making readonly field by using button

https://community.adobe.com/t5/acrobat/pdf-form-javascript-for-making-readonly-field-by-using-button...

 

That worked fine 🙂

 

Thanks try67 for posting that answer 🙂

Likes

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