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
I fixed the code (see above), but you also didn't place it in the right location. Read my reply carefully, please.
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"?
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"
Screenshot "not lockable"
Copy link to clipboard
Copied
I don't believe there's a way around that.
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
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
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
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.
Copy link to clipboard
Copied
Hi try67,
thanks a lot for your support!!!
It works great
Bastian