Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

HTML Page Navigation

Avatar

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

Avatar

Level 8

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

Avatar

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

Avatar

Level 8

I used

 

xfa.host.setFocus("TextField3");

I'm running ES4 SP1 and rendering HTML5

Avatar

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?