Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Rich Text Fields on Form Getting Dirty sometimes.

(0) ShareShare
ReportReport
Posted on by
I've some rich text columns in a form in a model-driven app. Sometimes, they get dirty without editing them, and after some time, the form loads, making it unsaved.
 
These columns are not used in any javascript code, business rule, or anywhere except the form and some reports.
 
Only some JS code is registered on these columns on the change event which is used to populate a custom lookup that records the person that last updated the form.
 
Now, sometimes the form is getting dirty because of these fields and that lookup is getting populated incorrectly.
 
Any suggestions or fixes will be highly appreciated.
  • Suggested answer
    EU_AU Profile Picture
    2 on at
    Rich Text Fields on Form Getting Dirty sometimes.
    We are also experiencing the same issue. Looking at the audit details, the system is adding some extra properties to the P tag when the form or control is refreshed which caused the unsaved event.
    Field Name Old Value New Value
    Description <div class="ck-content" data-wrapper="true" dir="ltr" style="--ck-image-style-spacing: 1.5em; --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2); --ck-color-selector-caption-background: hsl(0, 0%, 97%); --ck-color-selector-caption-text: hsl(0, 0%, 20%); font-family: Segoe UI; font-size: 11pt;"><p style="margin: 0;">TEST</p></div> <div class="ck-content" data-wrapper="true" dir="ltr" style="--ck-image-style-spacing: 1.5em; --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2); --ck-color-selector-caption-background: hsl(0, 0%, 97%); --ck-color-selector-caption-text: hsl(0, 0%, 20%); font-family: Segoe UI; font-size: 11pt;"><p style="margin: 0; text-align: start;" dir="ltr">TEST</p></div>
     
    What we have found, as a workaround is to add the OOB  config /WebResources/Activities/SystemLibraries/msdyn_AppointmentRTEconfig.js to the Rich Text Editor Control. Doing this seem to have helped in most instances.
     
    Hope this helps.
  • CH-29081340-0 Profile Picture
    on at
    Rich Text Fields on Form Getting Dirty sometimes.
    So do you found a solution to this, we have a similar Problem with the task table. If the user marks the entity as completed the form still shows unsaved. and if the user wants to go back they get a popup to save the changes, which doesnt work because the entity is already marked as closed
  • juul-gregersen Profile Picture
    2 on at
    Rich Text Fields on Form Getting Dirty sometimes.
    I have noticed the same issue. It seems that the html tags are being changed.
     
    As an example, we have a rich text field with this content:
    <div data-wrapper="true" dir="ltr" style="font-size:9pt;font-family:'Segoe UI','Helvetica Neue',sans-serif;"><div>Text visible to the user</div></div>
     
    Which got changed to this content:
    <div class="ck-content" data-wrapper="true" dir="ltr" style="--ck-image-style-spacing: 1.5em; --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2); --ck-color-selector-caption-background: hsl(0, 0%, 97%); --ck-color-selector-caption-text: hsl(0, 0%, 20%); font-family: 'Segoe UI','Helvetica Neue',sans-serif; font-size: 9pt;"><div>Text visible to the user</div></div>
  • LA-02051057-0 Profile Picture
    27 on at
    Rich Text Fields on Form Getting Dirty sometimes.
    Hi,
     
    I have the same issue. Have you been able to find the cause of this?
     
    Thank you in advance!
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Rich Text Fields on Form Getting Dirty sometimes.
    Hi,
    You can enable Audit feature on this table, and these rich text fields.
    --To check who change it's value.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans