- 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-10-2023 01:12 AM
so you created a defined relationship between those
what script did you start writing in the Omit Edit script in list control?
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-10-2023 04:00 AM
- 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-10-2023 06:04 AM
Do we need to check for state=="in progress" for above scenario ?