0

I have a site using visualforce dbvc.force.com/MRSurvey when I try to save a record with this, it does not allow it and tells me authorization is required, even though the site is public. Can someone explain why this is happening and how I can fix it? Also, can I have some suggestions as to where those records will go once saved, will it automatically create a new tab or where could I find them?

0

Make sure the the object is public. Else you need to authorize to save the record.

Ensure the site profile and check you have added all the component that are accessible through site.

See this https://developer.salesforce.com/page/Authenticating_Users_on_Force.com_Sites

https://developer.salesforce.com/page/An_Introduction_to_Force.com_Sites

10
  • All of the components are accessible from what I can see. I've checked again and still directing me to the authorization page? – Nicko Murphy Dec 8 '16 at 12:51
  • Go to Site --> click your site name -> Clikc Public access setting button -> click on object you want to give permisison and marrk (Read, Create, Edit, View All). Ensure that what are all the object utilized in vf code should have rigght access in that profile. – bharath Dec 8 '16 at 12:59
  • That is all done. The issue I am having is getting the record to save, once I enter the details on the site, I can access the site externally, but cannot save the record, once I hit the "Save" button it asks for authorization, but on my other sites I have set-up the same way it works perfectly. I actually copied this site from one of the existing ones and changed the pages and code for the new site. – Nicko Murphy Dec 8 '16 at 14:14
  • Do I need to add any triggers or other mechanisms to carry the data from the fields onto my Organisation's Salesforce page? – Nicko Murphy Dec 8 '16 at 14:15
  • No. something the public profile don't have access to process save action. which object you are updating ? do you have any re-direct code. ? Check the data is saved in db before getting. – bharath Dec 8 '16 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.