These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Clicking a bookmark that is password protected

StevenD
Registered: Oct 6 2006
Posts: 368

I am working on a form that is a price sheet/order form. There are fields that contain item names and fields that have prices of the items in them. There are also quantity fields. The clients wants the item and price fields to be editable in order to change items and prices then make them read only before sending the form out to users. The quantity fields are for users to enter the quantities in.

Right now I have some buttons at the top of the form that are hidden from users. When the client wants to make changes to items and prices they use Acrobat Professional to get access to the button to make them visible. The buttons contain JavaScripts that set readOnly to false or true. The client then has to make the button hidden again.

I am wondering if there is a way to do the same thing with bookmarks that execute JavaScripts. I know that can be done but is it possible that when anyone clicks on a bookmark they must enter a password inorder to complete the execution of the rest of the script?

StevenD

My Product Information:
Acrobat Pro Extended 9.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Sure, check out the app.response method. This couldn't be considered terribly secure, but most Reader users wouldn't know how to defeat it.

Another option is to place some code in a folder-level JavaScript file that defines a certain variable or gets the user's log-in name. You could add code to the document that checks for the existence of this variable (or user) and if it exists and the value matches, enable the normally hidden buttons or bookmark. Not any more secure really, but it is more convenient.

George