+ Start a Discussion
aka_floaka_flo 

Mailing Address Fields not Displaying on Visualforce page

I have the following page code; however, I am running into an issue, where the mailing input fields below are not being displayed on the page.  Does anyone know the reason for this? Thanks.

 

<apex:page standardController="Contact" sidebar="true">
    <apex:sectionHeader title="Contact Edit" subtitle="{!Contact.name}"/>
        <apex:form >
          <apex:pageBlock title="Contact Edit" id="thePageBlock" mode="edit">
            <apex:pageBlockButtons >
                    <apex:commandButton value="Save" action="{!save}"/>
                    <apex:commandButton value="Cancel" action="{!cancel}"/>                
            </apex:pageBlockButtons>
             <apex:actionRegion >
                <apex:pageBlockSection title="Information" columns="2">
                 <apex:inputField value="{!Contact.FirstName}"/>
                <apex:inputField value="{!Contact.LastName}"/>
                <apex:inputField value="{!Contact.Former_GE_Employee__c}"/>
                <apex:inputField value="{!Contact.Title}"/>

                <apex:inputField value="{!Contact.Contact_for_a__c}">
  <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>
                </apex:inputField>
                  </apex:pageBlockSection>

                <apex:actionStatus startText="applying value..." id="status"/>
                              </apex:actionRegion>

                           <apex:pageBlockSection columns="2"
             rendered="{!Contact.Contact_for_a__c == 'Prospect'}">
                 <apex:inputField value="{!Contact.AccountId}"/>
                 </apex:pageblocksection>
                           <apex:pageBlockSection columns="2"
             rendered="{!Contact.Contact_for_a__c == 'Association'}">
                 <apex:inputfield value="{!Contact.Association__c}"/>
                 </apex:pageblocksection>
                 <apex:pageBlockSection columns="2"
             rendered="{!Contact.Contact_for_a__c == 'Competitor'}">
                 <apex:inputfield value="{!Contact.Competitor__c}"/>
                 </apex:pageblocksection>
                 <apex:pageBlockSection columns="2"
             rendered="{!Contact.Contact_for_a__c == 'Consultant'}">
                 <apex:inputfield value="{!Contact.Consultant__c}"/>
                 </apex:pageblocksection>
                  <apex:pageblocksection columns="2">
                <apex:inputField value="{!Contact.Department__c}"/>
                 <apex:inputField value="{!Contact.Main_Point__c}"/>
                <apex:inputField value="{!Contact.Former_GE_Employee__c}"/>
                <apex:inputField value="{!Contact.User_In__c}"/>
                <apex:inputField value="{!Contact.What_was_their_experience_with_the_tools__c}"/>
                <apex:inputField value="{!Contact.No_Longer_with_Company__c}"/>
           </apex:pageblocksection>
           <apex:pageBlockSection title="Phone & Address Details" columns="2">
                 <apex:inputField value="{!Contact.Email}"/>
                 <apex:inputField value="{!Contact.MailingStreet}"/>
                <apex:inputField value="{!Contact.Phone}"/>
            <apex:inputField value="{!Contact.MailingCity}"/>
                <apex:inputField value="{!Contact.MobilePhone}"/>
                 <apex:inputField value="{!Contact.MailingState}"/>
                <apex:inputField value="{!Contact.HomePhone}"/>
            <apex:inputField value="{!Contact.MailingPostalCode}"/>
</apex:pageblockSEction>
<apex:pageblocksection title="Additional Information" columns="2">
<apex:inputField value="{!Contact.Description}"/>

</apex:pageblocksection>
                         </apex:pageBlock>
     </apex:form>

kiranmutturukiranmutturu

i am getting the the page with all the values ....could u plz  provide me wats the error or prob in brief?

kiranmutturukiranmutturu

first check it out your field accessibility in your FLS(field level security) for your profile..

aka_floaka_flo

It appears that everyone has access to view these fields.  I am not receiving an error; however the fields do not appear in the display on the edit page.  This is what is confusing me.  I do not even know where to start looking, since there is no error.

 

Thoughts?

aka_floaka_flo

Any thoughts on what to do now?

aka_floaka_flo

What is REALLY weird is that my co-worker can see these fields.  However, I can't see them in Firefox or Internet Explorer.  I have System Administrator permissions and she is just a system user.  Any thoughts?

sfdcfoxsfdcfox

"System Administrator" is not a guarantee that you can see or edit all fields, at least not directly. I'd revisit your FLS settings and make sure you really do have Visibility checked. I know it sounds stupid, but we've all made that mistake. Try running a report and see if you can see the fields, or try pulling up a specific record. I can't seem to think of any other reason why they wouldn't appear in a Visualforce page except for FLS, so that's most likely the culprit.

aka_floaka_flo

after working with my co-worker, we realized that her browser was caching the page and it was showing the older version.  Now she can't see those fields either.

 

How do I get to the field level security section?

sfdcfoxsfdcfox

It happens. Try going to Setup > Manage Users > Profiles > System Administrator (not Edit), scroll to Field Level Security, choose View next to the object you're working on, click Edit, then check the Visible boxes for the fields you're not seeing. This should clear up your problem. You'll want to repeat this exercise for each profile that's having the problem.

 

This may have happened if you were on Professional Edition at some point, then you removed the address fields, then upgraded to Enterprise Edition.

aka_floaka_flo

This is still not working for me.  Does anyone else have any ideas?

 

I am in Professional Edition, so I don't have an option for reviewing or updating the field level security.