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
Bareera NoorBareera Noor 

Trailhead Module: Learn Visual force Basics

I wrote this code according to the instructions given in the "Use Standard List Controllers"

<apex:page standardController="Contact" recordSetVar="contacts">
    <apex:pageBlock title="Contacts List">
         
        <!-- Contacts List -->
        <apex:pageBlockTable value="{! contacts }" var="ct">
            <apex:column value="{! ct.FirstName }"/>
            <apex:column value="{! ct.LastName }"/>
            <apex:column value="{! ct.Email }"/>
            <apex:column value="{! ct.Account.Name }"/>
        </apex:pageBlockTable>
         
    </apex:pageBlock>
</apex:page>

But when In click the preview button I am not getting the desired output. My contactlist is not showing any fields.

User-added image
sfdcMonkey.comsfdcMonkey.com
hi Bareera Noor,
 Make sure you have some (min. 1 ) contact records in your org.
let me know if it helps you
thanks