I wanted to check if there is any supported way to do the below scenario.
I have few fields on a form and when the user tries to input the data and doesn't save the form and tries to navigate away from the form I wanted to show a custom message to the user on those field changes and inform user didn't save. i am aware that a default message is displayed but looking for some custom message option.
*This post is locked for comments
To my knowledge, there are no supported methods other than the standard events the form: onload and onsave, or fields/tabs events.
Hope this helps!
Charles Abi Khirs.
Thanks Charles ! This helps me. I understand that we can identify the form Dirty fields,but am not sure on what form event I can trigger this . I wanted to check when user moves away from the form. Any help is appreciated.!!!
Hi GPrasanna,
You can use the function Xrm.Page.data.entity.getIsDirty().
Have a look at this link for more details on how to get if the form is changed and what fields are changed:
community.dynamics.com/.../identify-dirty-fields-on-microsoft-dynamics-crm-form
Hope this helps!
If found helpful, please mark the answer as verified.
Charles Abi Khirs.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6