SHARE
TWEET

Untitled

a guest Jul 17th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top