You need to sign in to do that
Don't have an account?
Suma Ganga
Hide Related List
Hi,
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!!
-- Suma.
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!!
-- Suma.
thanks.. :-)
All Answers
Thank you for Replying....
my requirement is like, on conditional basis i have to hide the particular related list.
For example: assume there is an checkbox in my page.. if i checks that check box i have to hide the related list, otherwise i have to show the relatedlist...
Thanks in Advance!..
-- Suma.
HI Fab,
Thank you for Replying...
can we have different page layouts for different role in same profile...
Thnaks,
--suma.
thanks.. :-)