+ 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