Cert++
Close

Formula versus stored field types

Key Takeaway

Use a formula field when Salesforce should calculate a value, and use a stored field type when users must enter or edit it. You can't switch between the two by changing the field type.

A formula field works out its value automatically, much like a spreadsheet cell that adds up other columns. Stored field types hold values that users enter. Your choice decides whether users can edit the value, whether old records need backfilling, and whether you can change the field type later.

When to use a stored field type

Formula fields are read-only on record detail pages, so users can't type a value into them. When users must enter or edit a value themselves, use a stored field type. Examples include:

  • Text, which takes up to 255 characters
  • Number, which takes any number and removes leading zeros
  • Date
  • Checkbox, which records true or false
  • Picklist, which lets users pick one value from a list you define
Platform App Builder Study Guide

Checklist progress

0/340Learned

Given a scenario, determine the considerations when selecting or changing a field data type.

0/19

Text and long-text field types

Learn this concept

Number, currency, and percent fields

Learn this concept

Date, Date/Time, and Time fields

Learn this concept

Checkbox versus Yes/No picklist

Learn this concept

Email, Phone, and URL field types

Learn this concept

Global picklist value sets

Learn this concept

Record types and picklist values

Learn this concept

Auto-Number field configuration

Learn this concept

External ID and unique field types

Learn this concept

Geolocation custom fields

Learn this concept

Formula versus stored field types

Learn this concept

Classic encrypted text fields

Learn this concept

Field history tracking

Learn this concept

Blocked custom field type changes

Learn this concept

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform App Builder studiers. 757 members and growing.