HTML field not rendering properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
29m ago
When incident is close and we open the record again then field show as expected as per in 1st pic but we click on any other tabs provided on form like incident details etc provided in 2nd pic then again open alert summary tab then field having some space as per 3rd pic we need field behaviour as per 1st pic always when we closed the incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12m ago
Hello @sayaliwakch ,
check how you are making the html fields read after state closed,
If you are using a UI Policy or Client Script, ServiceNow loads the full HTML editor in the background and then disables it, which causes the height calculation bug on tab switch.
I would recommend create a Record-level Write ACL (or Field-level Write ACL) that evaluates to false when the State is Closed.
When an ACL prevents write access on form load, ServiceNow completely skips rendering the TinyMCE editor iframe. It just renders the HTML content inside a standard, flat <div>. This flat div will dynamically resize perfectly, eliminating the tab-switching bug entirely.
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9m ago
Hi @sayaliwakch
It seems , with other field , your html field is also Read Only.
Please check your existing UI policy ,client script or data policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a minute ago
I believe it's default OOTB behavior when HTML field is readonly via UI policy it takes up complete space and doesn't auto minimizes it
check this KB and apply this fix of removing attribute from dictionary
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
