Lock PDF Fields upon Submit?

Hi,
I am using Acrobat Pro 9. I created a fillable PDF with a submit button at the bottom. I plan to e-mail the PDF as an attachment and set it up so that the fdf file is returned to my e-mail. However, upon testing the result i noticed the fields did not lock after the user clicks submit. In other words, when I open the returned file / import the fdf data it allows me to change/edit the user imputed data. This could cause problems for me since others will be working with the returned data. Therefore, I would like to know if there is a way to lock the form fields once the user clicks the submit button. When the data is returned I do not want there to be a way for me (or any one else using the data) to accidentally change it. Please let me know if there is a way to do this.
PS I am new to acrobat and have no real design or development experience. I do not know much, if any, terminology. Thus, if responding please respond as if you were talking to someone who knows almost nothing. It would be helpful if you could explain step-by-step using acrobat 9 pro.
Thanks,
Josh

If you really want to make sure that edits to entry fields cannot be changed, you can flatten the PDF pages:
this.flattenPages()
All values entered into text fields will now be text in the PDF, not editable fields. This includes any buttons you have added, so you can hide them before you flatten the pages if you don't want them in the document:
this.getField("btnFlatten").display = display.hidden
this.flattenPages()
You can also specify a page range to flatten. This will flatten pages 1 through 5:
this.flattenPages(0, 4)

