Hide New Button in List view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 10:28 AM
Hi Developers,
We have a requirement to hide a New button in List view of incident for users with role ITIL,if anybody has achieved the requirement then please let me know how to proceed in this case as i believe we cannot create a client script in for this because it works on form level so can anybody help to achieve the requirement.
Thanks in Advance.
Regards,
Abhishek

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 10:40 AM
You can setup List control conditions.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 10:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2023 09:25 PM
Hi cheyenne
Depending up on the field value(choice field ) we can hide the new button in the list view ?
Is it possible or not ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 12:37 PM
->Right click on any column on the list layout.
->Configure
->List Control
Solution 1:
->Omit new condition:unchecked
->Add 'itil' role in new roles.
->update
Solution 2:
->Click omit new button
->Enter following script in Omit new condition:
var answer;
if (gs.hasRole('til')) { //Do not remove the 'New' button
answer = false ;
}
else { //Remove the 'New' button
answer = true ;
}
->update