- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 09:49 AM
I want disable the check box and icon in list view any one can please tell me the solutions
Please find the below attachment
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 12:24 AM
Hi Venkatesh,
Did you use correct table while using list_edit ACL
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 10:49 PM
HI Ankur Bawiskar
Now it is working , But i need role base or group base we want to make read only or edible
Thanks and Regards
Venkatesh Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 10:59 PM
Hi Venkatesh,
you can use g_user.hasRole() in UI scripts;
if user has role as 'roleName' then it would hide
(function() {
addAfterPageLoadedEvent(function () {
// use your table name below I used u_snow_table
if(window.location.href.indexOf('u_snow_table_list') != -1){
if(g_user.hasRole('roleName')){
hideRefIcons();
hideCheckBoxes();
}
}
});
})();
function hideCheckBoxes(){
$j(".checkbox-label").each(function(){
$j(this).hide();
});
}
function hideRefIcons(){
$j('a[class="btn btn-icon table-btn-lg icon-info list_popup"').each(function() {
$j(this).css( "display", "none" );
});
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 11:18 PM
Hi Venkatesh,
Do you want to hide the checkboxes and the icons based on role or hide it only for few set of users?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 11:38 PM
HI
yes that is one requirement, and also I need in the list view columns make read only or editable for limited users .
i write the acl for the list view edit that is applied for all users , but problem is only for i want limited users make editable or read only.
can you please help me.
Thanks and Regards
Venkatesh Y.