I'm trying to make it so when alt+a is pushed it activates the search contact field. I haven't written js in a couple years, and am really rusty. Any help appreciated.
This is what I've written, it works in jsFiddle, but not in CRM.
document.onkeyup = function(e) {
var e = e || window.event;
if (e.altKey && e.which == 65) {
alert ('keyboard shortcut working!');
return false;
}
}
This test code works for an alert in CRM:
function AlertPrimaryValue() {
var primaryValue = Xrm.Page.data.entity.getPrimaryAttributeValue();
alert(primaryValue);
}
*This post is locked for comments