Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Fields get dirty (not every time)

Posted on by 55

Some of fields on the record get dirty after "OnLoad" function. The most interesting part that they're getting dirty not every time. I can open same record for 5 times in a row and only 2-3 times fields get dirty. I don't change anything on the form the form but it gets dirty right after I hover my cursor on it. Why is this happening and what can I do to prevent "Unsaved changes" message to pop up? 

*This post is locked for comments

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Fields get dirty (not every time)

    Post a code please. It would be complicated to say anything without code available.

  • ElevenZwolf Profile Picture
    ElevenZwolf 55 on at
    RE: Fields get dirty (not every time)

    I checked every single function in my OnLoad but fields doesn't get dirty during OnLoad method but some time after it. I'm not sure that this is Business rules "fault" because message show up on the same record not every time. I don't see any pattern when fields get dirty and when not. Also same fields on different records may or may not affect on  "Unsaved changes" message

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Fields get dirty (not every time)

    Hi,

    Please share your code which is calling in onload event.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Fields get dirty (not every time)

    Hello,

    You should check OnLoad function - I believe your code can set fields during onload. Also you should check Business Rules as well.

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