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

value

Table of contents

Description:

This key defines which nested inputs the Structure value should add to an Object or Array input.

You must define this key for the Structure value to function.

Nested keys can be any input you require in your Object or Array.

For more information, please read our documentation on configuring an Object input and configuring and Array input.

Appears in:
└── [*]
    └── value
Type:
value Required
Examples:

In this example we want to populate the details Object input with the nested keys title, subtitle, and author we have defined under the values.value key.

Copied to clipboard
_structures:
  article_information:
    values:
      - label: Blog
        value:
          title: 
          subtitle: 
          author: 
_inputs:
  details:
    type: object
    options:
      structures: _structures.article_information
{
  "_structures": {
    "article_information": {
      "values": [
        {
          "label": "Blog",
          "value": {
            "title": null,
            "subtitle": null,
            "author": null
          }
        }
      ]
    }
  },
  "_inputs": {
    "details": {
      "type": "object",
      "options": {
        "structures": "_structures.article_information"
      }
    }
  }
}
Open in a new tab