I had a coding problem today, I was doing some validation in Javascript and then wanted to set the focus on the area. You can also use this code on the page load if you want to set a default field to start with
var control = Xrm.Page.ui.controls.get(“AttributeName”);
control.setFocus();



Ryan Corrigal
March 7, 2012
If you are trying to focus a SubGrid, please see my article here: http://prodynamicscrm.com/blog/using-javascript-set-focus-subgrid-control
Ryan Corrigal
March 13, 2012
If you are trying to focus a SubGrid with JavaScript, please see the article I wrote: http://prodynamicscrm.com/articles/using-javascript-set-focus-subgrid-control
hema
October 29, 2012
Was this sorted ??
Hosk
October 29, 2012
was what sorted