5 Replies Latest reply on Sep 2, 2009 8:19 AM by gkaiseril

    Folder level Javascript disabled for a user

    Anthony_Clarke

      Hi Gurus,

      I created a folder level JS, it works fine on all computer here exept on one. On one computer, the javascript's in the pdf are working but the function called in the folder level script is not executed. (when it works on all the others). The script is in the right folder and the pdf works on other computers. Do I have to enable something in the preferences of acrobat reader 9.1. I checked the settings for JS in edit/preference and they are the same as for the others.

      Thanks for your help guys.

        • 1. Re: Folder level Javascript disabled for a user
          try67 MVP & Adobe Community Professional

          You should try to create a simple script with just an app.alert("It works!") function to make sure you're using the right folder.

          If you see the alert when you open Reader, then the problem is with your script. If you don't the problem is with Acrobat's settings or the folder.

          • 2. Re: Folder level Javascript disabled for a user
            Anthony_Clarke Level 1

            Thanks for your reply,

            The problem is with Adobe Reader has the script works on all the other computers. There must be somewhere an option to allow folder level JS but I don't know where it is. The JS in the pdf itself are working so the problem is only with folder level JS and on this pc.

            • 3. Re: Folder level Javascript disabled for a user
              try67 MVP & Adobe Community Professional

              That's why I recommended to make a test script, to make sure folder-level

              scripts are working on this machine.

              There's no setting to specifically allow folder-level scripts. If they are

              properly placed and JS is enabled then they will launch.

              However, if your script inserts menu items you should make sure that this

              option is checked under Preferences-JavaScript, the second check-box from

              the top. You should probably check all 4 boxes, just in case.

              • 4. Re: Folder level Javascript disabled for a user
                Anthony_Clarke Level 1

                All the script does it to generate a mail with the mailto function. The Preferences-JavaScript are set as on my pc. So it must be something else. If I email the pdf to my pc, it works, so the pdf form is fine, the script is the same as on my pc.

                 

                --- En date de : Mer 2.9.09, try67 <forums@adobe.com> a écrit :

                 

                De: try67 <forums@adobe.com>

                Objet: Folder level Javascript disabled for a user

                À: "antony clark" <clarkeanthony@yahoo.fr>

                Date: Mercredi 2 Septembre 2009, 13h35

                That's why I recommended to make a

                test script, to make sure folder-level

                scripts are working on this machine.

                There's no setting to specifically allow folder-level

                scripts. If they are

                properly placed and JS is enabled then they will launch.

                However, if your script inserts menu items you should make

                sure that this

                option is checked under Preferences-JavaScript, the second

                check-box from

                the top. You should probably check all 4 boxes, just in

                case.

                >

                • 5. Re: Folder level Javascript disabled for a user
                  gkaiseril MVP & Adobe Community Professional

                  Have you looked up the 'mailDoc()' and 'mailForm()' methods in the Acrobat JS API Reference?

                   

                  Both methods have an "F" in the Qick Bar Box for Reader. This "F" indidcates a security restriction applies to these methods in Reader. Going to the pages for the description of the Quick Bar show that the "F" restriction indicates that "Form Rights" need to be applied to the form before Reader can use these functions.