OnChange event getting fired on SetValue in CRM 2016 Update 1 New Form Rendering

Today while doing the analysis of existing system in New Form Rendering, we realized that the SetValue function used on onChange of an attribute was in turn triggering the onChange event for that field.

We basically had an option set field whose value we were setting based on certain condition on onChange event of the same field. This was working fine in Legacy Form Rendering and also in vanilla instance of Dynamics 365.

Only in new form rendering we were getting this issue of infinite loop.

I see the similar issue discussed in the forum

https://community.dynamics.com/crm/f/117/t/165954

We are planning to raise a product support ticket for the same. Let us see what solution the product team will come up with.

Hope it helps..


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

6 thoughts on “OnChange event getting fired on SetValue in CRM 2016 Update 1 New Form Rendering”

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s