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

I have an application page with a bunch of asp textbox controls and then a sharepoint RadioButtonChoiceField control. When the page loads it will always set focus to the RadioButtonChoiceField is there anyway to make it focus on my 1st text box

I've tried page.setfocus(textbox.clientID), onLoad but it still goes to the radiobutton.

share|improve this question

2 Answers 2

jquery got a nice tools to make this kind of stuff... watch this link dude.


share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Hugh Wood Nov 27 '12 at 21:07
And the info on the page is in Spanish. –  Carel Dec 5 '12 at 8:26
<SCRIPT language=Javascript>     
    function WebForm_AutoFocus(focusId) {
       // alert(focusId);     

Added this to the page and it doesn't scroll down to the radio button, but you can no longer set focus either.

share|improve this answer

Your Answer


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