Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
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

(0) ShareShare
ReportReport
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,752 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans