How can we add the Add me icon next to the watchlist field in incident table in csm workspace level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2025 07:39 AM
Hi All,
I have a requirement to add the icon Add me icon next to the watchlist field in csm workspace level. when user click it, current user will add to that watch list. how we can do that in workspace level.
Kinldy please help me on this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2025 10:02 PM - edited 11-04-2025 10:10 PM
Hi,
Navigate to Field Decorators. Create a new field decorator
Paste below client script
function onClick() {
var existingWatchlisUsers = g_form.getValue('watch_list');
if(existingWatchlisUsers){
existingWatchlisUsers += ',' + g_user.userID;
}
else{
existingWatchlisUsers = g_user.userID;
}
g_form.setValue('watch_list',existingWatchlisUsers);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2025 11:36 PM
you can refer any OOTB Field Decorator and create similar for your table
I found this for GRC Table, replicate this for your table
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2025 07:15 PM
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader