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

Combo Box link

crash0430
Registered: Jan 24 2008
Posts: 18
Answered

I am trying to make a manual. In the manual I need a combo box on every page with a link to every chapter heading for easy searching and scrolling. I am able to make the combo box, but I am unable to make the links work, and I am at a loss. I am currently using the trial version of Adobe 8 prfessional, but I also have life cycle design and adobe 7 if needed.
Any help will be nice.

Thank you

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
A combo box or list can certainly be made to work using JavaScript for the "On blur" action to determine where to go based on the export value of the combo box. You can set the "Option" to the caption for each chapter and the export value to zero based page number (page 1 = 0) for the chapter. Your "On Blur" JavaScript action is then "this.pageNum = event.value;".

If all of your users have version 6 or above of Acrobat or Reader, you can use the "app.popUpMenuEx()" method

George Kaiser

crash0430
Registered: Jan 24 2008
Posts: 18
unfortunately I have no idea what you just told me to do, as I am very new to this. If it is possible to get a step by step that would be extremely helpful. also, everyone is using at least adobe acrobat 7 so if the other method is either easier or better please do tell.

Thanks
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You have a combo box field, highlight and right mouse click and select "properties".
Click the "Options" tag and enter the following:
Option Export Comment
nothing no selection made
Chapter 1 number displayed page number for chapter 1 less 1
Chapter 2 number displayed page number for chapter 2 less 1

Move the cursor up to the blank line, the default dispaly

Select the "Actions" tab anc click on the "On Blur" in the "When this happens:".
Click on the "Add" button.
Select "JavaScript" for the type option.
Click "Edit"
Enter the following code:

if (event.value != "") {
this.pageNum = Number(event.value);
}

Click as needed to close the field properties window.
Now the test the combo box.

George Kaiser