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
hegde_hegdekhegde_hegdek 

StandardController used in a site visualforce page

Hello,

I have a built a visualforce page with a lead standardcontroller,I have given read and write access to the lead object for the particular site application,which has the above visual force page,but whenever the site application with the visualforce application is launched,I enter the lead details and press submit(which calls the standard controller leads save option),but i get an error saying you are not authorized,can any one help me on this.

regards

hegdek

Ispita_NavatarIspita_Navatar

It seems there is an Apex class or some intermediate visual force  which get invoked on the click of the button which is/are not  added to the the list of -"Enabled Visualforce Page Access" or "Enabled Apex Class Access" .

To verify this and let me know if this is the cause of the problem.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

Salesforce Project ManagerSalesforce Project Manager

You need to be authenticated in our Sites applicaiton to have the ability to edit standard controllers, so you might want to make sure the user is logged in.

 

Thanks,

 

Jason Stafford

www.softwareallies.com