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

value_key

Table of contents

Description:

This key defines the key used for mapping between saved values and objects in values.

This changes how the input saves selected values to match.

Defaults to checking for "id", "uuid", "path", "title", then "name".

Has no effect unless values is an array of objects, the key is used instead for objects, and the value itself is used for primitive types.

Appears in:
└── _inputs
    └── *
        ├── Select Input
        │   └── options
        │       └── value_key
        ├── Multiselect Input
        │   └── options
        │       └── value_key
        ├── Choice Input
        │   └── options
        │       └── value_key
        └── Multichoice Input
            └── options
                └── value_key
Type:
string
Examples:
Open in a new tab