Client Scripts for Field Decorators in Workspace

Petter Elgvin
Tera Expert

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: 

PetterElgvin_0-1737025530975.png
It only works in classic, not workspace. 

Tested on Xanadu Patch 4a.

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Petter Elgvin 

I couldn't find any docs for that for that function

 

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

Referenced here Ankur:

GlideForm | ServiceNow Developers

Tried this one too: 

g_form.addDecoration('caller_id', 'icon-star', 'preferred member');