Tag Archives: Setfocus

Microsoft Dynamics CRM 2011 – Problem with setFocus and Lookup Fields

I tried to set the focus on the “from”-Field in the onload event of a phone call activity. Unfortunatley the focus jumps alway to “subject”. This might be a bug, and the only wokaround I found so far is to set a little delay. This is no a very nice solution but better than nothing.

btw: this bug is gone in crm 2013!


function onLoadForm() {

function focusFrom() {
  var _Control = Xrm.Page.ui.controls.get("from");

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>