SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
<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

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

Your Answer


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