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)

How does javaScript affect the auto save feature?

(0) ShareShare
ReportReport
Posted on by 803

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

I have the same question (0)
  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at

    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?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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
    Kokulan Profile Picture
    18,054 on at

    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

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