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
theomantheoman 

VisualForce search page exposed on public site

I have a search field exposed on our public site.
apex:page > <form action="/search/SmartSearch" method="get"> <input id="phSearchInput" type="text" name="str"/> <input type="submit" value="Search"/> </form> </apex:page>

It's returning results to users logged in, however for public users it results in an error page.

I'm not sure what I need to add to make the results show up for visitors to our public site.

This is for non-authenticated, non-Community access.
 
Boris BachovskiBoris Bachovski
Ensure all related pages and controllers are available for the public guest user. Navigate to 
"Settings -> Develop -> Sites -> Select the site -> Public Access Settings"
and check whether the appropriate pages and classes are visible for this profile