Checking Digital Signature Field

Hi There,
How do I check if a digital signature field has a signature without having to call validation, for example signatureValidation()?
Issue - I have a script that hides some text in PreSign event and if the user clicks cancel during the singing process, I want to undo the hiding. The idea is to have a script in the PostSign event to check if the signature exists and then undo. I'm trying to avoid calling signatureValidation() and invoke a send validation if the signature validation already took place.
Please help.
Regards,
RT

refer to -
http://forums.adobe.com/message/1334907#1334907

Similar Messages

  • Adding Digital Signature Fields to Multiple Pages in a Document

    Hello,
    I have a batch processing java script which will place digital signature fields in a drawing.
    Sometimes the drawing could have multiple pages and the script needs to place the digital signature fields onto each page.
    The problem with the script I have is that the digital signature fields are only appearing on the first page.
    Can anyone please provide assistance with modifying my script so that the digital signature fields appear on every page?
    // Drawing signature field rev 0
    var numpages = this.numPages;
    for (var i=0;  i < numpages; i++) {
    var a = this.addField("Checked", "signature", i, [1783, 174, 1724, 198]);
    var b = this.addField("Designed", "signature", i, [1783, 149.5, 1724, 173.5]);
    var c = this.addField("Design App", "signature", i, [1783, 125, 1724, 149]);
    var d = this.addField("Proj App", "signature", i, [1783, 101, 1724, 125]);
    Thanks very much.

    Just index the field names:
    var numpages = this.numPages;
    for (var i=0;  i < numpages; i++) {
    var a = this.addField("Checked"+i, "signature", i, [1783, 174, 1724, 198]);
    var b = this.addField("Designed"+i, "signature", i, [1783, 149.5, 1724, 173.5]);
    var c = this.addField("Design App"+i, "signature", i, [1783, 125, 1724, 149]);
    var d = this.addField("Proj App"+i, "signature", i, [1783, 101, 1724, 125]);
    Tho there's no point in signing each page in the same document, tho I also see engineering folk do this. They just love signing every data sheet.
    And the result will not be good. Each signature will cause a problem/alert for the previous signatures.
    Care to indicate your engineering company?

  • Need help making digital signature field read only if required fields are null

    Using Adobe LiveCycle Designer, I have a digital signature field.  I want to prevent users from being able to digitally sign the pdf if any required fields in the pdf are null or blank.  I'm a newbie to scripting so any detailed help would be greatly appreciated.  The required fields in the pdf include radio buttons, check boxes, text field, etc.  I appreciate any help anyone can provide.
    Thanks

    Exactly how you check a field for being empty depends on what type of field it is. For text fields, you should get the field's value as a string and compare it to an empty string, something like:
    var val = getField("Text1").valueAsString;
    if (val) {
        app.alert("Field is not empty");
    If there is a default value that needs to be changed, you would compare to the default value:
    var f = getField("Text1");
    var val = f.valueAsString;
    if (val !== f.defaultValue) {
        app.alert("Field value is OK");
    For check boxes and radio buttons, you'd compare to the string "Off", which means none in the group is selected.
    For dropdowns (combo boxes) and list boxes, there is normally one value selected, so you would have to get the value and check against the default value (or something else) to see if the field is properly filled in.
    You could place the script there, but I usually use a separate button that I encourage the user to click in order to check the field. The problem with using the Will Save event is you can't prevent the save from happening.
    The script can loop through all of the fields (and test all required ones), or you could set up an array of field names to check.

  • Digital Signature Field == null

    I created a button that will only execute if the digital signature field has been signed. However even when the signature field is signed use of the button after the signature still pops up with the scripted message "This document has not been signed yet.".
    I have the button excluded from locking after signature.
    Here is how I wrote the checking script.
    //checks if form has been signed
    if (form1.Page1.SignatureData.CASignature.rawValue == null)
                     xfa.host.messageBox("This document has not been signed yet.");
    else
    { /// some code that excutes fine without the if statement above}
    Any ideas on what I could do to check if this digital signature field is signed? Thanks.

    George,
    I can't get the first line to fire in LiveCycle Designer ES 2.0
    I created a new file with only three items. 1. Text field named "signedFlag" made "User Entered - Required" in the Object + Value tab.
    2. A signature field named "SignatureField1" that doesn't lock anything after signature. 3. A button with the script:
    form1.Button1::click - (JavaScript, client)
    var oState = event.target.getField("form1.SignatureField1").signatureValidate();
    if (oState != 0)
    {      signedFlag.mandatory = "disabled";
    xfa.host.messageBox("Congratulations your button worked.","Winner! Winner! Chicken Dinner!",3,2);
    else
    {      signedFlag.mandatory = "error";
           xfa.host.messageBox("This required box in red above is not completed.","Warning",3,2);
    I created the xfa.host.messageBox for either case being succesful, "disabled" or "error" so I could see if the script was firing after signing the document and then clicking the button. With or without these messageBoxes the var oState doesn't seem to be working. Any ideas?
    I changed the names in my scirpinting so I know, names are not the problem as you mentioned previously. Thank you for your time.

  • Trigger a Signature Date when Digital Signature Field is Signed

    I'm looking for a way to have a date field populate when a digital signature field is signed on my Adobe Designer Form. The signature technology I'm using does not work seamlessly with Adobe LiveCycle Designer and is unable to add the date when the document is signed. So I was thinking I could call a function to add the date to the date field when the signature field is signed. I just dont know how to do it.
    Please help!
    Thanks!

    Here is some code that will allow you to check the signature field:
    // check to see if Claimant signature field is signed.
    var oSOM = claimsign.somExpression;  // Returns the full SOM expression i.e. xfa[0].form[0].form1[0]...
    var truncSOM = oSOM.substring(15); // Truncating 'xfa[0].form[0]' from SOM to get acroforms name of the field.
    var oState = event.target.getField(truncSOM).signatureValidate(); // Get the current field's signed state
    In this case the signature field is called claimsign. After running this code the variable oState will conatin a value ....if it is 0 then the field is not signed. So you can add code like this:
    if (oState == 0 ) {
         // signature field is not signed
         app.alert("You must sign the form before submitting")
    } else {
         //The signature field is signed
         go through your submission process code
    Hope that helps
    Paul

  • How do I delete a digital signature field?

    I have Adobe Acrobat Pro 9 on Snow Leopard. I created a digital signature for a PDF file but it didn't look good, so I decided to delete it. I figured out how to delete the signature, but the signature field with the little red arrow did not delete with my signature. I want my PDF form to revert to the way it was before I created the signature. I cannot simply close the PDF without saving because I'd lose all the information I've already entered. Stupid me forgot to save before attempting the digital signature.
    HOW CAN I DELETE the digital signature field? Help!

    Hi SM,
    The place to look for permission settings is on the Security tab of the Document Properties dialog. You can get there by selecting the File > Properties menu item and then select the Security tab.
    One thing to note is if the file is Reader Enabled you will need to use the File > Save a Copy menu item to create a non-Reader enabled version of the file. You cannot edit a Reader Enabled file. As an aside, the Save a Copy menu item won't be there if the file is not Reader Enabled.
    If the file was created using Designer (which is only on Windows and I know you are using a Mac) then it has to be edited in Designer.
    If the file was certified, then you need to remove (clear) the certifying signature before you can edit the file, and to do that you must have access to the private key that was used as part of that signature operation.
    Finally, if the file is encrypted (e.g. Password Security or Certificate Security), you can edit the file, but you have to get Acrobat to realize you are the document owner which means you need the Permissions password or or logged in using a document owners digital ID (the former is only for Password Security and the latter is only for Certificate Security).
    Steve

  • Adding digital signature field with LC Designer vs. LC Digital Signatures

    Hi All,
    When digital signature field named "SignatureField1" is added to PDF document using LC Designer it appears as "form1[0].#subform[0].SignatureField1[0]" in Adobe Reader signatures tree.
    Same field added by LC Digital Signatures service appears as "SignatureField1" in the same tree.
    Why? What is the difference between those objects?
    LC Digital signatures ES2
    Adobe Reader 9.3.0
    Thanks, Yan

    Yan
    First off, there is no difference between the two signature field objects.
    I'll do my best to explain why there is a difference in how the signature objects are named in the Signature pane of Reader\Acrobat.  When you add the signature field using LC Designer, the object is defined in the underlying XML (XFA) that defines the form.  The  (SOM expression) you see in Reader (via the signature pane) matches the structure of the form.
    When you add a signature field to a form using LiveCycle Digital Signatures ES2, you are appending a signature field "on top" of a PDF form (the underlying XML has been rendered into PDF).  The signature field is not defined in the XML, therefore Reader\Acrobat do not display the same naming syntax.
    Does this help?
    Thanks
    Steve

  • Generate a PDF from Excel with a Digital Signature Field?

    Hello,
    I have an excel workbook that is filled out weekly- I then have to generate a PDF with a digital signature field for a manager to sign (vouching for the data).  I currently have to manually generate the PDF and then manually add a digital signature field.  Is there any way to generate the PDF from excel with a digital signature field that can then be signed?
    Thanks for any help
    -Nathan

    Moved to Acrobat forum.

  • It is possible to add a defined sized Digital Signature field at a certain location on the document using the Adobe SDK?

    I have a need to create a Digital Signature field of the same size, in the same location, on many PDF documents over and over.  I would like to do this automagically through the Adobe SDK if that is possible.  Has anyone done something like this before, and if so can you briefly describe how?  Thank you.

    You can do this most easily with JavaScript.

  • Save metadata per digital signature field in PDF?

    Hi All,
    I'm looking for a way to save metadata per digital signature field in a PDF.
    For example for each signature I would like to save additional string property.
    Can I use XMP in this case?
    Thanks in Advance!

    Hi,
    Yes, we have options to add digital signature to the pdf. We have one attribute called "Permissions" in "cfpdf" tag. If we provide permissions = 'AllowSecure', then system would allow digital signature for that pdf.
    Please go though the docs for details info. I will post in details next.
    Thanks
    Chandrakant

  • Digital signature fields in AutoCAD?

    Is there any way to insert a digital signature field in AutoCAD and then make the PDF?  That way it is ready for the engineer's electronic digital signature and timestamp?

    No. You can't have multiple digital signature fields with the same namein the same document as you can with other types of fields. Since a digital signature applies to the entire document, not just a page, pages, or section of a page, it doesn't really make sense.

  • Can't get digital signature field to work

    I am using Acrobat Standard.  I am trying to create a form with a digital signature field.  My problem is that when the PDF is opened with Reader on the same PC it works as expected.  Soon as it is emailed/moved somewhere else the box doesn't do anything, no ability to digitally sign or even type in that field.
    So I am struggling with creating a PDF on one PC that needs to be digitally authorised by someone else on a different PC, using Adobe Reader.
    I have been using Save as...>Reader Extended PDF
    Please help!  Apologies if this something obvious and simple, this is the first time I have tried to do this.

    Gerorge, thank you so much.  I have since upgreaded to Pro and am now trying to figure out how to use the digital signatures correctly.  I have sent out a test form and had a coworker complete, sign and send back but when I open up the form it says I have a signature error.  and then i get this pop up when I click on the signature
    What am I doing wrong?  I work in HR and need these to be valid signatures.  Thank you so much in advance!!!

  • Reading digital Signature field ..

    Hi Experts
    Can anyone please help me on this..
    I have created an adobe interactive form wherein i have put a digital signature field, now after the user fills up the form i need to read it through webdynpro Java. How do i read that field.
    I tried to map it to String attribute in context, and then read, it came out to be null..
    does anyone have a fair idea about this.., please help..
    regards
    ~amita
    Edited by: amita arora on Feb 7, 2008 5:23 AM

    Hi Amita
    Were you able to solve this?
    Thanks
    Lisha

  • Digital Signature Fields

    Can digital signature fileds be linked in on document so that when one is signed the rest are also signed?
    Thanks
    Scott

    No. You can't have multiple digital signature fields with the same namein the same document as you can with other types of fields. Since a digital signature applies to the entire document, not just a page, pages, or section of a page, it doesn't really make sense.

  • How to add digital Signature Field in cfdocument pdf files?

    Hi,
    We are generating pdf files using cfdocument to populate values and wondering how we can add digital signature field in those pdf files. Any help or comments would be deeply appreciated.
    Thanks,
    hismail786

    Hi,
    Yes, we have options to add digital signature to the pdf. We have one attribute called "Permissions" in "cfpdf" tag. If we provide permissions = 'AllowSecure', then system would allow digital signature for that pdf.
    Please go though the docs for details info. I will post in details next.
    Thanks
    Chandrakant

Maybe you are looking for