function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Damien_Damien_ 

Visualforce Page scrolling down from repeat/table combination, How to fix?

When my visualforce page loads, it scrolls me down to the part of the page where I use the <apex:repeat> tag to dynamically build a table.  Does anyone know how to stop this from happening?

 

             <apex:repeat value="{!filters}" var="curr" rendered="{!isLoaded}">
                <tr>
                  <td>
                    <apex:selectList value="{!curr.filterField}" size="1">
                      <apex:selectOptions value="{!items}" />
                    </apex:selectList>
                  </td>
                  <td>
                    <apex:selectList value="{!curr.filterType}" size="1">
                      <apex:selectOptions value="{!filterTypes}" />
                    </apex:selectList>
                  </td>
                  <td><apex:inputText value="{!curr.filterString}" /></td>
                </tr>
              </apex:repeat>

Damien_Damien_

After playing around a little bit.  I discovered my issue is from the input fields that are dynamically built from the repeat table.  Which this pretty much doesn't help much, but it slightly changes what my problem is.

cto9dxecto9dxe

I am having the same issue with the page scrolling to input fields, have you found a clean solution to this?

 

It seems to be happening in some standard salesforce pages as well so I'm wondering if this was overlooked possibly.