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

Number 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
    └── *
        ├── Number Input
        │   └── options
        │       └── Number Empty Type
        └── Range Input
            └── options
                └── Number Empty Type
Type:
string
Default value:
null
Allowed values:
null
number
Examples:

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

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