1. Fields
  2. Section Field

Fields

Section Field

Used to create a section of fields. This is generally used to create an object. Adds a section of fields to an action. The section can contain multiple other Stubber fields, including more section fields. The value of the section field will be a single value, an object, containing the nested fields' names as keys, and each respective field's value as the value of the corresponding key.

Basic usage

editor
        {
  "fieldtype": "section",
  "fields": {
    "name": {
      "fieldtype": "text"
    },
    "email": {
      "fieldtype": "email"
    }
    "location": {
      "fieldtype": "map"
    },
    "job": {
      "fieldtype": "section",
      "fields": {
        "company": {
          "fieldtype": "text"
        },
        "position": {
          "fieldtype": "text"
        },
        "signature": {
          "fieldtype": "signature"
        }
      }
    }
  }
}

      

Parameters

See fields for common parameters.

fields

optional
object

Multiple individual Stubber field specifications can be added to this parameter of a section field. Each field can have its own allowed parameters, as would be the case for a normal top level field.


Result

Examples