Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I came across this site and wanted my own page to be publicly view-able without any logins. How can I do this?

Thanks
MnZ

share|improve this question

2 Answers 2

up vote 6 down vote accepted

Easy! After creating your Visualforce page:

  1. go to Setup > Develop > Sites,

  2. register your Force.com subdomain name,

  3. create a new Force.com Site

  4. next to 'Site Visualforce Pages' click Edit

  5. add your page to the list of Enabled Visualforce Pages

share|improve this answer
    
I tried this but as a developer I guess I can't create any more sites nor delete any. Does that mean I need to create another account to try it out ? Anyway I'm accepting your answer.Thanks :) –  MnZ Dec 18 '13 at 11:36
    
Sounds like you already have one set up :-) use that? Or just create another Developer Edition account and drop a new Site in there. –  bigassforce Dec 18 '13 at 11:48
    
I added my page to my site. It is saying "Authorization Required You must first log in or register before accessing this page. If you have forgotten your password, click Forgot Password to reset it." –  MnZ Dec 18 '13 at 13:07
    
D'oh! Go to Setup > Monitoring > Debug Logs, create one for Site Guest User and look for anything interesting. If that doesn't yield and leads, maybe raise a new question showing the source of your Page, Controller and any Extensions. –  bigassforce Dec 18 '13 at 13:26
1  
custom object permission was required. Solved ! –  MnZ Dec 18 '13 at 13:28

You need to go to your site, click on the name and click edit on the "Site Visualforce Pages" section, add the page to the site.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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