function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pooja chauchanpooja chauchan 

Hide Related List


I have used below code to hide the related list.
//This code finds our "Notes and Attachments" related list, and hides it completely:
      var el = document.getElementsByTagName('*');
      for(var i=0;i<el.length;i++){
        if(el[i].id.match('_RelatedNoteList')){ //This finds our related list.
                          //Salesforce appends the record Id to the html name,
                          //so this finds a match disregarding the record Id.
          //We need to toggle both visibility and display for support across various browser types
          el[i].style.visibility="hidden";    //hide visibility
          el[i].style.display="none"; //hide display.

But, i am not able to get ID's or Class name's from right side pane to left nav. pane..
i have created Visualforce page in left nav from homepage component.

please tell me the alternative way to get ID 's from right pane to left pane...

Thank you in advance!!
Best Answer chosen by pooja chauchan
Gaurav NirwalGaurav Nirwal

this will get solved by using custom links instead of html area...

thanks.. :-)