How to Highlight Reference Field in Workspace When User Has No Email
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
18 hours ago
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
15 hours ago
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
