You need to sign in to do that
Don't have an account?
gbrown17
Visualforce page not loading all fields
Hey everyone, I'm still new to Visualforce, I've created a couple pages but I've run in to a problem where the page is not displaying correctly. When I edit the page in development mode, everything looks fine but when I view the page on the site (http://collisionmax.force.com/agentsportal110), it only shows the first field. Any idea why this is happening?
Here is my code -
<apex:page standardController="Agent_Portal__c" showHeader="false"> <apex:image value="http://www.collisionmaxagents.com/NE-Philadelphia.jpg"></apex:image> <apex:form > <apex:pageBlock mode="New"> <apex:pageBlockSection title="Referral Information" columns="1"> <apex:pageBlockSection > <apex:inputField value="{!Agent_Portal__c.Insured_s_Name__c}"/> </apex:pageBlockSection> <apex:pageBlockSection > <apex:inputField value="{!Agent_Portal__c.Insured_s_Phone__c}"/> </apex:pageBlockSection> <apex:pageBlockSection columns="1" > <apex:inputField value="{!Agent_Portal__c.Agency_Name__c}" required="true"/> </apex:pageblocksection> <apex:pageBlockSection > <apex:inputField value="{!Agent_Portal__c.Agency_Contact__c}"/> </apex:pageBlockSection> <apex:pageBlockSection > <apex:inputField value="{!Agent_Portal__c.Insurance_Company__c}"/> </apex:pageBlockSection> <apex:pageBlockSection > <apex:inputField value="{!Agent_Portal__c.Rental_Coverage__c}"/> </apex:pageBlockSection> <apex:pageBlockSection > <apex:inputField value="{!Agent_Portal__c.Additional_Comments__c}"/> </apex:pageBlockSection> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
Thanks,
Greg
Did you check field level security for fields that you can't see?
Setup/develop/sites/public access settings->Agent_Portal__c
also try launching the page inside SFDC as a VF page, if you can see all the fields than it is most likely an access issue for sites profile
Hi
use pageBlocksectionItem command .
<apex:page>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockSectionItem>
<apex:inputField............./>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
Did this post answers your question if so please mark it solved
@sslp is correct. It it because of security issue. You need to give access to these fields in your Sites Profile.
Field level security is the problem. Check your profile for exsiting field level security.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.