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
Valli KValli K 

how to hide a certain fields in a related list object<apex:relatedlist list="contacts"> in vf page.. sample code please

how to hide a certain fields in a related list object<apex:relatedlist list="contacts"> in vf page.. sample code please
Raj VakatiRaj Vakati
Content of <apex:relatedList> will match what your user would see for same record on page layout. So your best choice is to configure the list on page layout. Remember that if you still don't see the fields you expect, the standard caveats apply:

These are the Options  .. 

1 . Override the complete custom code insted of relatedlist 
2. Remove unwanted fields from the page layouts 
 
Raj VakatiRaj Vakati
2. Remove unwanted fields from the page layouts related list 
 
Valli KValli K
Removing unwanted fields in pagelayout will not work in my scenario. Need to rendered it conditionally for different business and there is only 1 page layout. If i do changes in page layout, it will reflect for both the business. So any other solution.
to "hide a certain fields in a related list object from VF Page".