Announcements
No record found.
I don't understand the use of fireonchange, how does it works and how to register a function to that event and how does it trigger and how to use it, what is the difference between onchange and fireonchange (are both connected?) I googled it but still confused. Can someone please explain with example? thank you
Hi Sahara,
Please take as reference following links:
https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg334409(v=crm.8)?redirectedfrom=MSDN#fireonchange
http://abhishekcrm.blogspot.com/2016/08/on-change-and-fire-on-change-in-crm-2016.html
http://bds-experts.com/how-to-fire-onchange-event-with-other-field-in-javascript/
https://exptechsolutions.blogspot.com/2017/05/ms-crm-xrmpagegetattributeattributefire.html
fireOnChange is used to trigger an onChange event on an object (such as an attribute on the form) from your JavaScript code. The code/function that is triggered will be those (could be more than 1) that are registered for that object event - in supported Dynamics 365 JavaScript the functions are registered using addOnChange in your code (or in the form events)
(HTML and standard JavaScript onchange are roughly equivalent to addOnChange).
When you manually update a field, that will trigger the OnChange event of the field.
Now if you want to trigger the OnChange event from within a js function, you will call the fireOnchange.
this is a good question, can someone please supply an example?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 180 Super User 2026 Season 1
11manish 119
CU11031447-0 100