Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to Pass Context along with other parameters to AddOnChange Method?

(0) ShareShare
ReportReport
Posted on by 2,715

Can we pass other parameters(i.e. String ) along with the context,i know that context is passed as 1st parameters to AddOnChange   method,can we pass other parameter along with it ,i don't want to pass it through form editor,all i am doing it on run time using JS 

 Xrm.Page.getAttribute("name").addOnChange(test(context,"1st","2nd"));

*This post is locked for comments

  • Verified answer
    ashlega Profile Picture
    ashlega 34,477 on at
    RE: How to Pass Context along with other parameters to AddOnChange Method?

    Hi RK,

     addOnChange needs a function(not a call to the function), so you might try this:

    addOnChange(function(context) { test(context, "1st", "2nd"); } )

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans