HTML field not rendering properly

sayaliwakch
Tera Contributor

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

1st .png2nd.png3rd.png

3 REPLIES 3

yashkamde
Mega Sage

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.

Tanushree Maiti
Mega Patron

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

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@sayaliwakch 

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

The HTML field is showing a blank space and not reduced to lesser size when the field is made read-o... 

55.png

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader