core-jvm
core2-jvm (latest)core-jvm
  • Home
  • Features
  • Examples
  • Spec
  • Guides
  • Sandbox
  • Step Studio
  • Step
    • Action
    • Behavior
    • External
    • Help
    • Link Handler
    • Navigation
    • Persist Async
    • Polling
    • Refresh On Change
    • Step Error
    • Summary
    • Upload
    • Validate Async
    • Schema
    • All Of Schema
    • Array Schema
    • Blob Schema
    • Boolean Schema
    • Const Schema
    • Integer Schema
    • Number Schema
    • Object Schema
    • One Of Schema
    • String Schema
    • Layout
    • Alert Layout
    • Box Layout
    • Button Layout
    • Columns Layout
    • Decision Layout
    • Form Layout
    • Heading Layout
    • Image Layout
    • Instructions Layout
    • List Layout
    • Loading Indicator Layout
    • Markdown Layout
    • Modal Layout
    • Paragraph Layout
    • Review Layout
    • Search Layout
    • Status List Layout
    • Action Response Body
    • Error Response Body
    • Flow Response
    • Search Response Body
    • Search Result
    • Align
    • Autocapitalization Type
    • Autocomplete Token
    • Context
    • Icon
    • Image
    • Size
These docs refer to the older 1.x release of Dynamic Flow.
Go to the latest docs

Array Schema

Android - 8.25.0 iOS - 11539 Web - 2.5.0

Represents an array of data in the submission.

Arrays are either a list or a tuple:

  • A list is a set of fields which can be repeated a number of times, with each set being an element in the array.
  • A tuple is a fixed set of fields, where each field corresponds to an element in the array.

Subtypes

List

A variable length array where each item matches the items JSON schema. This can be used, for example, to create a repeating form section, or multi-file upload.

If no items are entered, the value for submission is an empty array.

Properties

PropertyTypeRequiredDescription
$idStringNoA unique id which can be used to refer to the schema.
addItemTitleStringYesThe title for the add a new item, and the title for the screen to enter the item info.
alertAlertLayoutNoConfigure an alert which will be displayed above the UI for this schema. This can be used to provide warnings or additional information to the user, but shouldn't be used for validation. For client-side validation please see the validation available on each schema type, or see Validate Async and Action for server-side validation.
analyticsIdStringNoAn internal id which is attached to analytics events relating to the schema. It allows you to override $id during event emission, it is not user-facing and does not have to be unique within the step.
controlStringNoAn identifier which can be used to request the client use a particular UI control to represent this schema.
descriptionStringNoA user-facing description for the schema.
disabledBooleanNoIf true, the UI for this schema will not accept input, but the corresponding data will still be submitted. Defaults to false.
editItemTitleStringYesThe title for the screen to edit the item info.
hiddenBooleanNoIf true, no UI will be shown to the user for this schema, but the corresponding data will still be submitted. Defaults to false.
iconIconNoAn icon which the client can use to represent this schema.
imageImageNoAn image which the client can use to represent this schema.
itemsSchemaYesA schema which describes the structure of each array element.
keywordsArray<String>NoA list of keywords that can be used when searching or filtering items in a One Of Schema. Only applies when this schema is child schema in a One Of Schema.
maxItemsIntNoThe maximum number of items in the array.
minItemsIntNoThe minimum number of items in the array.
persistAsyncPersistAsyncNo
placeholderStringNoA user-facing placeholder value to use for the field. This can be used to provide an example of the expected input.
summarySummary.SummariserNoConfigure how this schema will be summarised when included in an Array Schema.
titleStringNoA user-facing title for the schema.
typeStringYesIt must be array.
validationAsyncValidateAsyncNo
validationMessagesMap<String, String>NoAn object where each property/value pair is the name of a validation property (e.g. maximum) to the user-facing error message to display if the validation fails.

Tuple

A fixed-length array where each schema represents the data at the corresponding element in the array.

As ordering needs to remain consistent, the submission value will include null values where applicable.

The minItems and maxItems validation has no purpose for a tuple, and should be ignored if provided.

Properties

PropertyTypeRequiredDescription
$idStringNoA unique id which can be used to refer to the schema.
alertAlertLayoutNoConfigure an alert which will be displayed above the UI for this schema. This can be used to provide warnings or additional information to the user, but shouldn't be used for validation. For client-side validation please see the validation available on each schema type, or see Validate Async and Action for server-side validation.
analyticsIdStringNoAn internal id which is attached to analytics events relating to the schema. It allows you to override $id during event emission, it is not user-facing and does not have to be unique within the step.
controlStringNoAn identifier which can be used to request the client use a particular UI control to represent this schema.
descriptionStringNoA user-facing description for the schema.
disabledBooleanNoIf true, the UI for this schema will not accept input, but the corresponding data will still be submitted. Defaults to false.
hiddenBooleanNoIf true, no UI will be shown to the user for this schema, but the corresponding data will still be submitted. Defaults to false.
iconIconNoAn icon which the client can use to represent this schema.
imageImageNoAn image which the client can use to represent this schema.
itemsArray<Schema>YesAn array of schemas which define each element that appears in this array.
keywordsArray<String>NoA list of keywords that can be used when searching or filtering items in a One Of Schema. Only applies when this schema is child schema in a One Of Schema.
persistAsyncPersistAsyncNo
summarySummary.ProviderNoConfigure how this schema will be summarised when included in an Array Schema.
titleStringNoA user-facing title for the schema.
typeStringYesIt must be array.
validationAsyncValidateAsyncNo