You need to sign in to do that
Don't have an account?
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>
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.
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.