Similar Messages

  • Locking Selected Fields on Submit

    Hello,
    I've been working on a multiple-item quote request form. My intention is that Party A (Requestor) will fill in the item description and details necessary for Party B (Vendor) to provide a quote. The form will be emailed to the Vendor who will complete the remaining fields (price and delivery) and email the form back to the Requestor.
    The item description and details (provided by Requestor) and the item price and delivery (provided by Vendor) are both wrapped in thier own subform and both are contained in a repeating subform. I've scripted the buttons that add/delete instances of the subform for each separate item being quoted and the button that emails the form to the Vendor. It took me a long time, but I finally got the buttons to work!
    Now I'd like to find a way to 'lock' the fields filled by the Requestor when the form is emailed but still leave the fields open that need to be completed by Vendor. I'd also like to lock the contact information fields at the top at the same time. I've attached a JPEG with the form layout to clarify...
    I've been reading a lot of old posts regarding similar topics and tried some of the solutions provided but cannot seem to make them work for my application. The closest I've been able to come is locking the entire form. I have the form set to email on event=click of the "Submit to Vendor via Email" button and the locking action on the event=mouseup of the same button.
    Does anyone know how I should approach this? I'm begining to think I designed my form and myself into a corner! Unfortunately I do not have a server on which to host the form but would be happy to email it to anyone willing to help.
    Thanks,
    Jake

    I dont know what I was thinking.  After some rest, and a second look, I can see this what the code is doing.
    I am trying to provide a button that will lock elements on individual pages that are part of multiple instances. Note, each instance will contain said button.
    Example: TRANSMITTAL[3].lockButton should only lock items on that instance of  TRANSMITTAL[3].
    The two attempts had different results
    form1.TRANSMITTAL.lockButton::click - (JavaScript, client)
    var j = _TRANSMITTAL.count;
    for (var i=0; i<j; i++){
         var currentSubform = xfa.resolveNode("TRANSMITTAL[" + i + "]");
         varLOCK.LockAllFields(currentSubform, "Lock");
    ..resulted in Locking ALL instances.
    form1.TRANSMITTAL.lockButton::click - (JavaScript, client)
    varLOCK.LockAllFields(form1.TRANSMITTAL);
    ..resulted in nothing.
    Any suggestions?

  • Reset field upon submit

    Hi, I have a search field, which once the page has been
    submitted I would like to be reset back to the default value, so
    that when the page loads up with the query results it has been
    reset to default value, how do I do this please? (I already have
    onClick in use on the submit button)...
    Thanks

    Yes it does, I use the form to filter query data. I have temp
    fixed it by having preserve data="No", but i kind of liked it
    preserving as the date fields remained. So if there is another way
    then great.
    Since my post, I have added a checkbox to my form, so if they
    tick it the query includes some more criteria, however, it works,
    but then If I sort again but with the tick box unchecked it still
    thinks its checked. Can I write something like <cfif
    #form.checkbox# = 'value'> instead of isDefined, would that be
    more efficient...?
    Thank you for your reply

  • Lock or Flatten PDF Upon Submit???

    Hi,
    I have Acrobat 9 Pro and am new to using it. I created a fillable form with a submit button at the bottom. I would like to be able to gather the returned form data via email. However, I would like the user imputed data to be locked once they click the submit button. In other words, I want the pdf to be flattened once the submitt button is clicked. The reason Is because I dont want the person who the data is being returned to (me or someone working with me) to be able to accidentally change the user imputed data while I or they are viewing it. If anyone could help me I would greatly appreciate it.
    PS: I have no real experience with design/development including any termonology. Therefore, if at all possible, if there is a way to do this using acrobat 9, please explain step-by-step, as well as define any termonology please. I have read a few other posts regarding this and could not understand their explination.
    Thank you,
    Josh Campbell
    [email address deleted by host]

    Michael,
    Thank you for your response. I agree, I would like to post the form on the web, but I do not have control of the web sight. Additional, for now I believe that email would work best for the way we have things set up. Right now all of the volunteers are contacted by email. Most of them are return volunteers who we contact via email.
    I did think about trying to work with the web design people to post it online, but that will probably take some time. The people who handle the web sight do so for free because it is a non-profit organization. Thus, I will probably have to pressure them into spending work hours messing with our sight.
    Can you explain how I might be able to accomplish my goal using javascript, as you mentioned? Locking the fields would work fine if the user could fill out the forms then submit via email. Let me know what you think.
    Thanks,
    Josh

  • Lock Fields with Submit

    Running LC ES with SP2.
    I want to lock the fields or make them read only after the user submits the form. I don't have or need a digital signature for the initial submission.
    Any thoughts? I have tried flattening the form and that isn't working. It is still editable by the manager who gets the form and it's even editable when the user receives the final approval or rejection from the manager.
    I know how to lock them down when the manager signs but what about after the user submits. That is what I really need done.
    Thanks,
    John

    is it possible to set a group of text fields (in a subform is fine) to read only by using another field?
    in other words, I have a form that a manager will fill out a section with client info, then "lock" that section and send it to the client. The client should not be able to change that information but be able to continue filling out the rest of the form and then return it to us. it must all be client side, no server will be used
    I built it in infopath and just have a "password" field that our managers use to set a section to read only. it's not very secure, just a default word I set for all managers, but that security is fine for this

  • How do I lock PDF before e-mailing so that it cannot be altered by the recipient?

    I've created a form in LiveCycle which will be seen and filled by users who only have Reader.
    Once the form is completed, the user has to click three buttons: one prints the page (for a specific paper-based usage required by the filler of the form). The same button  sends the entire form to one e-mail address.
    The second button prepares the form for submission to a second e-mail recipient. This recipient must not be able to see some of the filled fields on the form. As well as setting these fields to invisible, the second button also hides key fields behind a text message, telling the second recipient where to find the information that is most useful to them on the form. Again, this recipient will be using only Acrobat Reader.
    Everything works fine, apart from when it comes to e-mailing the form to the second recipient. I've used various scripts I've found on this forum and elsewhere to lock fields before sending and I've extended Reader rights in Acrobat. But, whatever I do, the form received by the recipients is STILL editable, the "invisible" fields are visible again and also editable,  and the test box that obscured key fields has become invisible again.
    I've already tried using a range of scripts that I've found both on this forum and elsewhere (including Paul Guerrett's 'Lock All Fields' and 'Lock All Fields Not Buttons' scripts. I've also tried using the scripts in different 'events' - mouse up, mouse down, click etc.
    What am I doing wrong? I've spent days trying to figure this out and I'm getting nowhere.
    I am  a JavaScript novice, by the way. So please keep it simple and (better still) provide working script! Thanks to anyone who can help

    Hi Steve,
    I can see 2 possible options for you to investigate,
    1) Submit the form to a LiveCycle process and let LiveCycle Output turn the PDF into a PDFA and then email the second recipient.
    if you don't have a LiveCycle Output server
    2) Remove the second submit button and add a signature field which can lock the entire PDF.. once signed the PDF can be email directly from Reader/Acrobat using the File>Attach To Email
    One thing to remember is that anything that can achieved through script can also be undone through script written into the javascript console, so if you a working with sensitive data you should use one of the options above.
    Kind Regards
    Kev
    Solutions Architect
    Avoka
    www.avoka.com

  • Created form in Livecycle Designer 8, send to 2nd party to complete some fields, want to lock those fields so that when sent to 3rd party to complete cannot edit

    I am a newby to this product and have created a form from a PDF.  I used Adobe Livecycle Designer to place text fields in form.  I saved, then enabled user rights.  I sent to 2nd party to open in Adobe reader.  This person needs to populate some of the fields.  Once this is done the 2nd person is to email to 3rd person who will complete the outstanding fields and return the form to the second person.
    How do I stop the 3rd person from editing the text the second person put in the form?
    I want the second person to receive the complete form back not just the responses put in the text fields?  Does this happen automatically or do you have to tell it send complete form.
    Thanks from Sandra in Australia

    How do you save the file? Do you directly send it via mail with a button? (If the question is silly I'm sorry, because I have no lincenses... so I am completly unaware of the choices you have.)
    You need to be able to save a file Reader Extension licenses I think...
    Probably you should ask for the fake E-Mailbutton, to be able to send it to different people one after the other...
    Make an invisible Decimalfield.
    The preSave/preSubmit field javascript...:
    this.rawValue = this.rawValue + 1
    if (this.rawValue > 0)
    {Decimalfield1.access="readOnly";}
    if (this.rawValue > 1)
    {Decimalfield2.access = "readOnly"}
    will lock decimalfield1 after the first save/submit and decimalfield2 after the second. Normally that should do the job.
    PS: Another way to save the document and lock ALL fields, you don't have to buy additional licenses is print it as pdf.

  • Locking PDF before rendering

    Hi LiveCycle experts,
    Let me explain the situation first.
    I have fillable PDFs on LiveCycle Forms server.
    I was able to find a script block to lock all the fields before submit. The script is in preSubmit event in the submit button.
    The submit button is set to submit as XML and I need to save the entire PDF as binary.
    So, I converted the XML by rendering the original PDF with submitted XML data as form data and saved the binary and it was successful.
    However, since I'm rendering the original fillable PDF (I'm guessing there's no info about field properties when submitted as XML?), the PDF is still fillable when I retrieve the saved binary PDF again.
    Is there a way to achieve this?
    Thanks in advance.

    Does it mean that I don't have it?
    Probably.
    If so, is there a workaround?
    When you submit your XML, you could set a hidden field (let's say true). Then, OnInitialize of the form, check the hidden field, and if it's true, then run you code that protects the fields.
    Jasmin

  • Need help with VBA to control PDF fields

    Hi,
    I am attempting to use Excel VBA to control Acrobat but cannot find any documentation on the syntax to modify fields within the PDF form.
    I am able to commnicate with Acrobat using CreateObject ( "AcroExch.App") and point to the AVDocs, PDDocs, PDPage objects.
    However, I cannot find any methods that would allow me to change fields on the PDF.
    I am attempting something very similar to a mail merge where I
    Open a template PDF document
    Populate the LastName, First Name fields
    Then lock (make fields ReadOnly) the above so the User cannot modify them
    Then save the PDF with the prefixed Lastname & First Name.
    The template PDF form is created in LiveCycle Designer & is a fillable PDF. It can be filled in Adobe Reader.
    Am using Office 2007 Excel with the corresponding VBA - The VB code has a Reference to Adobe Acrobat 9.0 Type library.
    Thanks

    For an XFA document, try using the JSObject (http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/IAC_DevApp_OLE_Support.100.1 3.html) to control the form. I haven't tried this, but I think it's your best chance for the second and third things you list.

  • Post key from array into value upon submit

    Hello,
    I am new to ColdFusion and new to this forum, so be kind please.  I have a form the gets a select list from an array and I need the key of the array to post into another hidden field upon submission of the form.  I have some javaScript validation before the array, so maybe I could include something there, but I just can't figure it out.  This is what I have so far:
    <script language="javascript" type="text/javascript">
    <!--
    function OnButton1()
        var x=document.forms["Form1"]["name"].value
            if (x==null || x=="")
      alert("Name must be filled out");
      return false;
        var x=document.forms["Form1"]["email"].value
        var atpos=x.indexOf("@");
        var dotpos=x.lastIndexOf(".");
            if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
      alert("Not a valid e-mail address");
      return false;
      var x=document.forms["Form1"]["message"].value
            if (x==null || x=="")
      alert("Message must be filled out");
      return false;
            else
        document.Form1.action = "http://fp1.formmail.com/...."    // First target
        document.Form1.target = "iframe1";
        document.Form1.submit();        // Submit the page
        document.Form1.action = "contact_us_ty.cfm"    // Second target
        document.Form1.target = "contact_us_ty.cfm";
        document.Form1.submit();        // Submit the page
        return true;
    -->
    </script>
    <cfset subject[1] = "Choose Subject or Recipient" />
    <cfset subject[2] = "Alexis de Tocqueville Society" />
    <cfset subject[3] = "Campaign" />
    <cfset subject[4] = "Donations" />
    <cfset subject[5] = "Feedback" />
    <cfset subject[6] = "Getting Help" />
    <cfset subject[7] = "Planned Giving" />
    <cfset subject[8] = "UW Community Fund" />
    <html>
    <head></head>
    <body>
            <form name="Form1" action="contact_us_ty" method="post">
                <input type="hidden" name="_pid" value="0" />
                <input type="hidden" name="_fid" value="0" />
                <input type="hidden" name="recipient" value= "NEED THE KEY HERE" />
                <input type="hidden" name="subject" value= "Website Contact Us Email" />
                <table width="*" bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2">
                    <tr valign="middle">
                          <td align="right"><strong>Name: </strong></td>
                          <td><input type="text" name="name" size="30" value="" /></td>
                      </tr>
                    <tr valign="middle">
                          <td align="right"><strong>Email Address: </strong></td>
                          <td><input type="text" name="email" size="30" value="" /></td>
                      </tr>
                    <tr valign="middle">
                          <td align="right"><strong>Subject: </strong></td>
                          <td>
                            <select name="subject" id="subject"><cfloop array="#subject#" index="i"><cfoutput><option>#i#</option></cfoutput></cfloop>       </select>
                         </td>
                      </tr>
                    <tr valign="top">
                          <td align="right"><strong>Message: </strong></td>
                          <td><textarea cols="30" rows="8" name="message"></textarea></td>
                      </tr>
                    <tr valign="top">
                      <td> </td>
                      <td align="left"><input type="submit" name="button1" value="Submit" onclick="return OnButton1();" /></td>
                  </tr>
              </table>
           </form>
    <div style="visibility:hidden"><iframe name="iframe1" width="40" height="40"></iframe></div>
      </body>
    </html>
    Any help is greatly appreciated.
    Thanks,
    sLe2222

    Hi,
    1).  I'm assuming that you're naming the select, and passing the array value in the value field.
    2).  On the posting page, you should be able to obtain that value.
    3).  If you want to then move it into a hidden field, I'd make sure the hidden tag is inside a form tag group, and around that, I'd place <cfoutput> tags.  The value in the hidden tag that you'll want to set to should be inside of #...#.
    So page 1: (I'm using input, you should use select)
    <form action="two.cfm" method="get">
        <input name="bill" type="text" value="8">
         <input type="submit" value="go">
    </form>
    Page 2:
    <cfoutput>#bill#</cfoutput>
    <cfoutput>
    <form action="three.cfm" method="get">
        <input name="newbill" type="hidden" value="#bill#">
        <input type="submit" value="go">
    </form>
    </cfoutput>
    Page 3:
    <cfoutput>#newbill#</cfoutput>
    If you're going to be using this field many times, I'd sugges setting the value equal to a SESSION.variable.  That way you can eliminate all of the hidden tags, which can get really out of hand, and are VERY hard to debug.
    something like:  <cfset SESSION.newbill = bill />   Then anytime you need the value, just call the SESSION.newbill.  You would do this on page 2.
    Hope this helps,
    <cfwild />

  • Can I create a new document with a locked PDF file, add new pages, and lock it all again?

    I published a PDF document ten years ago and now want to add Creative Commons licensing language to the copyright page.  But I forgot the password!  I gather from the Forum that there is no way to recover the password.  However, I wonder if I can take the locked PDF file, create a new document (adding a new page for the licensing information), then lock the whole thing up again.  Will this work?  Thanks for your help!                                                                               

    To create an unprotected file you would need the password.

  • Preview issue working with a locked PDF file

    I am able to open and view a locked PDF file using the Preview application. Unfortunately, searching does not work within the locked PDF. Opening this locked PDF in Adobe reader does allow searching to work.
    Does anyone know why Preview cannot search a locked PDF even though it does appear to open successfully?

    Hi RichGory & welcome to the forums.
    Preview with Snow Leopard is very different.
    If searching is critical to your workflow, best to move to Acrobat.

  • HT2476 After updating to OS X Mountain Lion, there is a password locked pdf document in the Downloads Stack. Does anyone know what password is required to access this file?

    After updating to OS X Mountain Lion, there is a password locked pdf document in the Downloads Stack. Does anyone know what password is required to access this file?

    Hello, if your install disk is locked (I assume with FileVault) there is no way to change the password. If it weren't locked there were at least two solutions. As far as I know, the only solutions now are:
    - contact your dad
    - erase and reinstall the OS X clean
    Let us know.

  • How to save a locked PDF unlocked?

    I used to save locked PDF files unlocked on my MacBook.
    In Preview:
    Before I'd opened the PDF file, I used the option: 'save as'
    Then I filled in the password and used the option: rename/rewrite file.
    The option 'save as' is no longer in Lion.
    Any suggestions??

    Open the PDF in the PREVIEW app
    Enter the password to unlock the document/PDF
    Go to Print option
    In the bottom-left window of the PRINT screen, select PDF
    Select Save As Option
    Preview will pop-up a message saying that the file will be saved as a copy as the original document is/was password protected.
    Provide a path and PREVIEW will save a unlocked PDF

  • Hiding selection screen fields upon clicking a button

    Hi .
    I have a requirement like we need to hide and bring back the selection screen fields upon clicking a button( Expand and collapse in the same button) .
    in ABAP Query,we can maintain this,  for the variant we created.
    We need this functionality on the selection-screen presently.
    How to achieve this in the selection -screen?
    Valuale pointers are desparately needful.
    Regards,
    SSR.

    Hi,
    SELECTION SECREEN (P_) Parameter
    (S_) Select Options
    SELECTION-SCREEN : BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001,
    BEGIN OF LINE,
    COMMENT (26) C1 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATNR FOR MARA-MATNR MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE,
    BEGIN OF LINE,
    COMMENT (26) C2 MODIF ID XYZ.
    SELECT-OPTIONS : S_MATKL FOR MARA-MATKL MODIF ID XYZ NO-EXTENSION .
    SELECTION-SCREEN : END OF LINE.
    PARAMETERS : R_MATNR RADIOBUTTON GROUP RAD1 DEFAULT 'X'
    MODIF ID ABC USER-COMMAND MAT,
    R_MATKL RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK blk1.
    INITIALIZATION.
    C1 = 'Product Code'.
    c2 = 'Product Group'.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-NAME0(7) = 'S_MATNR' OR SCREEN-NAME0(7) = 'S_MATKL'.
    SCREEN-INPUT = '0'.
    SCREEN-INVISIBLE = '1'.
    ENDIF.
    CASE SCREEN-NAME+0(7).
    WHEN 'S_MATNR'.
    IF R_MATNR = 'X'.
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    WHEN 'S_MATKL'.
    IF R_MATKL = 'X'..
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    ENDIF.
    ENDCASE.
    IF R_MATNR = 'X'.
    IF SCREEN-NAME = 'C1'.
    C1 = 'Product code'.
    C2 = SPACE.
    ENDIF.
    ENDIF.
    IF R_MATKL = 'X'.
    IF SCREEN-NAME = 'C2'.
    C2 = 'Product Group'.
    C1 = SPACE.
    ENDIF.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Hope it helps.
    best regards,
    Nagaraj Kalbavi

Maybe you are looking for