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);
}
Solved! Go to Solution.
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.
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 ?
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Is there any sequence in which signature fields need to be signed? or could they be signed in any order?
Views
Replies
Total Likes
Any order would be fine.
Views
Replies
Total Likes
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.
Thank you for your reply and help. I appreciate it very much!
Have a good day.
-Don
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies