I am trying to verify a few fields are populated before the user can digitally sign the form. If the fields are blank, I would like to prevent the digital signature window from appearing. How do I do that?
Here's my script:
var vSignature
if(xfa.form.form1.execValidate() == true){
vSignature = this.rawValue;
}
else{
xfa.host.messageBox("At Least One Required Field Was Left Blank");
}
Solved! Go to Solution.
Views
Replies
Total Likes
Add null check (or any validation of the fields that you are expecting to be populated) in the preSign event of digital signature field , if validation fails then cancel the action after providing a message
Can you attach your sample form?
--Santosh
Views
Replies
Total Likes
Add null check (or any validation of the fields that you are expecting to be populated) in the preSign event of digital signature field , if validation fails then cancel the action after providing a message
Can you attach your sample form?
--Santosh
Views
Replies
Total Likes
Thank you for your reply.
Unfortunitly I can not attach a sample form. My understanding is the preSign event only works for versions 9 and higher. My form needs to be used with versions 8.1 and higher.
Views
Replies
Total Likes
Acrobat 8.x & Adobe Reader 8.x is already EOLed https://www.adobe.com/support/products/enterprise/eol/eol_matrix.html#86
Adobe Reader | 8.x | Windows and Macintosh | 11/3/2006 | 11/3/2011 |
---|
It's better to recommend your users to upgrade to latest versions. Is it an enterprise wide installation?
--Santosh
Views
Replies
Total Likes
Yes it is an enterprise wide installation. I will notify the Systems Group.
Thanks
Views
Replies
Total Likes
In case if you had to achieve this for Reader 8.x versions
1. You can lock the signature field on initialization or documentReady
2. Add a button for validation check
3. Do validation when the user clicks the button added in step # 2
4. If all validations are succesful then unlock the signature field
--Santosh
Thank you for your reply. I will give this a try.
Views
Replies
Total Likes
Views
Likes
Replies