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
Jimmy ThakkarJimmy Thakkar 

visualforce page not accessible in community for anonymous?

Hi,

I'm facing an issue. 
I've one community in which I've kept one vf page and client is expecting that vf page should be shown to anonymous visiters (without logging in) too.


Any Idea?

Thanks in Advance

Thanks

Khan AnasKhan Anas (Salesforce Developers) 
Hi Jimmy,

Greetings to you!

If you want to access your visualforce page without logging in salesforce you can use sites, just set your Visualforce Page the default landing page on site.

You need to make sure that the visualforce page which you created has access to the Guest user profile. To navigate to the Guest user, do as below:

Go to Setup -> Develop -> Sites -> Click Site name -> Public Access Settings 

Make sure you add your Visualforce page under Enabled Visualforce Page Access related list section. Also make sure if you have any object, fields exposed via Visualforce page are accessible by this profile.

Please refer to the below links which might help you further.

https://salesforce.stackexchange.com/questions/110901/guest-user-access-to-custom-community-login-page

https://salesforce.stackexchange.com/questions/17419/adding-visualforce-page-to-sites

https://salesforce.stackexchange.com/questions/163812/how-can-users-access-my-page-without-logging-in

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas