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
gopikrishnagopikrishna 

how to disable or hide button other user

Hi,

 

      i have created custom button on custom object,  that button visible all user detail page but  that button not visible to other user detail page. only one user visible and other user need not see that button.

 

Thank you.

bob_buzzardbob_buzzard

So are you looking to have this button conditionally displayed? There's a few ways to accomplish this. The most straightforward is simply to assign a different page layout to users with different profiles.  That way you can show or hide buttons through configuration.

gopikrishnagopikrishna

Thank you bob,

 

                I accept that way, if any other ways please post it. using one page layout.

bob_buzzardbob_buzzard

Here's another way courtesy of my fellow MVP TehNrd:

 

http://www.tehnrd.com/show-and-hide-buttons-on-page-layouts/