Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Repeating Subform Bookmarks

grantefuller
Level 2
Level 2

Hello,

I have a dynamic form with a repeating Section (Subform) called Section 3. I've created a book mark to the beginning of this Section (1st Instance) by going into the XML Source tab and adding an "extra" tag as shown below. This works great and the bookmark always goes the beginning of the section regardless of how much the form expands and how many new Section 3s are added. However, I would like to dynamically add a bookmark each time the user adds an instance that would link to the beginning of that instance at runtime. Is this possible?

<extras name="bookmark">

<text name="name">Section 3 - Program 1</text>

<text name="color">0,0,0|R,G,B</text>

<text name="style">normal | italic | bold | bold-italic</text>

<text name="action">gotoPage | setFocus | runScript</text>

<text name="script">ANY_FORM_LEVEL_SCRIPT</text>

<!-- JavaScript only. No formcalc support --></extras>

Thank you.

1 Accepted Solution
grantefuller
Correct answer by
Level 2
Level 2

Thanks for the suggestion. What I ended up doing is creating a navigation page with it's own bookmark which contains a repeating subform with a "Go" button and the name of each Section in a read only Text Field. A new entry is added to this page each time the user creates a new Section. The "Go" button uses setFocus to take the user to each section - similar to a bookmark.

View solution in original post

4 Replies
radzmar
Level 10
Level 10

It's not possible. The PDF-Viewer creates the bookmarks only once while the form is opened, so there is no way to update the bookmarks later.

grantefuller
Level 2
Level 2

Thanks for the reply. Do you know of any other method where the user could navigate to these other than scrolling through. Each instance can be multiple pages and there can be 40 or more instances. That's the issue I'm facing.

_Bruce_Robertson
Level 10
Level 10

Hi,

There is a Doc.scroll() method, which allows you to position PDF viewer.

There is a sample, in this blog post. Adobe LiveCycle Designer Cookbooks by BR001: Using the Doc.scroll method in a LiveCycle Designer For...

grantefuller
Correct answer by
Level 2
Level 2

Thanks for the suggestion. What I ended up doing is creating a navigation page with it's own bookmark which contains a repeating subform with a "Go" button and the name of each Section in a read only Text Field. A new entry is added to this page each time the user creates a new Section. The "Go" button uses setFocus to take the user to each section - similar to a bookmark.

View solution in original post