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

Bookmarks?

R_Boyd
Registered: Nov 1 2007
Posts: 151

Is it possible to use bookmarks to specific sections of a form in LiveCycle Designer 8.0?

I have tried creating a bookmark by modifying the go to page script used elsewhere in the form;

var bookMark = event.target;
bookMark = name_of_page.name_of_text_field;

I can't find anything in the online help and a quick google has just produced javscripts for creating bookmarks in a user browser rather than a form.

If this is possible will people using Reader 7 be able to make use of this?

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Bookmarks are very tricky when created in LiveCycle because they're designed to go to a specific page whereas LiveCycle forms don't follow a page-based model and are designed to expand/collapse based on supplied data. Also, you need to Reader-enable a PDF for Commenting to enable bookmarks created in LiveCycle -- which will then create a static version of the PDF. You may be better off using a link to a specific form field. Here is an example Javascript:
var myDoc1 = event.target myDoc1.bookmarkRoot.createChild("LeveransAdress", "this.getField(\"form1[0].#subform[0].TextField1[4]\").setFocus()");

This example was taken from the following technical note:
http://kb.adobe.com/selfservice/viewContent.do?externalId=333000&sliceId=1

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

R_Boyd
Registered: Nov 1 2007
Posts: 151
var myDoc1 = event.target myDoc1.bookmarkRoot.createChild("LeveransAdress", "this.getField(\"form1[0].#subform[0].TextField1[4]\").setFocus()");

Thanks for this. I have modified your code to fit my heirarchy but it still isn't working.

var partOne = event.target partOne.bookmarkRoot.createChild("continuationPage1", "this.getField(\"form1[0].part_five_page[0].part1bookmark[0]\").setFocus()");

Screenshot of the set up available on flickr.

[url]http://www.flickr.com/photos/22700596@N07/2184602697/[/url]
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Did you put this on the form:ready event (javascript)?

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

R_Boyd
Registered: Nov 1 2007
Posts: 151
Thanks for your reply.

I have now and it does create a bookmark and as a clickable event it takes the user to the relevant page. Unfortunately the bookmark is visible but nothing happens when you click on it.
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Does it work correctly if you Reader-enable the form?

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.