hi Daniele,
Thank you for your response. I already tried that, but cannot work. I think that syntax is deprecated for Unified Interface, aren't?
Or any mistake on my code:
version 1:
document.getElementById("kre_vouchernumber").onkeypress = function(e) {
if (e.keyCode == 13) {
// Call your function here
alert("work");
}
};
output: TypeError: Cannot set properties of null (setting 'onkeypress') >> i think because not found the properties.
version 2:
Xrm.Page.getControl("kre_vouchernumber").addOnKeyPress = function(e) {
if (e.keyCode == 13) {
// Call your function here
alert("work");
}
};
output: nothing happened
kindly advise.