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

Different results on dev site than public site

I'm new to visualforce and I've make a basic page to learn it.  I'm using standard controllers and no filters. My code below does exactly what I expect it to do, but when I publish the page to the public, 2 of my 4 test records are missing.  Can anyone tell me why?


<apex:page showHeader="false" sidebar="false"
standardController="Opportunity" recordSetVar="listings">
<h1>Land Search</h1>
<apex:dataTable value="{!listings}" var="pitem" rowClasses="odd,even">
<apex:column headerValue="Listings">
<apex:outputText value="{!}"/>
<apex:column headerValue="Acres">
<apex:outputText value="{!pitem.Acres__c}"/>
<apex:column headerValue="List Price">
<apex:outputText value="{!pitem.List_Price__c}"/>
<apex:column headerValue="Comments">
<apex:outputText value="{!pitem.Public_Marketing_Comments__c}"/>






Try going to Setup > Security Controls > Field Accessibility > Choose the Object the fields belong to > View by Profile > choose the profile for your public site..


Then give the two fields that aren't showing up the same settings as the ones that are.


Good luck.