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
a month ago
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
3 weeks ago - last edited 3 weeks ago
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
3 weeks ago
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
3 weeks ago
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
