Copy link to clipboard
Copied
I'm attempting to use a pdf form to create a document that requires signatures based on the total value of the entries to the other fields. For example, if the sum of the items in the fields is <$1000, it only requires the signature of the user filling out the form. If the sum is >$1000, an additional signature is required.
Is there a way to only require a signature based on the above criteria, and to notify the individual responsible for the additional signature if the criteria is met?
Thanks!!!
Copy link to clipboard
Copied
Yes. As the custom validation script of the sum field enter the following (adjust the field names as needed):
if (event.value>1000) {
app.alert("A second signature is required.",3);
this.getField("Signature2").required = true;
} else this.getField("Signature2").required = false;
Note that the "required" property is only validated when the file is submitted, though.