Hi community,
I encountered an interesting error. I have a custom js library in the account entity. I added js function to phone field.
My js code :
function onChangeTelephone1(fieldname) { // PhoneNumber1
var phone = Xrm.Page.getAttribute("telephone1").getValue();
if (!phone) return true;
var isSuccess = ControlPhoneForTurkey(phone,fieldname);
return isSuccess;
}
I added the function to onchange event but it didnt trigger.
I tried to fix the problem;
- I created a new library and moved the codes to this library.
- I opened the developer console by adding a debugger to the code, it didn't trigger.
- I confirmed that the library of the function I added to the onchange event of the phone number field on the form is correct.
Despite all this, I could not trigger the code somehow. Moreover, this development was working without any problems 2 days ago.
I shared screenshots:
1- Error details (web resources does not contain)

2- OnChange event and library information


The browser does not enter debug mode even though I have made changes to the field.
Could you please help me ?
Thanks in advance.
Regards.