Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

OnChange Event (without click outside/on blur) Question for Dynamics 365

Posted on by 240

We have two D365 environments, both on Version 9.1.0.996.

Both have similar "test" entities, with two simple forms include "amount" fields, and with"OnChange" events for each field. The OnChange event just pops a JS alert message ("Field Value Changed").

However, the onchange event behaves differently in each environment.

In Environment A, if you changed the amount but without "click out" (onblur event to lose the focus of the input field), and then click the "Delete" button directly, the onchange event fires first

In Environment B, perform the same thing, the "Delete" event fires first, the onchange event does not fire until you click the "cancel" button from the "Delete"

environment2.jpg

environment3.jpg

I understand the Microsoft onchange event normally should be triggered only after the "onblur" behavior.

But why two environments have different behaviors? 

Is there some setting can affect this? 

*This post is locked for comments

  • HarryZang Profile Picture
    HarryZang 240 on at
    RE: OnChange Event (without click outside/on blur) Question for Dynamics 365

    Thank you Ravi,

    Both tests are using the same browser.

    However, one environment is native D365V9 (does not using legacy form rendering), another one is upgraded from CRM 2016 Online to D365 V8.2, then to V9.1, with the legacy form rendering turned to "On"

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: OnChange Event (without click outside/on blur) Question for Dynamics 365

    Hi,

    Are these on the same browser version? Can you check & verify the "Use legacy form rendering" setting under Administration >> system setting?

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans