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

allow_create

Table of contents

Description:

This key toggles whether CloudCannon will allow new text values to be created at edit time.

Setting this key to true will allow new text values to be created at edit time.

Appears in:
└── _inputs
    └── *
        ├── Select Input
        │   └── options
        │       └── allow_create
        └── Multiselect Input
            └── options
                └── allow_create
Type:
boolean
Default value:
false
Examples:

In this example, CloudCannon will allow users to add new values to a Select Input.

Copied to clipboard
_inputs:
  category:
    type: select
    options:
      values:
        - Blog
        - News
      allow_create: true
{
  "_inputs": {
    "category": {
      "type": "select",
      "options": {
        "values": [
          "Blog",
          "News"
        ],
        "allow_create": true
      }
    }
  }
}
Open in a new tab