Client Scripts for Field Decorators in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 03:40 AM
Referenced in this article, field decorators should now work in workspace too.
What's New in Xanadu for UI Builder and Workspaces - ServiceNow Community
The section:
"Client Scripts for Field Decorators
Administrators can now add field decorators to various field types using client scripts. This enhancement offers more flexibility in customizing the appearance and behavior of fields within Workspaces. This is a parity feature that now works in workspaces."
I tried this by simply using a client script with this line:
g_form.addDecoration('caller_id', 'icon-star', 'Mark as Favorite', 'color-green');
More details here:
It only works in classic, not workspace.
Tested on Xanadu Patch 4a.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 04:27 AM
I couldn't find any docs for that for that function
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:27 PM
Referenced here Ankur:
GlideForm | ServiceNow Developers
Tried this one too:
g_form.addDecoration('caller_id', 'icon-star', 'preferred member');