Highlighted

Return to top of the form

Thomas_McConnac

18-11-2008

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

Replies

Highlighted

pguerett

18-11-2008

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.
Highlighted