Expand my Community achievements bar.

issue with setFocus function

Avatar

Level 4

Good day everyone,

Another quick question for you today and it as to do with giving focus to a specific section of a page using the SetFocus function.

Right now i have a button with the following code in it:

 

xfa.host.setFocus("form1.Guidlines.Q3.Q3_button");

Guidline is a page with 3 subforms named:

-> Q1_button

Q1

-> Q2_button

Q2

-> Q3_button

Q3

The first one is about a paragrah long the second takes all of the center of the page and the last one, is at the bottom of the page. And all 3 sections start with a return button.

Right now, if i activate the above code via a button, i will get to the starting position of that return button, but the way my text is setup on my page, i can only see the first 3 rows of text, the rest of the paragraph, i need to scroll down a bit to see it in its totalilty.

Is there a way to program my button that as the setFocus to also scrolldown just a bit to see the entire paragraph?

Ive tried Currentpage=5 and then a pageDown(), but that dont seam to work. Maybe im doing this wrong or there's just a better way to acomplish this.

Thank you for you hep yet again

Patrick

1 Reply