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)

Dynamics CRM Form Saving

(0) ShareShare
ReportReport
Posted on by

Hi guys, I want to know if its possible in Dynamics to stop it from saving the last form you were in?

For example, I go to the main form of an entity, then go to the second form and Dynamics saves that I was last in the second form. I don't want it to do that - so that when i open a record i'll be navigated to the main form and not the second form.

So Dynamics' default behaviour is to save the last form you were in - I want to prevent it from doing that. I appreciate this is the way that Dynamics works but wanted to know if anybody has found any good workarounds.

Thanks :)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    MihirShah Profile Picture
    4,036 on at

    You can disable the auto save feature and see if that works for you.

    Settings > Administration > System Settings - General tab.

  • Suggested answer
    Wayne Walton Profile Picture
    13,730 on at

    You would have to write code to force the form to a different state.  Perhaps force it to the default form if a field on the questionnaire is filled already.  Here's a reference: msdn.microsoft.com/.../gg334527(v=crm.6).aspx

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Hi Will,

    Isn't this a duplicate post?

    community.dynamics.com/.../255843

  • Wayne Walton Profile Picture
    13,730 on at

    Looks like but I think he's asking about choosing an entity form programmatically, not autosave.

  • Community Member Profile Picture
    on at

    Thanks for the suggestions but I don't think its anything to do with autosave as its already turned off , I think its just default Dynamics behaviour. Thanks :)

  • Suggested answer
    Shirsagr Profile Picture
    502 on at

    We have done this with below code,

    function IsMainForm() {
        if (Xrm.Page.ui.formSelector.getCurrentItem().getLabel() != 'Default Form Name') return false;
        else return true;
    }

    if ((!IsMainForm()) && (Xrm.Page.ui.getFormType() == 1) )
    Xrm.Page.ui.formSelector.items.get("guid of default form").navigate();

  • ashlega Profile Picture
    34,477 on at

    Hi,

      if you want to avoid javascript post-load form switching, you might try to use the plugin-based approach:

    http://gonzaloruizcrm.blogspot.ca/2014/11/avoiding-form-reload-when-switching-crm.html

      Although, I am not sure it would still work in the 9.0 version (will need to test) - it did not in 8.2, at least. Should be fine for your version, though(2013)

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