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
vinothvinoth 

Customize visualforce permission error message

Hi,

I want to customize the visualforce permission error message,eg: if I am not having permission on 'page1', and  i am loading 'page1' , i am geeting following error message "Content cannot be displayed: You do not have sufficient privileges to access the page: page1" instead of  that i want to display custom error message. Guide me to implement this scenario. 

Thanks
SipuSipu
Hi vinoth,
please check your profile's visualforce page permission [Enabled Visualforce Page Access] setting. Add that visualforce page to you profile so that you can't get such errors.
  
Vijay NagarathinamVijay Nagarathinam
Hi Vinoth,

Refer the following link, I think it will be helpful for you.

http://salesforce.stackexchange.com/questions/857/customizing-visualforce-permission-error-message