Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

named destinations

Avatar

Level 3

I am trying to declare named destinations inside my PDF form and use a

comboBox to allow the user to jump directly to the desired section.

This seems like it should be simple -

But I am having some , unexpected, difficulty figuring out how to do this .

I have a combo Box with my pre-defined destinations listed and that's working fine -

What i do not know and having difficulty finding out is :

1. How do I create named destinations inside the PDF ?? and

2. how do I get the Form to move to the appropriate destination ??

As always, any help is appreciated.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can use the setFocus() function to jump to a desired object in your form.

This script will set the focus onto a textfield named "Textfield22" for example.

xfa.host.setFocus(xfa.resolveNode("Form1.#subform.Textfield22"))

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

You can use the setFocus() function to jump to a desired object in your form.

This script will set the focus onto a textfield named "Textfield22" for example.

xfa.host.setFocus(xfa.resolveNode("Form1.#subform.Textfield22"))

Avatar

Level 3

I will create some new Header level text fields indicating the start of each Section and I have a script that

will set the focus to the appropriate section based on the selection from the comboBox -

NICE .

Thanks a lot