Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Onchange event not working on field updated from work flow process. How can Javascript function to be hit on field which is updated via work flow process

Posted on by 340

I have a requirement where JavaScript function to be hit on field1 when it is updated through workflow process using Onchange event on field1. I need to perform some logic on field1 using Javascript code @ Onchange event and populate value to field2. But Javascript is not hitting as the workflow is updating field1 at server side. How can i achieve this.

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,750 on at
    RE: Onchange event not working on field updated from work flow process. How can Javascript function to be hit on field which is updated via work flow process

    Depending on what you are doing you may need to do more in JavaScript in the onSave or onChange like call an Action synchronously then process the results of the action - or put all of the relevant logic in the Workflow etc (not clear why you have to use JavaScript to populate the field2 and you can't build it into workflow or plugin).

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans