Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How does javaScript affect the auto save feature?

Posted on by 777

Hi, I've noticed that when we have a field that's being populated via javaScript, the auto save isn't always working. For instance, if we leave the form, the fields involved the javaScript calculation don't save. I know I'm being a bit vague, but hopefully others have experienced what's going on. 

Is there any good documentation around this? Right now, it's been hard to understand exactly when and why it's happening. Having a better understanding of when we cannot just leave a form without auto save kicking in would be great. 

On this note, is it possible to write javaScript or a plugin that will automatically save a form whenever the user leaves that form? 

*This post is locked for comments

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: How does javaScript affect the auto save feature?

    The plugin only works at the server side so anything to do with client side is almost all the time done using JavaScript.

    When you say the auto save firing for some fields and not for others could provide a bit more detail on that. Perhaps you could do a bit more test on see the pattern

    Is it only ignoring if you change field that is hidden  or is it when you set a value to a field that's in header or footer or business process flow. Is when the field is read only? Is it on a field that has a Business Rule bound.

    Please also have a look at the link below

    community.dynamics.com/.../217867

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How does javaScript affect the auto save feature?

    Hi ,

    I did some analysis on this , which might helps you.

    1. Auto Save feature works only on update form.

    2. Auto Save feature does not work on  create form.

    3. Whenever you set any value of the field using  Javascript or manually  or business rules you can see in the right corner below save icon with text "Unsaved Changes", once 30 sec /default time over form will automatically save.

    4. Whenever you navigate to another form , if you change any fields value in the form. You can not see the popup to say that "Do you want to leave /Stay" , which means  form always save automatically if any changes you did in the form.

    This is all about auto save , I hope you this will helps you.

  • Suggested answer
    ARIFNIIT Profile Picture
    ARIFNIIT 1,391 on at
    RE: How does javaScript affect the auto save feature?

    when you will navigate from any entity form then save and close will trigger automatically and you jScript will trigger registered on Save event.

    Can you explain more clearly about your problem?

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans