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)

Javascript not working when action is done quickly

(0) ShareShare
ReportReport
Posted on by

Hi all, 

I have a simple OnChange javascript function linked to a country field, which changes another field whenever the country field is updated. 

But, when I change the country field and save quickly, the other field is not updating (Meaning the javascript is not running/loading). 

The below picture for more clarification of what the javascript does. It is crucial that the javascript always runs and the field is always updated.

2570.Untitled_2D00_2.jpg

Can I somehow ensure that the javascript always runs onChange?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Please make sure you use the same script on save event

  • Community Member Profile Picture
    on at

    Is there any way to delay window loading until the onChange script is loaded?

  • Suggested answer
    Community Member Profile Picture
    on at

    I don't think there is any way we can delay window load. You can use plugin to achieve it

  • Kevin Grech Profile Picture
    380 on at

    Have you considered using a synchronous (real-time) workflow instead of javascript?

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