Skip to main content

Fields

Overview

Fields enable you to store and manage content in Dopt. Fields are arbitrary key value pairs that you can define as part of a step block. These fields can then be pulled down via SDK and used in your product experience. This allows you to keep your content in Dopt so you can update it without having to make a subsequent code change or deployment.

Types

Fields support content of various types:

TypeDescriptionExample usage
Text field icon
Text
Content that can be encapsulated as a stringTitle, description, URL
Number field icon
Number
Numerical content like integers or decimalsSpacing value, border radius
Boolean field icon
Boolean
Binary content that can be constrained to true or falseShow/hide a control

Configurations

Field configurations determine the shape of fields. Fields allow for rich configuration such as display name, identifier, type, default value, description, and display order. Learn more →

Fields are configured with an identifier similar to a flow. This is the key you’ll use to access the field via SDK.

Adding or updating a field configuration will prompt a version change. This guarantees that any field configuration stays constant for any particular flow version so when you develop against it, you can be assured that the fields you reach for are the ones you expect.

Values

Field values store the content associated with fields. You can access field values using the field’s identifier through the SDKs.

Fields will start out with their configured default value. Any update to a field value can be done without needing to commit another version of the flow — it will automatically be updated wherever you use it in your product. Learn more →

Each flow version will keep track of its own set of field values. For instance, the field values for version 1 of a flow can differ from version 3. This can be helpful for iterating on content between flow versions.