web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

onChange Event

(0) ShareShare
ReportReport
Posted on by 274

I have a lot of fields that are controlled onChange. I know I can register that in the form, however since I have more than 40 fields, I tried to use the following function and I call the function onLoad on the form, but I am not getting the result. Thank you for the help!

function setEventOnChange() {
Xrm.Page.getAttribute(new_account).addOnChange(accountOnChange);
Xrm.Page.getAttribute(new_contact).addOnChange(accountOnChange);
}

*This post is locked for comments

I have the same question (0)
  • Turlapati Vishnu Nandan Profile Picture
    336 on at

    Hi there,

    You can following the below article which speaks about triggering the onchange event from another event:

    msdn.microsoft.com/.../gg334409.aspx;MSPPError=-2147217396#BKMK_addOnChange

    Regards,

    Vishnu

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Try to use following code:

    function setEventOnChange() {

    Xrm.Page.getAttribute("new_account").addOnChange(accountOnChange);

    Xrm.Page.getAttribute("new_contact").addOnChange(accountOnChange);

    }

    Also don't forget to close your previously initiated threads like this - community.dynamics.com/.../217387

    To close it you can verify one or several replies as answers or if you found an answer by yourself you can post own reply and mark it as an answer.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans