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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans