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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How can I select from drop-down list and jumping to selected subform?

harryFF14
Level 1
Level 1

I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?

drop-down list...A (jump to subform1)

                         B (jump to subform2)

                         C (jump to subform3)

subform1

     .

     .

     .

subform2

     .

     .    

     .

subform3

     .

     .

     .

....end of form

3 Replies
radzmar
Level 10
Level 10

Hi,

you cannot set focus on a subform but on a field, as only interactive objects can be focussed.

From a dropdowns exit event the script will look this way:

switch (this.rawValue) {

          case "A" : xfa.host.setFocus("form1.page2.field1"); break;

          case "B" : xfa.host.setFocus("form1.page2.field1"); break;

}

harryFF14
Level 1
Level 1

Thanks radzmar, followed your instructions, it works beautifully. thanks

again.