+ Start a Discussion

Customize visualforce permission error message


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. 

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.