☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

Array Empty Type

Table of contents

Description:

This key defines how an 'empty' value will be saved. Does not apply to existing empty values.

Appears in:
└── _inputs
    └── *
        ├── Multiselect Input
        │   └── options
        │       └── Array Empty Type
        ├── Multichoice Input
        │   └── options
        │       └── Array Empty Type
        └── Array Input
            └── options
                └── Array Empty Type
Type:
string
Default value:
null
Allowed values:
null
array
Examples:

In this example, we have configured how empty array values will be saved.

Copied to clipboard
_inputs:
  tags:
    type: array
    options:
      empty_type: array
{
  "_inputs": {
    "tags": {
      "type": "array",
      "options": {
        "empty_type": "array"
      }
    }
  }
}
Open in a new tab