Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

When [Save and Close] is clicked, a dialog warns use that changes are unsaved!

(0) ShareShare
ReportReport
Posted on by

I'm new to Dynamics CRM, so please bear with me.  I'm trying to figure out the cause of a problem.

There is a page where a user can edit an entity called an "Activity".  There is a field called "Follow-up Activity".  This field is a combobox which allows the user to specify the activity type of an activity to follow the current activity.  For example, this could be used to indicate that a phone call will be followed up with an e-mail.

Included in the buttons at the top of the page are [Save] and [Save & Close].  The odd behavior that I must fix is that when the user makes a selection in the "Follow-up Activity" field and then clicks [Save & Close], a warning message appears in a dialog: "Your changes have not been saved.  To stay on the page so that you can save your changes, click Cancel."

That makes no sense at all to me.  Why would clicking on a button that says [Save & Close] cause such a message to appear?

I have investigated the plugins registered with this entity and I think I've ruled out the plugins as the cause.  I am new to this Dynamics CRM system, so I wouldn't be surprised if the answer seems like it should be obvious to someone more experienced.

The Dynamics CRM version I'm using is 2011.

*This post is locked for comments

  • SS-30040219-0 Profile Picture
    3 on at
    When [Save and Close] is clicked, a dialog warns use that changes are unsaved!
    Did you ever find an answer to this? 
  • Community Member Profile Picture
    on at
    RE: When [Save and Close] is clicked, a dialog warns use that changes are unsaved!

    Seems like you have a javascript on 'Activity' that trigger with the "follow-up Activity" field.

  • Community Member Profile Picture
    on at
    RE: When [Save and Close] is clicked, a dialog warns use that changes are unsaved!

    Do you have any JavaScript wired up to "Activity"?  If so is it calling SetValue ?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,748 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans