---
schema_version: "1"
id: f6cc6006403cbfd86936c6a5ecae41a0387bd30db5402baa3ee95c8f7a778939
title: $FieldSet
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/variables/pages-variables-global-fieldset.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-variables-global-fieldset.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b71cfd0047c603fa0b6b0d196409409a37ae3827234b7b9b447023123e3adb63
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# $FieldSet

Provides access to a field set defined in your organization.

## Usage

Use this in your Visualforce pages to dynamically iterate over fields in a field set. You must prefix this global variable with a reference to the standard or custom object that has the field set.

## Example

```visualforce
<apex:page standardController="Account">
    <apex:repeat value="{!$ObjectType.Account.FieldSets.myFieldSetName}" var="field">
        <apex:outputText value="{!field}" />
    </apex:repeat>
</apex:page>
```

