This one is driving me crazy. I am trying to implement an onchange event on the telephone2 field in the Dynamics 365 portal, but it doesn't fire. I tried putting $("#telephone2").on('change', HomePhone_OnChange());in the $(document).ready(function () {} block, but it fired when the form loaded and displayed a message from the JavaScript on a blank create form. Then when I close the message and enter a value in the telephone2 field and tab out of the field, nothing happens. I moved the $("#telephone2").on('change', HomePhone_OnChange()); out of the $(document).ready(function () {} block, which did remove the message on load, but changing the field value still did not trigger the on change event. Can someone please describe to me how to implement an on change event in a portal form?
*This post is locked for comments