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
AnshulVermaAnshulVerma 

How to hide Search, Advanced Search and Recent Items options

Hi,

We are developing a  fully customized Force.com application, which uses Visualforce totally.

We want to restrict user to view "search" and "recent Items" options. We have closed all the tabs for the user but if user fiddles with the URL box of browser and enters a wrong url, user comes to a custom visualforce error page (provided by salesforce.com), therein user can view the "recent items" and can also edit them. Moreover, there is a link for advanced search, on clicking it user can search for some objects.

Please provide necessary information.

Regards,
Anshul Verma
hisrinuhisrinu
Hi,

In the apex:page tag you mention showHeader="false" then it will hide.
WilmerWilmer
Hi, in fact, I think it is the sidebar= false property. something like:

Code:
<apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false">

 
It will hide the sidebar which contains those screen elements you mentioned, and the showheader shows or hides the top part of the page the all tabs are located.

I hope this helps.