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
manjunath vivekmanjunath vivek 

Not able to retrieve fields from contact.

Not able to retrieve fields from contact.

<apex:page standardController="contact" recordSetVar="contacts" >
<apex:form >
<apex:pageBlock title="Viewing Contacts">
<apex:pageBlockTable value="{!contacts}" var="c">
<apex:column value="{!c.name}"/>
</apex:pageBlockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!Save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Kenny JacobsonKenny Jacobson
This code works for me...
YuchenYuchen
The code looks good. Maybe you can check the Object Level Security or Field Level Security for the Profile. Also give Profile access to this Visualforce Page. When you preview this page, did you see any error?
king kullaiking kullai
hai manjunaath try this code ,,
<apex:page standardController="contact" recordSetVar="contacts" >
    <apex:form >
        <apex:pageBlock title="Viewing Contacts">
            <apex:pageBlockTable value="{!contact}" var="c">
          <apex:column >
            <apex:pageBlockSection >
                <apex:inputField value="{!c.lastname}"/>
                  <apex:inputField value="{!c.Level__c}"/>
                </apex:pageBlockSection>
           </apex:column>
            </apex:pageBlockTable>
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!Save}" />
            </apex:pageBlockButtons>
           </apex:pageBlock>
    </apex:form>
</apex:page>