10 Replies Latest reply on Jan 15, 2018 11:12 AM by creditunion123

    Document level scripts

    creditunion123 Level 1

      I have multiple forms with document level scrips.  I need to find a way to have the document fully open PRIOR to the cripts running.  Is there a way to do this or do I need to copy all my scripts in the Page Open area

        • 1. Re: Document level scripts
          try67 MVP & Adobe Community Professional

          Why do you need to do that?

          • 2. Re: Document level scripts
            creditunion123 Level 1

            We switched banking systems,  none of the forms are integrated so staff have to flip back and forth.  My forms have pop ups asking them to fill in everything so they don't forget anything. But they say that sometimes it gets "stuck" if the form has not fully rendered


            the way they get the form is a link from the banking system that opens a new web page. From there they click a link from that page to open the PDF.

            • 3. Re: Document level scripts
              Test Screen Name Most Valuable Participant

              Indeed document level scripts should not interact with the user or document, only make definitions. Page level is a possibility but beware that page1 might not display first.

              • 4. Re: Document level scripts
                creditunion123 Level 1

                Is there a different way to do what I am looking at doing other than document level javascripts?  Basically I am trying to guide staff to fill out the correct information they need on each form with pop up boxes. It then will fill out the form for them

                • 5. Re: Document level scripts
                  Joel_Geraci Adobe Community Professional

                  You could use an AcroDialog to capture the data and then populate the form. The dialog would be stored in the document level script but called from the form.

                  • 6. Re: Document level scripts
                    creditunion123 Level 1

                    Thanks. I will have to look that up. I know nothing of AcroDialogs

                    • 7. Re: Document level scripts
                      gkaiseril MVP & Adobe Community Professional

                      Have you clearly defined your problem based on the forms you are trying to use?


                      Can you use Acrobat's form tools to edit the PDF? If not then you cannot add any scripts to the PDF forms to do any processing from within the form.


                      Do the data fields that are common between the forms have the exact same form field names? If not then you will need to do some type of mapping. If so, one can export the form data to an FDF file from one file and then read that file into the other form. this can be done without adding any script to the PDF by using Acrobat or creating a folder level script to Export and Import the FDF file. If you are using Reader then the forms will need to have form rights applied to the PDF.


                      As far as I have seen all document script code is processed before a PDF is opened.

                      • 8. Re: Document level scripts
                        creditunion123 Level 1

                        Yes, I can access Tools that is how I have put all the document javascripts in and they do work - I was just looking for a more elegant way to do them - for the staff


                        I tried to add the pdf here as example but could not find a way to attach it


                        I will continue the way I have as it does work (and look for additional way when I have a bit more time to modify)  thanks all

                        • 9. Re: Document level scripts
                          DimitriM Level 3

                          Hi creditunion123,


                          AcroDialogs is a product my company developed for creating custom dialog boxes for Acrobat automation tools and PDF forms.  We have an example of a Form Filling Wizard on this page so you can see how custom dialogs can be used to help users fill out forms-

                          Windjack Solutions, Inc. - How To Articles


                          We recently re-introduced AcroDialogs as an online tool that is available at our membership web site www.pdfscripting.com since it is no longer available as an Acrobat plug-in.


                          Hope this helps,




                          • 10. Re: Document level scripts
                            creditunion123 Level 1

                            Thank you.  I actually JUST renewed my subscription this morning as I saw you reintroduced them.  Have to learn how to use the tool to have multiple items in one pop up box

                            (checkboxes on one side/ other items next to it)


                            that may take me a bit  - I could not get dialog items in the areas I wanted - but I will watch the videos


                            PS I used your site all the time while learning - copying and pasting code


                            Thank you so much for it!