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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Return to top of the form

Avatar

Level 4
Hi,



I'm looking for a way to go back to the top of the page. After hiding a subform that goes on to 2 pages and making a new subform visible, the screen only goes back up to the bottom of the new subform.



Any idea if/how this is possible?



Many thanks,



Tom
2 Replies

Avatar

Level 10
Can you simply put the cursor in a field at the top of the page that you want?



Use the command: xfa.host.setFocus("fieldname");



If there is no field there you can put a small 1 pixel by 1 pixel field and change the back ground to match the form background, remove borders and do not have a caption so that the users do not even know it is there. It acts like a tab stop.

Avatar

Level 4
Ah, yes that works now. Was trying to do it to a field that was invisible and it didn't like it.



Thank you!