Adding Javascript to a Digital Signature

Hello Everyone,
I have been browsing the forum for the good portion of the last 2 days and have been unable to fix my problem (if it is fixable).  I wasn't really sure what forum to post it, but since it mostly a Javascript question and I am not exerienced in Java, I posted it here.
I created a form with Acrobat Pro XI and will be read in Reader X.  My goal is to be able to insert a digital signature from the Forms menu on Acrobat and within the Digital Signature Properties, Signed tab, I would like to input Javascript into the "This script executes when field is signed:" section.  This script would email the document as a PDF with all of the form fields locked or flattened.  If possible I would like to change the name of the document and add specific subject line to the email. 
I have tried using the following script bu it errors out on the cSubmitAs.
this.submitForm({cUrl: “mailto:mail@domain”, cSubmitAs: "PDF",})
Any help would be greatly appreciated,
Eric

The option to lock won't be available if there's another unsigned signature field present, which you can hide on the page and make read-only.
A better option though is to preconfigure the signature field so that the lock document option isn't available. For more information, see: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.764.html

Similar Messages

  • Javascript to disable digital signatures

    Hi,
    Does anyone know of a javascript I can use to turn off the option to create a new digital signature ID in Acrobat 9? I would like for users to just be able to use a preset ID that i would provide for them, and not to be able to create a new ID. Any help would be appreciated.
    Thanks,

    Hi,
    I dont know if you will get this reply, but is there a way to add this key by default for all users? Right now I have to set it up per user.
    Thanks!

  • Is there a script for making a digital signature read-only after signing?

    When the user signs a PDF Form, the user can clear his own signature. I want to disable the "Clear Signature" feature. I noticed I can run a Javascript in the digital signature's property. Is it possible to execute a Javascript to make just that signature Read-only?
    Thanks.

    If the person who signed the document has Acrobat Pro, you could use the flattenPages() method, which lets you specify the page(s) to be flattened.
    For example:
    this.flattenPages(0)         //flattens page 1
    this.flattenPages(0, 2)     //flattens pages 1 - 3
    But if they have only Reader, they can't use flattenPages().

  • Digital signatures and wet ink signatures

    HI all,
    I am in the process of converting our paper checklists into fillable pdf forms.  Everything is working well, but Im trying to get my head around digital signatures.
    Ideally I just want to click the signature part, choose a user from a list, enter the password and the 'wet ink' signature that is scanned in gets added to the form.
    So on my laptop I setup a new appearance for my signature, scanned my signature and added it to my digital signature.  Perfect.
    Problem is, I want to be able to use this on other computers.  I copied the digital signature .pfx file and imported it on that new computer, which worked, but it drops the 'wet ink' signature and appearance.
    It also appears that anyone can create a digital ID on my laptop and choose my wet ink signature appearance, and sign the document which makes it appear as if I have signed it.  I was hoping the wet ink signature was locked with the digital signature but it appears this isnt the case.
    Im trying to find the best way to store our signatures (we are all on a network), so that any user can use any computer and ideally lock the wet ink signature to the digital signature.
    Many thanks
    Chris

    It doesn't work for everyone, but if you are considering moving to the world of digital signatures, it's best to forget the signature appearance ("wet"). This is just a distraction to the actual signature, and it encourages a deeply flawed workflow: one where people look at the picture on the page rather than learning about digital signatures and how to verify them. Since digital signatures are (if done properly) unfakeable and (in some places) legally recognised, it is best to completely change workflow, rather than trying to give the illusion it is just an electronic version of a paper workflow.

  • Digital signature properties field name via javascript

    I am creating secure digital signature fields with random number names with similar prefixes.  The idea is to have multiple fields available in a single regular PDF (non portfolio).  So on each sheet we sign 3 fields.  One field is a name, another is a date and the last is a release.  This goes on every sheet and the PDF would contain up to 1500 pages.  Adding a random number to the end of each field name was the only way to make this work....now I have a problem of finding the particular fields for my script to sign the sheets. 
    I am guessing that there must be some way to identify how many fields I have on a sheet and return the name of all the fields.  If I can get the name of all the fields I can use that info to run my script to place the digital signature appearances in their correct field.  My field names all begin with either 'Date', 'Sig' or 'RFC' followed by a random number to avoid duplicate fields.
    So in a nut shell, how can I find the names of the fields via JavaScript?
    Thanks you!

    Are you able to add another prefix, specifically using hierarchical field names that include the page number? For example, on page one the fields could be named:
    P1.Date[random number goes here]
    P1.Sig[random number goes here]
    P1.RFC[random number goes here]
    You can then get all of the P1 fields like this:
    var fields = getField("P1");
    and then use the getArray method to get an array of the individual field references and iterate through the array.
    Otherwise, you can loop through the fields and look at the page property of each to determine which ones are on which pages. You can use the getNthFieldName document method and numFields document property to do this.

  • Digital Signatures/Javascript After Signing?

    Hello everyone,
    I'm currently developing forms for my company, post processed through Adobe Acrobat 9 Standard, that require digital signatures. Working in the food industry requires compliance to specific FDA guidelines, specifically CFR 21 part 11. In order to meet the requirements I must develop an SOP (Standard Operating Procedure) that proves signatures are accurate and secure.
    The process is tedious, and I have called a few meetings thus far to discuss some of the unforseen circumstances. During the discussion a question was brought up stating; What protects forms stored in the archives (3 years for compliance) from being corrupted by a disgruntled employee? Specifically, what stops an employee from clearing a digital signature? I realize we can set up file access rights to the forms to prevent such happenings, but majority of the forms are setup to hold 6 months to a year of info, thus wouldn't be archived until filled completely.
    My question: Does anyone out there know of a javascript or trick to disable the "Clear Signature" function after signed? I've been searching and have turned up empty handed. Also, does anyone have any other javascripts that are used after digital signature occurs?
    Thanks in advance for any help you can give me,

    George,
    Thanks for your response.
    The issue is not if the file is deleted, the issue is if the files becomes "manipulated". I think "corrupted" was the wrong choice of words.
    To explain: Any form that is completed has several digital signatures within the contents, depending on which QA Technicians complete the task (e.g. Calibrations, Metal Detector Settings, etc...). Forms are setup by days, weeks, or in some cases years, and have designated signature areas for the time period the test was conducted. So, after "John Smith" completes his portion of the form he is required to digital sign the document, after signing is complete all information is set to read only and cannot be altered unless the signature is deleted.
    Digital signatures can be deleted in two ways:
    1. The user who signed the document, based on active directory, has the ability to "clear signature". As and FYI: no other user is capable of deleting a signature signed by another employee. (does not apply to the form author)
    2. The file creator can add a "Reset button" control, thus being able to delete any data specified.
    So as I said I'm looking for a way to lock all signature functions, after sign is completed, even for the original signer. So if form "Calibration01" is currently being filled out and has signatures x,y,and z on it; I want to make sure if "x" is disgruntled they do not maliciously go and clear their signature. Also, I would like all fields associated with the signature to be locked without any way for the user to manipulate or revise data.
    If anyone has any javascripts that run once signer digitally signs, it would be a great help,
    Thanks,

  • 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

  • Adding a digital signature to a form

    Hi all,
    I'm new adobe designer and have been tasked with creating an on-line registration form. So far I have been able to add all the fields and such for users to enter their information.
    I have read through the forums and found out how to add little bits of javascript and stuff to the forms too.
    At the moment I have a four page form with stacks of questions.
    There is a question I have on there that is a check box with the usual "I accept the terms, blah, blah" on it and I need that field to act as a digital signature, or if not that, apply a signature to the form when the submit button is hit.
    At the moment I have regular button as the submit button as I needed to be able to change the body and subject of the email at run-time and could only get it to work through javascript at run-time.
    If anyone knows how to get this to work, I'd appreciate the help as I have no idea what I'm doing!
    Cheers,
    Dave

    Hi,
    It depends on where you placed the script, probably best place is the exit event.
    if (this.rawValue != null || this.rawValue != "")
         this.access = "readOnly";
    else
         this.access = "open";
    This will only lock the field that the script is inside.
    You should check out Paul's example LockAllFields, which contains a function in a script object. While Paul calls this from a click event in a button, you could call it fromthe exit event of the particular text field.
    Re: Saving Fillable Form as non-fillable PDF
    Hope that helps,
    Niall
    Assure Dynamics

  • I created buttons and added a digital signature, when I saved and reopened my buttons disappeared?

    I created a multi page PDF with numerous buttons for navigation. I realized I had forgotten to sign one of the individual pages, (I had recently added) so I simply put in a digital signature. I saved the document and reopened it later to find it made all the buttons non functional and uneditable... Some of the buttons were transparent (placed over written dates for reference) and some were colored boxes with text. The colored buttons became "flattened" and I could no longer edit them or click on anything.
    Why did this happen? Is the digital signature to blame? Is there a way to edit the existing buttons or do I need to recreate all of them along with the actions associated with each? any assistance would be much appreciated!

    It's possible to set up a signature field to lock other fields when it is signed. Could that be what happened? It also possible to choose to lock the file when signed to prevent changes. It's hard to tell what happened without seeing the file.

  • Adding a digital Signature in Acrobat X Pro

    A recent update seems to have altered the digital signature. Before there was no problem and I used the signature I created in Acrobat 9 after upgrading to X Pro. But yesterday (after the update) I was asked for a password for the first time. Eventually I deleted the ID and tried to create a new on but cannot. I follow the steps  - a new ID, then a new PKCS#12 file; I fil lin the details requested then on the next page it asks for a file location and password. I accept the default location and type in a password but after the enter I get a message that the passwords do not match.
    How do I sole this or am I doing something wrong?

    Do you enter the password twice? People have reported that the second password field isn't visible when using a low resolution screen.

  • Adding Digital Signature to XML strings

    Hello All ,
    i'm looking for functionality to add digital signature, encoding & decording to XML Payment fiels with encryption as well.i have searched on SDN but i havn't found any solution.
    waiting for some useful thoughts on it.
    i have see Programs SSF* as well , but it requires PSE settings which i dont want to  use .Is there any others ways to do it ?
    Thanks & Regards
    V.

    Yes, you need a certificate to sign.
    You need a special one for yourself, one that also contains your private key.
    Your message is signed with your private key (actually encrypted with it), after that anyone can see you signed it using your public key.
    Encryption works the other way round: You encrypt it with openly available public key of the recipient, but only he will be able to decrypt it with his private key.
    BTW you can create your own certificate, using Keychain Access>Certificate Assistant. The disadvantage is that they are not automatically accepted as valid, since they are not listed in the X509Anchors keychain. You have (and whoever you deal with) manually import your (public) certificate into the Keychain X509Anchors as well. Double clicking the certificate gives you the option to do so.

  • Embedding Documents and Adding Digital Signatures

    I have the following two questions regarding Adobe Acrobat XI pdf fillable forms that I can't find in the manual:
    Embed supporting documentation and/or copy and paste information within the form 
    Allow digital signatures to be saved within the electronic version of the form
    I would appreciate any feedback available.
    Thanks!

    Use the Acrobat forum.

  • Adding Digital Signatures to PDFs

    Hi all,
    Sorry if I am posting this question in the wrong location, but hopefully someone who sees this message will still be able to answer or point me in the right direction. I did perform a search and could not find a definitive answer.
    There are documents in my company that will be circulated for approval and we would like to apply digital signatures to indicate that certain personnel have reviewed these documents. I have Acrobat 3D version 8.1.5 and I know I have the capability with that version to add digital signatures to a PDF. My question is: Is that true of all versions of Acrobat? If not, can anyone tell me the most recent version of Acrobat that has this capability. I won't necessarily be the one creating the PDFs; thus, the question.
    Janice

    Use the Acrobat forum.

  • 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?

  • Adding Digital Signature in Form 16

    Experts,
    I want to apply note 1168740 to add digital signature to form 16 . Can anybody tell me how i can get credentials and the corresponding public key. links provided there i.e 
    http://help.sap.com/saphelp_nw70/helpdata/en/db/ aafb211ead420faeeaa24e99eb5f41/frameset.htm
    and
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/ 1ca382f3ec5873e10000000a11466f/frameset.htm
    is not working.

    hi Pradeep,
    Go through following link
    Re: digital signature
    With Regards,
    Ravi

