Declare signature field as mandatory field

New Here ,
Sep 30, 2020

Copy link to clipboard

Copied

Hello everyone,

I have a form which has different signature fields. One of the fields is the signature of the CEO. But the signature of the CEO is not always necessary. It depends on a field in the form. If this field is checked, the CEO has to sign. If the field is not checked, the CEO does not have to sign. I have solved this hiding and showing of the signature field with JavaScript.

 

But I can only lock the document if all signature fields in the form are filled in.

Here my hiding with JavaScript is ignored.

 

Although the field has been hidden by JavaScript and all visible signature fields are signed, I cannot lock it. Only if I show the signature field of the CEO and insert a signature here, I can block it.

Can someone explain a solution to me here? Is it possible to declare a signature field somewhere as an option and not as a mandatory field?

 

Thanks a lot already
Bastian

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

I fixed the code (see above), but you also didn't place it in the right location. Read my reply carefully, please.

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms, Standards and accessibility

Views

171

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

Declare signature field as mandatory field

New Here ,
Sep 30, 2020

Copy link to clipboard

Copied

Hello everyone,

I have a form which has different signature fields. One of the fields is the signature of the CEO. But the signature of the CEO is not always necessary. It depends on a field in the form. If this field is checked, the CEO has to sign. If the field is not checked, the CEO does not have to sign. I have solved this hiding and showing of the signature field with JavaScript.

 

But I can only lock the document if all signature fields in the form are filled in.

Here my hiding with JavaScript is ignored.

 

Although the field has been hidden by JavaScript and all visible signature fields are signed, I cannot lock it. Only if I show the signature field of the CEO and insert a signature here, I can block it.

Can someone explain a solution to me here? Is it possible to declare a signature field somewhere as an option and not as a mandatory field?

 

Thanks a lot already
Bastian

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

I fixed the code (see above), but you also didn't place it in the right location. Read my reply carefully, please.

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms, Standards and accessibility

Views

172

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
Sep 30, 2020 0
Most Valuable Participant ,
Oct 01, 2020

Copy link to clipboard

Copied

> But I can only lock the document if all signature fields in the form are filled in.

 

What do you mean by that, exactly? How are you "locking the document"?

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
Reply
Loading...
Oct 01, 2020 0
New Here ,
Oct 01, 2020

Copy link to clipboard

Copied

In the screenshot "not lockable" not all signatures are signed. In the screenshot "lockable" all signatures are signed.

But I only get the screenshot "lockable" if the hidden signature field is also signed.

 

Screenshot "lockable"
lockable.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Screenshot "not lockable" 

not lockable.PNG

 

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
Reply
Loading...
Oct 01, 2020 0
Most Valuable Participant ,
Oct 01, 2020

Copy link to clipboard

Copied

I don't believe there's a way around that.

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
Reply
Loading...
Oct 01, 2020 0
New Here ,
Oct 02, 2020

Copy link to clipboard

Copied

Hello Try67,
It is a pity that this is not possible.

Okay, there might be a possibility that as soon as the checkbox "Check Box 11" is unchecked, a text with the content "Test Test Test" is inserted in the text field "Text42".

 

Thank you for your efforts

 

Bastian

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
Reply
Loading...
Oct 02, 2020 0
Most Valuable Participant ,
Oct 02, 2020

Copy link to clipboard

Copied

Sure. As the custom calculation script of the text field enter:

event.value = this.getField("Check Box 11").valueAsString=="Off" ? "Test Test Test" : "";

 

Edit: code fixed

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
Reply
Loading...
Oct 02, 2020 0
New Here ,
Oct 02, 2020

Copy link to clipboard

Copied

Sorry, but there is an error message. Did I do something wrong? The field where the value should be written is called Text42.

 

Properties of Check Box 11

001.PNG002.PNG

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
Reply
Loading...
Oct 02, 2020 0
Most Valuable Participant ,
Oct 02, 2020

Copy link to clipboard

Copied

I fixed the code (see above), but you also didn't place it in the right location. Read my reply carefully, please.

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
Reply
Loading...
Oct 02, 2020 0
New Here ,
Oct 02, 2020

Copy link to clipboard

Copied

Hi try67,

thanks a lot for your support!!!

It works great

Bastian

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
Reply
Loading...
Oct 02, 2020 0