Highlighted

Return to top of the form

Avatar

Avatar

Thomas_McConnac

Avatar

Thomas_McConnac

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

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
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

Avatar

Avatar

Thomas_McConnac

Avatar

Thomas_McConnac

Thomas_McConnac

18-11-2008

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



Thank you!