Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

scrolling up to page

Avatar

Former Community Member
I have a buttom that make me jumping to next page,

but it jumps to the relational place that was the button,if it was in the middle the next page screen is showed at the middle, so i want to add a script that scroll me up the page.

I dont fint anything in the API.

please help me
1 Reply

Avatar

Former Community Member
If I understand correctly, you want to reset the cursor focus to the first field on the next page. Try putting this script into the click event:<br /><br />xfa.host.setFocus("<name of form>.<name of subform>.<name of field>");<br /><br />for example:<br /><br />xfa.host.setFocus("form1[0].subform[1].TextField2");<br /><br />This will place the cursor into whichever field you specify.