Maybe you are looking for

  • Error while running adcfgclone on database tier please help me

    Hello I am doing cloning through cold backup and i face some errors..here is my logfile.....please suggest me some solution... Executing script in InstantiateFile: Attempting to create a back up of the Context file Created back up file of name : /hom

  • Item sobstitution in sales order

    Hi, i need to create different families of product in order to manage in a sales order, the possibility of order a code that represent family and then use in scheduling. Example: item 5 represents material code 5001, 5002, 5003, 5004... and so on.. W

  • AVCHD clips imported in FCE play way too fast.

    Hi there, I am a video newbie, I am trying to import AVCHD clips from an SDHC card into FCE using log and transfer method. All is well until I start working on the clip in the viewer, the clip is for sure playing at 2X speed, I am not sure why. It mi

  • [Solved] another flickering monitor problem

    Hi, I hooked a new LED monitor to my laptop via a VGA cable but the sad part is that the monitor flickers quite a bit. It's not a hardware problem because I hooked the monitor to a windows box (using the same VGA cable), and the monitor works perfect

  • Won't work on windows live mail

    I cannot ge Verizon e-mails to work in conjunction with Windows Live mail. My Yahoo & Google mails work fine. I probably need to set it manually, am trying to get the setings on Verizon , but cannot find them. T.I.A.