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
ManvithaManvitha 

how to hide standard new button in related list excluding system admin profile

Hi All,
Can someone help me to hide standard NEW button in related list excluding Sytem Admin profile
Currently I am using dynamic related list single , but I am not getting filter option to apply for this NEW button.
Thanks in advanceUser-added image
 
Best Answer chosen by Manvitha
AnkaiahAnkaiah (Salesforce Developers) 
Hi Manasa,

you use the different page layouts for system admin profile and other profiles.

Pagelayout 1:one page layout for other users who is not require New button for asset creation.
Pagelayout 2: another  page layout for other users who is  require New button for asset creation.

Note: Just you need to change the related list properties.

Hope you understand.

If this helps, Please mark it as best answer.


Thanks!!
 

All Answers

AnkaiahAnkaiah (Salesforce Developers) 
Hi Manasa,

Go to the related list properties and uncheck the new button.

go to the respective pagelayout and select  the related list section and follow the below steps.
step 1: click on the wrinch icon.
User-added imagestep2:

User-added image
If this helps, Please mark it as best answer.

Thanks!!
ManvithaManvitha
Hi 
Ankaiah  ,

thanks for the reply ,
If I uncheck here, NEW Button will be removed for all Profile  , but for my requirement the button should be available for " System Admin" profile.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Manasa,

you use the different page layouts for system admin profile and other profiles.

Pagelayout 1:one page layout for other users who is not require New button for asset creation.
Pagelayout 2: another  page layout for other users who is  require New button for asset creation.

Note: Just you need to change the related list properties.

Hope you understand.

If this helps, Please mark it as best answer.


Thanks!!
 
This was selected as the best answer