Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When users are filling out a web enabled InfoPath 2010 form on my company's SharePoint site there are times that the form will automatically scroll to the top of the page. The user checks a box and suddenly the form is at the top of the page, completely away from the area they were filling out.

Why is this? I have rules and XPath on the form; there are many repeating sections. What is a common cause for form scrolling without user input?

Is the form somehow putting the text cursor in a different location on the page?

This scrolling behavior does not occur when using InfoPath 2010 on the client system.

share|improve this question

2 Answers 2

I had this issue as well on one of my forms, and I found setting the Tab Indexes on each control fixed the scrolling.

share|improve this answer
    
I agree that you should explicitly define Tab index: (< Advanced < Control properties) order since all indexes are set on creation to 0 –  Gennady Vanin Геннадий Ванин Oct 26 '12 at 5:36
    
I think this is the answer; @Chris, did this work for you? –  BGM Nov 1 '12 at 14:26
    
Apologies for the long response time. This mitigated the issue but did not resolve it. Real pain... It appears that this issue is native only to IE7 and IE8. Our corporate standard happens to be IE7 at the moment (ugh) and so I don't know if there is any way around it. Would setting the tab indices to -1 resolve the issue? –  Shrout1 Nov 2 '12 at 18:27
    
One additional thing; this appears to be caused by an incorrect setting in the "MaintainScrollPositionOnPostback" setting on the InfoPath web enabled form. Is there any way to change this? –  Shrout1 Nov 2 '12 at 18:29

If setting the indexes does not work, you can try to set hidden textbox and in codebehind Loading Event (in Infopath Designer on Ribbon click the button with such title under Developer tab) handler use SelectNode or SelectText to jump to this hidden textbox control on form loading.

share|improve this answer
    
Gennady, thanks - unfortunately I cannot use any custom code on the form. It's strictly forbidden on my domain :P Wish I could explore your suggestion! –  Shrout1 Nov 9 '12 at 15:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.