This blog aims to provide some technical tips about Microsoft Dynamics CRM - D. MANJALY
Hi, i´m usign this section of code on OnChange event in my customize field, but it does not work, do you have ideas? i tried different lines of code but none of them work for me.thanks in advanced!
Hi Sergio, For onchange event its a bit different. Pls try the following.Pass the context from the onchange event of the field and thenXrm.Page.getControl(context.getEventSource().getName()).SetFocus(true);
Thanks Its working
Use below code its working.document.getElementById("crmForm").setAttribute("setinitialfocus", false);Xrm.Page.getControl("TheFieldYouReallyWantToFocus").setFocus(true);
did any one know how to set focus in a lookup field