Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Rich Text Fields on Form Getting Dirty sometimes.

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
    EU_AU 12 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.
  • 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
    juul-gregersen 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
    LA-02051057-0 19 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
    Leah Ju 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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans