Any way to remove New button from Recent Items list on tab? - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Chris UttleyChris Uttley 

Any way to remove New button from Recent Items list on tab?

I would like to remove the New button from the Recent Items list on the Order tab. I want to force users to create new Orders from the Account page.

I know how to remove the New button from the list views on the tab. I have already done that. But I see no way to remove the New button from the Recent Items list view ( My user profiles are authorized to create new Orders, but I dont want it done this way).

There used to be a HTML home page component solution for this, but I understand that solution no longer works.

Is there a configurable (non Visualforce) solution to remove the New button from the Recent Items list?
Best Answer chosen by Chris Uttley
Jeff MayJeff May
The only way to remove it is to remove  the User's permission to create new records of that object (Orders in your case)

You could use a Validation Rule that makes sure an Account is filled in on the Order before it is saved.  That way, you get the same functional behavior as forcing them to create New from an Account detail page.

All Answers

Jeff MayJeff May
The only way to remove it is to remove  the User's permission to create new records of that object (Orders in your case)

You could use a Validation Rule that makes sure an Account is filled in on the Order before it is saved.  That way, you get the same functional behavior as forcing them to create New from an Account detail page.
This was selected as the best answer
Sumit KawSumit Kaw
+1 Jeff,

These Buttons are basically rendered based on the Permissions that have been provided at profile level and there is no way in Salesforce currently to control/manupilate this behavior.

Only option is overriding the 'Order tab' with a Custom VF Page, but i dont think it is worth the effort and energy.
 
Chris UttleyChris Uttley
Thats what I figured. I just saw there is an Idea for this. The votes are pretty high!
https://success.salesforce.com/ideaView?id=08730000000Bq6yAAC  

I wont go with the validation rule, I dont want users going down the path and them preventing them from saving. My issue is not the need for an Account, but that I want to prepopulate the billing and shipping addresses from the Account for a new order....so I have a custom button for New Order on the Account page.

Thanks Jeff for confirming.

 
Bill HansonBill Hanson
So, this thread is 2 years old and still no change - nice.  Did you notice in your link above that the proposed change in development is only for Lightning?  We have no Lightning components, but have thousands of hours in custom development for classic Salesforce.  Once again, Saleforce is moving in a direction that is going to alienate thier customers.  I'm really starting to worry.
Paula VoglerPaula Vogler
Make that 3 years now and no change. We are not on lightning yet either. 
 
Kumar SaxenaKumar Saxena
I could do it by overriding the stadard "New" button with a very simple VF page with the following message:

"You should create abc records only from xyx object".

Now when users click on New button, they see this message.

VF code:

<apex:page standardController="ABC__c" >
    <apex:form >                   
          <apex:pageBlock >
             <div style="vertical-align: middle;height:100px; text-align: center;margin-top:50px;"> 
                <span style="font-size:14px;"> <I>You should create abc records only from xyx object</I></span>
             </div>
     
               </apex:pageBlock>
   </apex:form>    
</apex:page>