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
john Saavedrajohn Saavedra 

I created a visual forge for my case console

Like the title says i created a visual forge for my case console that it bring all my assets from the current account that the case is assignt what i want to do is remove new assets button and the action tab that has Del and edit as show in the images 
User-added image
User-added image
User-added image
Best Answer chosen by john Saavedra
Raj VakatiRaj Vakati
It's working for me. Try below once
 
<apex:page standardController="Case" extensions="DisplayAllAccounts">
    
    <style>
        input.btn{
        display: none;
        }
    </style>
    
    <apex:relatedList list="Assets" subject="{!accountInfo}" > <apex:facet name="header"></apex:facet>
    </apex:relatedList>
</apex:page>




 

All Answers

Raj VakatiRaj Vakati
Use the below code. Change the Style Class based on the value If it is not working!

 
<apex:page standardController="Account">
    
    <style>
        input[name=add] {
        display: none;
        }
    </style>
    
    <apex:relatedList list="Assets" > <apex:facet name="header"></apex:facet>
    </apex:relatedList>
</apex:page>



 
john Saavedrajohn Saavedra
it work on removing the button now i need to find a way of removing the side bar that has the action Edit / Del
Raj VakatiRaj Vakati
It's working for me. Try below once
 
<apex:page standardController="Case" extensions="DisplayAllAccounts">
    
    <style>
        input.btn{
        display: none;
        }
    </style>
    
    <apex:relatedList list="Assets" subject="{!accountInfo}" > <apex:facet name="header"></apex:facet>
    </apex:relatedList>
</apex:page>




 
This was selected as the best answer