- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 10:49 PM
Show only ‘New’ button on the ‘Task’ related list, show it only to caller and "itil" role
user in the "in progress" state and do not show ‘Edit’ button on incident form.
How we can do above scenario?
Is it possible using List Control->omit new Condition?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 05:32 AM
1) right click List control in related list
In the omit new condition script add this
give the correct field name for caller from parent form
if(parent.callerField == gs.getUserID() && gs.hasRole('itil'))
answer = false;
else
answer = true;
Similarly add script for Omit edit as per your requirement
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-09-2023 10:56 PM
should be easily achieved using Omit Edit condition script
on which form you are showing the related list? share screenshots
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-09-2023 11:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 11:43 PM
Does the training task related list table have any field which refers to the Parent table?
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-09-2023 11:56 PM
There is no field in training task table which is refering to Parent table.