I have a requirement for a custom Object, when user with certain profile (For example Sales) will click on "New" BUTTON (mentioned below is the screenshot of the same) then it should display error that "you don't have access to create new record" whereas for other profiles it should work as normal.
Users of those profile (sales as mentioned above) would be able to create the record of that object through a button on Opportunity related list but not thru "NEW" button on the HOME page of the object ('NEW' button on List view of the object which we get thru TAB).
So what is the best way to complete this requirement, I would really appreciate any kind of suggestion or solution.