web
You’re offline. This is a read only version of the page.
close
Skip to main content
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.
I have the same question (0)
  • 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.
  • CU22100956-0 Profile Picture
    29 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!
  • 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>
  • 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
  • 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.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 107 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 89

#3
#ManoVerse Profile Picture

#ManoVerse 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans