Hi,
I need some help in correcting an error which is appearing when the postcode is being altered in CRM2013. There is javascript which is suppose to display an alert to advise this has been changed and to check correct.
To be honest I dont really know java but on reading a bit online about I would of expected to see the Xrm.Utility.alertDialog function on the field’s onChange but this is not there.
The code at present is
function PostCode_OnChange() {
var postCodeField = 'address1_postalcode';
var postCodeValue = Xrm.Page.getAttribute(postCodeField).getValue();
if (postCodeValue) {
alert("The post code has changed, please ensure correct");
The error message advised
Error:Unable to get property 'getValue' of undefined or null reference
Anyone able to point me in the direction of where the code is going wrong and how to fix?
Thanks
Iain
*This post is locked for comments
I have the same question (0)