Expand my Community achievements bar.

SOLVED

Jump to Subform

Avatar

Level 1

Is it possible to have a button jump to a particular subform without using setFocus?

I would like something like

xfa.host.currentPage = 47;

but without an actual page number reference since the pages/subforms may change position.

For example:

xfa.host.currentPage = "ClientInfo_sf";

SetFocus works, but (I believe) it requires jumping to a particular field and I would rather not do that.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I have an example here: http://assure.ly/h4sIcQ.

Don't worry about popup menu, the main thing to have a look at is how I use a hidden field that has the current page number. The script then references the .rawValue of that hidden field and sets the current page to that value - 1 (pages are zero based).

Hope that helps,

Niall

Assure Dynamics

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

I have an example here: http://assure.ly/h4sIcQ.

Don't worry about popup menu, the main thing to have a look at is how I use a hidden field that has the current page number. The script then references the .rawValue of that hidden field and sets the current page to that value - 1 (pages are zero based).

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 1

Sorry for the delay in getting back--I was busy last week.

I have not disected the code, but it appears to do the trick.

Thank you!