---
title: PassFieldContent
framework: walletpasses
role: symbol
role_heading: Object
path: walletpasses/passfieldcontent
---

# PassFieldContent

An object that represents the information to display in a field on a pass.

## Declaration

```data
object PassFieldContent
```

## Properties

attributedValue: The value of the field, including HTML markup for links. The only supported tag is the <a> tag and its href attribute. The value of this key overrides that of the value key. For example, the following is a key-value pair that specifies a link with the text “Edit my profile”: ”attributedValue”: “<a href=’http://example.com/customers/123’>Edit my profile</a>” The attributed value isn’t used for watchOS; use the value field instead. changeMessage: A format string for the alert text to display when the pass updates. The format string needs to contain the escape %@, which the field’s new value replaces. For example, Gate changed to %@. You need to provide a value for the system to show a change notification. This field isn’t used for watchOS. currencyCode: The currency code to use for the value of the field. dataDetectorTypes: The data detectors to apply to the value of a field on the back of the pass. The default is to apply all data detectors. To use no data detectors, specify an empty array. You don’t use data detectors for fields on the front of the pass. This field isn’t used for watchOS. dateStyle: The style of the date to display in the field. ignoresTimeZone: A Boolean value that controls the time zone for the time and date to display in the field. The default value is false, which displays the time and date using the current device’s time zone. Otherwise, the time and date appear in the time zone associated with the date and time of value. This key doesn’t affect the pass relevance calculation. isRelative: A Boolean value that controls whether the date appears as a relative date. The default value is false, which displays the date as an absolute date. This key doesn’t affect  the pass relevance calculation. key: A unique key that identifies a field in the pass; for example, “departure-gate”. label: The text for a field label. numberStyle: The style of the number to display in the field. Formatter styles have the same meaning as the formats with corresponding names in NumberFormatter.Style. textAlignment: The alignment for the content of a field. The default is natural alignment, which aligns the text based on its script direction. This key is invalid for primary and back fields. timeStyle: The style of the time displayed in the field. value: The value to use for the field; for example, 42. A date or time value needs to include a time zone.

## Mentioned in

Building a Pass Creating the Source for a Pass

## Discussion

Discussion note: Wallet uses data detectors to add links for text shown on the back of the pass.

## Relationships

### Inherited By

- [PassFields.AdditionalInfoFields](walletpasses/passfields/additionalinfofields-data.dictionary.md)
- [PassFields.AuxiliaryFields](walletpasses/passfields/auxiliaryfields-data.dictionary.md)
- [PassFields.BackFields](walletpasses/passfields/backfields-data.dictionary.md)
- [PassFields.HeaderFields](walletpasses/passfields/headerfields-data.dictionary.md)
- [PassFields.PrimaryFields](walletpasses/passfields/primaryfields-data.dictionary.md)
- [PassFields.SecondaryFields](walletpasses/passfields/secondaryfields-data.dictionary.md)
- [UpcomingPassInformationEntry.AdditionalInfoFields](walletpasses/upcomingpassinformationentry/additionalinfofields-data.dictionary.md)
- [UpcomingPassInformationEntry.BackFields](walletpasses/upcomingpassinformationentry/backfields-data.dictionary.md)

## See Also

### Adding content

- [PassFields](walletpasses/passfields.md)
