how to hide 'Actions and Selected rows'

raj159
Mega Expert

Hi,

I have a requirement to hide 'Actions and Selected rows' on the change list view for ITIL users.

None of the users should be able to see this except Admin users. Please tell me how to achieve this functionality.

Thanks!

Raj

11 REPLIES 11

Hi Raj,



Note: Using DOM may have risks during upgrades.



Create a UI script as shown below


find_real_file.png



script:



addLoadEvent(setTitle);


function setTitle(){


  if((document.URL.indexOf("change_request_list")>-1) && !g_user.hasRole("admin")){


  var divsToHide = document.getElementsByClassName("list_decoration col-control col-small col-center "); //divsToHide is an array


  for(var i = 0; i < divsToHide.length; i++){


  divsToHide[i].style.visibility = "hidden"; // or


  divsToHide[i].style.display = "none"; // depending on what you're doing


  }


  }


}


CJB
Tera Expert

@Abhinay Erra Do you know if this works with "Assign Tag"? I'm not having any luck.