Hide New Button in List view

Abhishake1
Giga Contributor

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

12 REPLIES 12

SanjivMeher
Kilo Patron
Kilo Patron

You can setup List control conditions.



Configure list controls



Please mark this response as correct or helpful if it assisted you with your question.

Cheyenne1
Kilo Guru

Hello,



You can achieve this by navigating to your list view, right click on the Incident column, Select 'Configure', Select 'List Controls'



From here you will have the ability to 'Omit the New button' or place a role under "New roles'




find_real_file.png


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 ?

 

Gowrisankar Sat
Tera Guru

->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