I try to add an event on a field in my CRM online control
There is my code to addIt ... but nothing work. It's there a way to do it ?
This code is execute on my formLoad
var issueKey = Xrm.Page.getAttribute("myControl").getValue();
if (issueKey != "") {
Xrm.Page.getControl("myControl").onClick = function () {
window.open(BaseUrl, "_blank");
};
}
What you're asking to do is unsupported (https://msdn.microsoft.com/en-us/library/gg334481.aspx). And calling Xrm.Page.getControl("myControl")
returns back an XRM control, not a DOM object. You have two options: