Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Verify both signature fields are signed

Avatar

Level 9

I want a subform to open only after the signature field have been signed. I can't get it to work. Here's my script:

Form1.Subform18.Gate1CustSupApproval::docReady - (JavaScript, client)
var oState = event.target.getField("Form1.Subform18.Gate1TeamLeaderApproval").signatureValidate();// && event.target.getField("Subform18.Gate1CustSupApproval").signatureValidate();
if (oState != 0){
Gate2.presence = "visible";
}
else
{
xfa.host.messageBox("You have not signed the form. \n\nPlease press OK to return to the form and then click the signature field to sign the form. \n\nThank you!", "Error submitting this form", 0, 0);
}

1 Accepted Solution

Avatar

Correct answer by
Employee

It's not a good practice to hide content on a document where users apply digital signature , One would not want to sign on a document which has some hidden content.

If you do not want users to fill some fields in that subform then you could add validation checks in the preSign event of each signature field to ensure that - if validation fails then cancel the signature operation.

View solution in original post

7 Replies

Avatar

Employee

not sure what exactly are you trying to achieve here.

The only changes that are allowed after signing a PDF are filling form fields , adding annotations & signing any unsigned fields

Can you elaborate on the complete usecase? Have you tried using field locking ?

Avatar

Level 9

I have two signature field objects that both need to be signed before the next section of the form becomes visible (Subform18).

I set the signature fields to not lock the form. When the second signature field is signed, I want Gate2 to become visible.

Avatar

Level 9

After rereading your reply - it sounds like what I am trying to accomplish is not possible. If it is not possible to make a subform visible after a signature field has been signed, then I will have to do something different.

Avatar

Employee

Is there any sequence in which signature fields need to be signed? or could they be signed in any order?

Avatar

Correct answer by
Employee

It's not a good practice to hide content on a document where users apply digital signature , One would not want to sign on a document which has some hidden content.

If you do not want users to fill some fields in that subform then you could add validation checks in the preSign event of each signature field to ensure that - if validation fails then cancel the signature operation.

Avatar

Level 9

Thank you for your reply and help. I appreciate it very much!

Have a good day.

-Don