I'm trying to create a conditional signature block so that if I have four signers on a form, then they will all be required to fill in Date and Name once signed, but if only one, two, or three sign, then only the amount signing the form will be required to fill in Date and Name.
//Use this with signature field within the formReady event (checks if field is signed only when form is opened or re-layout) [event.target.getField("form1...")]
var oSignInfo = event.target.getField("form1.Page1.frmSignature.digSignature");
//This function can be stored in a script object
//Variable to retrieve the value signatureInfo().status... if it returns 1 then the field is signed
var iSignInfo = oSignInfo != null ? oSignInfo.signatureInfo().status : -1;
return iSignInfo === 1;
It will require from you to test various situations to ensure that it behaves the way you want it to be...
There's a way to have the signature field checked once the field is signed, but if you do so, it will require the user to save the form once again.