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

HTML Page Navigation

jashachik
Level 2
Level 2

Good afternoon,

In my application I have a spinner that allows me to jump to a certain page and I am very successful with using xfa.host.currentPage = 2 for the PDF view.

My question is how can I replicate this logic in HTML?

Thank you,

james

4 Replies
TundraSteve
Level 8
Level 8

Could you use xfa.host.setFocus("fieldname"); to move to the appropriate "page" in html?

jashachik
Level 2
Level 2

Hi Steve, thank you for responding.

I tried using xfa.host.setFocus("xfa.form.form1.ConsentForm"); I tried using setFocus("ConsentForm") and setFocus("form1.ConsentForm").

Am I not using the correct syntax?

james

TundraSteve
Level 8
Level 8

I used

 

xfa.host.setFocus("TextField3");

I'm running ES4 SP1 and rendering HTML5

jashachik
Level 2
Level 2

I am using ES4 (not sure of service pack) and rendering in HTML. I'm using a dropdown to select which page and I display a pop up window so I know the selection works. I used xfa.host.setFocus("DecimalField1"); and  xfa.host.setFocus("NumbericField1"); with no success. Do I have to enable anything specific on the page? Or on the fields?