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)

Trigger javascript on change of field part of the header?

(0) ShareShare
ReportReport
Posted on by

Hi everyone!

Why CRM won't support triggering a script when changing a field on the header? I want to trigger a script when changing the Status of a Case. That field is not visible in the list . 

I tried to copy that value into another custom field , and run the script when that custom field changes a value but when i copy the value with the business rule , it doesn't recognize it as a change. So the script never triggers.

Can anyone help me out please?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    prt33k Profile Picture
    6,907 on at

    you can put the status field on form as well. So whenever the header gets updated the form field will also get updated. You can write JS on form field onchange event which will trigger the JS you wanted.

    Thanks,

    Prateek

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    You can try inserting the status field on form and writing JavaScript code on its change event or having a business rule. Else, you can write a workflow when record status changes and perform the required operation.

    Hope this helps!

    [If you find any helpful answer(s) of your question, please mark the answer(s) as verified answer(s).]

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks it worked great!

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