Skip navigation

Saving Fillable Form as non-fillable PDF

Apr 8, 2008 10:41 AM

  Latest reply: bijoy, Mar 23, 2014 10:20 AM
Replies 1 ... 3 4 5 6 7 ... 10 Previous Next
  • Currently Being Moderated
    Mar 12, 2010 12:53 PM   in reply to socaljenlb

    You need to open the form in LiveCycle Designer and then Windows -> Script Editor to get to the Scripting in the form.

     

    Thanks

    Srini

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 18, 2010 1:18 PM   in reply to Srini Dhulipalla

    Thank you Srini, I will give that a try.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 25, 2010 2:06 PM   in reply to socaljenlb

    I would love this script!

     

    Please send to clay@gilford.com

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 26, 2010 4:58 AM   in reply to DirtyCheese

    I posted it on this thread

     

    paul

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2010 9:56 AM   in reply to Srini Dhulipalla

    I would really like to get a copy of this script and directions on

    where to place it in the XML language.

     

    Ultimately I would like the fillable pdf form I created to be locked after a person fills it in and emails it back using the submit button, so that I receive a pdf with no fillable form fields.

     

    Thank you

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2010 4:43 PM   in reply to pguerett

    Would you mind sending me that script aswell to wilenco@gmail.com that would be appreciated

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2010 6:04 AM   in reply to ron678989

    Its posted in this message thread 3 messages up from this one.

     

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    May 4, 2010 11:23 AM   in reply to pguerett

    Hello Paul, would you mind emailing me the script as well.

    acespiritu@gmail.com

     

    I appreciate your assistance.

     

    Thank you

     
    |
    Mark as:
  • Currently Being Moderated
    May 14, 2010 1:19 PM   in reply to AdrianEspiritu

    Hello Paul,

     

    I would also like you to email me the script: jkeyzerandre@gmail.com

     

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    May 17, 2010 6:46 AM   in reply to keyzerandrej

    Its already attached in this thread!

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2010 10:18 AM   in reply to pguerett

    Hi Paul,

     

    I have just sent you a PM with a link to my form, and am hoping that you may be able to assist me?

     

    I really need to use this lockdown all fields, but am getting strange results...

     

    I made a test form to try this on, and it all worked as it should.

     

    I then tried to add it, to the "live" form that I am working on, but it only locked the first page.

    I then added extra lines to the click even of the button, specifying the other pages in my form.

    This appeared to work. You can populate the form and then click the button to lock all the fields.

    The fields all lock. If you then save the form, and re-open it, all the fields are editable again, and are not read only?

     

    Any help greatly appreciated.

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2010 12:00 PM   in reply to bpx_hmemcpy

    I did not recieve anything .....you woudl be better off emailing it to LiveCycle8@gmail.com

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2010 12:44 PM   in reply to pguerett

    mail sent.

     

    Many Thanks for your help!

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2010 11:28 AM   in reply to pguerett

    Hi Paul,

    I read about you sharing the script for saving fillable form as a non-fillable pdf. Could you also send me the script? mine.tang@gmail.com

    Do I need the LiveCycle Designer ES to create this script or will LiveCycle Designer 8 work?

     

    Thank-you.

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2010 11:37 AM   in reply to pguerett

    Hi Paul,

     

    I'm new to this forum.  And i've read the entire thread.  I also need help on our Department's application form to be locked.  Our form includes a date that automatically generates the current date and time everytime it is opened.  My problem is that when the form is submitted to me through email, when I open it, it will still generate the current time I recieve it, and not when it was submitted.  Does the script works on locking with that as well?

     

    And also, i'm having problems viewing the script.  Where can I view it?  And where should I copy paste it?  I'm using Adobe Acrobat 9 Pro and I also have the Adobe LiveCycle Designer 8.2.

     

    I hope you can help me with this.  I'm such a newb but I really need to get this done. And I'm willing to learn anything.

     

    Thanks!

     

     

    P.S. I was going to attach the document so you can take a look at it but i didn't see an option to attach a file.

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2010 11:40 AM   in reply to M_Tang

    Any recent version of designer will work ....the file is in this thread about 10 messages up from this one.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2010 11:45 AM   in reply to fiel2003

    fiel2003,

     

    There is nothig attached. The locking of the fields that is in that script only stops the users from interacting with the field. Any scritp scan still access the fields. I think that you will want to wrap your code around a test to see if th efield is populated already. If it is then you know that the date was already set. Something like this:

     

    if (this.rawValue == null) {

         execute your code to populate the field

    }

     

    The script is in a scripting object called myScriptObject in the sample that is provided. There is a function in that scripting object called LockAllFields that has the code that you are after.

     

    paul

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2010 7:20 AM   in reply to pguerett

    If I need to exclude a button from locking, where abouts would I put the following code: MailButton.access = "open";

     

     

    function LockAllFields(myParentObject){

     

        var allChildElements;
        var intNumElements;
        var currentElement;
        var j;
       
        //Get all the child nodes of the parent element
        allChildElements = myParentObject.nodes;

     

        //Total number of element in the object
        intNumElements = allChildElements.length;
       
        //Loop through all the child elements
        for(j=0; j< intNumElements;j++){
            currentElement = allChildElements.item(j);
            //If the element is another subform we'll recusively call the function again
            if(allChildElements.item(j).className == "subform"){
                LockAllFields(currentElement);
            }
            //If the objects are fields and they are set to mandatory (validate.nullTest) then we will set the border.fill.color - dependant on object type
            else if(currentElement.className == "field"){
           
                currentElement.access = "readOnly";
               
            }
                //Check for exclusion groups - Radio Buttons
                else if(currentElement.className == "exclGroup"){
                for(k=0; k< currentElement.nodes.length;k++){
                    if(currentElement.nodes.item(k).className == "field"){
                        //set the color for the radio buttons individually
                        currentElement.access = "readOnly";
                    }
               
                }
            }   
        }
    }//end function

     

    Thanks!

     

    **Update: I have now worked this out. Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 14, 2010 8:21 AM   in reply to pguerett

    Hello Paul,

     

    I have been unable to set up the script to lock subforms individually. I'm sending you a test file in a private message, in the hope that you can give me a sample script for the two subforms on the first page of the form.

    Thanks - I have been able to figure this out!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 1, 2010 5:49 AM   in reply to bpx_hmemcpy

    Hi - I have the same requirement as you, and you say you figured this out. Where did you put the code to keep certain buttons open - mine are SaveAs, Print, Email and Reset. Your help would be much appreciated.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 1, 2010 6:33 AM   in reply to (Tricia_B)
    Hi Paul - I have read through the posts, and have downloaded and looked at the Lock All Fields_Purchase Order pdf - but I cannot for the life of me figure out where to put the script, or how to configure the script to not lock the four buttons at the top (Save As, Email, Print and Reset). I am stuck!!
    What I did was: copy your script for the variable myScriptObject, opened File-Properties-Variable and created a new variable called myScriptObject and pasted the script in. Then I created a button (bottom of form), and put in the Click event script you had for your button - saved the whole thing - and nothing happens. I am working on Livecycle Designer ES2 9.0. Your help greatly appreciated.
    I sent the form itself to your gmail address.
     
    |
    Mark as:
  • Currently Being Moderated
    Calculating status...
    Aug 8, 2010 1:57 AM   in reply to pguerett

    Paul, if you can send the script i think it will fix my problems.  Thanks!

    effendrew-misc@yahoo.com

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2010 5:03 AM   in reply to effen_drew

    If you scroll up in this discussion you will see that it has already been posted  (Feb 11). You should be able to downlaod it from that post.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2010 6:04 AM   in reply to pguerett

    Paul:

     

    I'm interested in the script you're proposing. Can you send it please?

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2010 6:13 AM   in reply to mmgiath

    Is it not download-able in the thread I mentioned?

     

    paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2010 12:59 AM   in reply to pguerett

    thanks!  it looks like i need LiveCycle Designer.  is this correct?  Is there a MAC Version?

     

    Thanks

    Drew

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2010 4:45 AM   in reply to effen_drew

    No there is no Mac version of Designer ....Windows only. Designer is used to create/edit the form. So you only need Designer if you want to author any part of the form.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2010 8:35 AM   in reply to pguerett

    Paul i was just told by Adobe that Live Cycle Designer is included in Acrobat 9 Pro for Windows.... is this correct?

     

    Thanks,

    Drew

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2010 8:44 AM   in reply to effen_drew

    That is correct.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2010 8:48 AM   in reply to westlakejager

    ok Thanks for that info, i am on hold with Adobe Customer Care now, does anyone know how easy it is to switch my platform license to Windows?  just did the upgrade to Pro 9 because i was told it would work on the mac, never was told about the feature differences between the two platforms.

     

    Thanks,

    Drew

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2010 8:28 AM   in reply to pguerett

    Hi Paul,

     

    What is the script to control the state of the form (as per your second point below)?

    I'm trying to do the same as Darell. Make the form not fillable once it's filled in, locked and saved.

     

    Thanks for your help.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2010 10:38 AM   in reply to M_Tang

    Not sure I follow ...and who is Darell?

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2010 10:46 AM   in reply to pguerett

    Sorry, I would like to know how to go about controlling the state of the form once it's filled out, locked and saved, so when you open it again in Adobe it is not fillable.

     

    On a previous thread Darrell asked:

     

    Paul,

    I am sorry, but I probably have completely misinterpreted what is going on here. I wish to have a fillable and savable form which I can fill out, but then save it as a static (nonfillable) PDF file. I know I can do this by printing the filled form to the Adobe PDF printer driver, but here is how I tried to use your example:

     

    I used Acrobat Pro to activate the extended Reader features.

         1. I filled out the form.

         2. I locked the fields.

         3. I saved the form.

    When I reopened the form in Reader, the data entered above was there, but the form was still fillable. At this point, I would want the form to be unalterable. Where am I going wrong?   Thanks,   Darrell

     

    Then your response was:

     

    My script will simply lock all fields when it is executed. What target version are you setting this for. There is a parameter in the Form Properties that controls whether to save the state of the form when it is saved. Under File/Form Properties/Defaults make sure the "Preserve scripting changes to form when saved" is set to Automatic. That woudl only work in version 8 and better.

     

    OR

     

    You could control the state of the form yourself. You could have it set up to run my script when the form is opened. If there is data in a field then lock all fields on initialization otherwise leave it all open.

     

    -


    Original Message

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2010 10:51 AM   in reply to M_Tang

    OK Now I understand .....

     

    When a form is designed if the field was unlocked and you programmatically changed the field to locked then when the form re-loads it will be unlocked because the form does not know what your code did to it. This is called changing the initial state of the form. So you can write code that will maintain that state or there is a parameter on the File/Form Properties/Deafaults menu that can do it for you. Make sure that you have the checkbox ticked that says "Preserve scripting changes to form when saved" set to Automatically.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2010 11:05 AM   in reply to pguerett

    I believe you mentioned this will only work with LiveCycle 8 and up ; I have 7? Is there another way around it?

     

    Thanks,

    Mindy

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2010 11:34 AM   in reply to M_Tang

    Nope ...you have no choice but to code this into your form. So you will have to have some means of knowing that the form was previously locked. I suggest that you have a hidden field and use it as a flag. You can set a vvalue in that field before you lock all of the fields and check its status when you load the form again. If the flag is set then you will have to run the lock all fields code again. If it is not set then do nothing.

     

    Does that make sense?

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 18, 2010 8:20 AM   in reply to pguerett

    Nope... but I managed to get a hold of LiveCycle 8 and did the settings there. It's working the way I wanted now.

    Thank you very much for your prompt response and assistance.

     

    Mindy

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2010 8:06 AM   in reply to M_Tang

    This is exactly what we needs as well. Once my customer service fills out our quote form, we can save it and then send it to our customers and they can not fill it out.

     

    Can you provide me with a copy of your lockdown script? bryan @ medsupplier dot com.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2010 10:04 AM   in reply to sternyy

    It is in this thread already ...posted by me on Feb 11, 2008

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 27, 2010 3:10 AM   in reply to pguerett

    Hi Paul,

     

    Can i have the script as well?

     

    sekula.82@gmail.com

     

    Thanks

     
    |
    Mark as:
1 ... 3 4 5 6 7 ... 10 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (2)