Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Adding Bookmarks using Javascript

Avatar

Former Community Member
Hi,



Does anyone have a definative document as to how to add bookmarks and switch on the bookmark pane using LIfecycle designer 7.0?



I am using Designer 7.0 to generate large interactive forms for use within the social care arena.



Some of the forms we need are quite large (over 40 pages) and we wantto use bookmarks as an aide to navigation around the document.



We have tried to using something similar to the following:



var myDoc = event.target;

myDoc.bookmarkRoot.createChild("MyForm", 0);



on various events to generate a bookmark with no success. We get varying errors (depending upon the event we attach this javascript to), such as



Error: Null is not an object (on the document initialise event), or

NotAllowedError: Security settings prevent access to this property or method (on the click event of a button).



Any help would be greatly appreciated!
1 Reply

Avatar

Former Community Member
Trying to add bookmarks dynamically is, unfortunately, a waste of time. It'll only work in Acrobat, not in Reader! I tried this myself. Eventually I used an arry of buttons.