How to Highlight Reference Field in Workspace When User Has No Email

SachinNasa
Tera Contributor

Hi Community,

In ServiceNow Workspace, I want to change the background color of a reference field to yellow — but only when the referenced user record does not have an email address.

I understand that direct DOM manipulation is not supported in Workspace, so my main question is:

  • Can this kind of conditional styling (like changing background color) be achieved using Client Scripts or any other supported method in Workspace?
  • If not, what are the recommended ways to visually indicate such conditions in Workspace forms?

Looking forward to your suggestions or best practices!
Thanks in Advance.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@SachinNasa 

that's correct, DOM is not supported in workspace

You can try to explore field decorators

UI Builder Deep Dives: Field Action Decorator 

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader