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
gbrown17gbrown17 

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

sslpsslp

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

asish1989asish1989

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 

 

    

vishal@forcevishal@force

@sslp is correct. It it because of security issue. You need to give access to these fields in your Sites Profile.

Chamil MadusankaChamil Madusanka

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.