Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

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

Former Community Member
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!