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

inputs

Table of contents

Description:

This key defines which inputs are included in a group within a structure value.

The value is an array of input key name strings that specify which inputs belong to this group.

Appears in:
└── [*]
    └── groups
        └── [*]
            └── inputs
Type:
Array<inputs[*]>
Items:
[*]string#

This key represents an individual input key name string in the values[*].groups[*].inputs array.

The value is a string that specifies the key name of an input to include in a group within a structure value.

Show examplesHide examples

In this example, we have configured a group to include the title input.

Copied to clipboard
_structures:
  article_information:
    values:
      - label: Blog
        value:
          title: 
          subtitle: 
          author: 
        groups:
          - heading: Titles
            inputs:
              - title
              - subtitle
          - heading: Details
            inputs:
              - author
{
  "_structures": {
    "article_information": {
      "values": [
        {
          "label": "Blog",
          "value": {
            "title": null,
            "subtitle": null,
            "author": null
          },
          "groups": [
            {
              "heading": "Titles",
              "inputs": [
                "title",
                "subtitle"
              ]
            },
            {
              "heading": "Details",
              "inputs": [
                "author"
              ]
            }
          ]
        }
      ]
    }
  }
}
Examples:

In this example, we have configured a group to include the title and subtitle inputs.

Copied to clipboard
_structures:
  article_information:
    values:
      - label: Blog
        value:
          title: 
          subtitle: 
          author: 
        groups:
          - heading: Titles
            inputs:
              - title
              - subtitle
          - heading: Details
            inputs:
              - author
{
  "_structures": {
    "article_information": {
      "values": [
        {
          "label": "Blog",
          "value": {
            "title": null,
            "subtitle": null,
            "author": null
          },
          "groups": [
            {
              "heading": "Titles",
              "inputs": [
                "title",
                "subtitle"
              ]
            },
            {
              "heading": "Details",
              "inputs": [
                "author"
              ]
            }
          ]
        }
      ]
    }
  }
}
Open in a new tab