Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. hideactivitiesview() // call under onload of xrm page; comes in default script of this file
  2.  
  3. function hideactivitiesview()
  4. {
  5. var viewSelector = $('#crmGrid_SavedNewQuerySelector')[0];
  6. if(viewSelector)
  7. {
  8. $(viewSelector).click(function(){
  9. var _activity = $('#ViewSelector_activity')[0]; //get this id from DOM using F12
  10. if(_activity)
  11. $(_activity).hide();
  12.  
  13. });
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement