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

Declare signature field as mandatory field

Community Beginner ,
Sep 30, 2020 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

TOPICS
Acrobat SDK and JavaScript

Views

268

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

correct answers 1 Correct answer

Community Expert , Oct 02, 2020 Oct 02, 2020

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
Community Expert ,
Oct 01, 2020 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
community guidelines
Community Beginner ,
Oct 01, 2020 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
community guidelines
Community Expert ,
Oct 01, 2020 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
community guidelines
Community Beginner ,
Oct 02, 2020 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
community guidelines
Community Expert ,
Oct 02, 2020 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
community guidelines
Community Beginner ,
Oct 02, 2020 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
community guidelines
Community Expert ,
Oct 02, 2020 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
community guidelines
Community Beginner ,
Oct 02, 2020 Oct 02, 2020

Copy link to clipboard

Copied

LATEST

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
community guidelines