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

SOLVED

Dynamic page jump problem

Avatar

Level 4

Hi All

I have been using the following code in a button to jump to a certain section in my form

xfa.host.currrentPage=pagenumber

This is fine in a static form but how can I get the button to go to a particular section in a dynamic form?

Thanks

Darren

1 Accepted Solution

Avatar

Correct answer by
Level 10

In a dynamic form you will not know what the page number is so you cannot use that technique....but you can put the cursor in a field using xfa.host.setFocus("fieldName").

I have seen other people put a small 1pixel by 1pixel field on the top of the page (make the field have no borders and have the foreground and background color the same colour as the page) then set your focus to that field. The user will not know it is a field (because it is so small).

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

In a dynamic form you will not know what the page number is so you cannot use that technique....but you can put the cursor in a field using xfa.host.setFocus("fieldName").

I have seen other people put a small 1pixel by 1pixel field on the top of the page (make the field have no borders and have the foreground and background color the same colour as the page) then set your focus to that field. The user will not know it is a field (because it is so small).

Paul