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
dfcdfc 

Suppressing Detail Page Buttons

I am popping up a new browser window using the Javascript window.open() function from Flex to show a read-only detail page for a custom object using this URL (for example):

 

https://na6.salesforce.com/a09800000043oz9AAA?isdtp=mn

 

How do I suppress the Edit, Delete, and Clone buttons that appear on the popup detail page?  I want the page to be read-only with no command buttons.

 

Thanks!


Dave

 

Best Answer chosen by Admin (Salesforce Developers) 
ThomasTTThomasTT
... shouldn't you just edit the layout and remove Edit, Delete, Clone button? or you want to hide these buttons only for THE popup?

All Answers

ThomasTTThomasTT
... shouldn't you just edit the layout and remove Edit, Delete, Clone button? or you want to hide these buttons only for THE popup?
This was selected as the best answer
dfcdfc

Thomas -- You rock.  So obvious I did not think of it. I did not realize you could remove standard buttons from a detail page.

 

Thanks!

 

Dave