Radio Button

Create a Radio Button Field Type

mutation {
  fields(
    boardId: "615be38975138d0001c501a7"
    dto: {
      name: "Option"
      description: null
      type: "radioButton"
      defaultValue: null
      unique: false
      typeData: {
        hint: "Pick any of the options"
        options: ["option1", "option2"]
        required: true
      }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        options
        hint
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "fields": {
            "id": "6175dc68354d40000159d4e9",
            "fieldsSecret": {
                "name": "Option",
                "description": null,
                "type": "radioButton",
                "typeData": {
                    "placeholder": null,
                    "required": true,
                    "options": [
                        "option1",
                        "option2"
                    ],
                    "hint": "Pick any of the options"
                },
                "unique": false,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 22:21:28 GMT 2021",
            "lastModifiedTime": null
        }
    }
}

Update a Radio Button Field Type

mutation {
  updateFields(
    boardId: "615be38975138d0001c501a7"
    fieldId: "6175dc68354d40000159d4e9"
    dto: {
      name: "Options"
      description: "This is a Radio Button Field type"
      type: "radioButton"
      defaultValue: null
      unique: true
      typeData: {
        hint: "Pick any of the options"
        options: ["option1", "option2"]
        required: false
      }
    }
  ) {
    id
    fieldsSecret {
      name
      description
      type
      typeData {
        placeholder
        required
        options
        hint
      }
      unique
      defaultValue
    }
    boardId
    createdTime
    lastModifiedTime
  }
}
{
    "data": {
        "updateFields": {
            "id": "6175dc68354d40000159d4e9",
            "fieldsSecret": {
                "name": "Options",
                "description": "This is a Radio Button Field type",
                "type": "radioButton",
                "typeData": {
                    "placeholder": null,
                    "required": false,
                    "options": [
                        "option1",
                        "option2"
                    ],
                    "hint": "Pick any of the options"
                },
                "unique": true,
                "defaultValue": null
            },
            "boardId": "615be38975138d0001c501a7",
            "createdTime": "Sun Oct 24 22:21:28 GMT 2021",
            "lastModifiedTime": "Sun Oct 24 22:25:18 GMT 2021"
        }
    }
}

Delete a Radio Button Field Type

mutation {
  deleteFields(
    boardId: "615be38975138d0001c501a7"
    fieldId: "6175dc68354d40000159d4e9"
  )
}
{
    "data": {
        "deleteFields": "SUCCESS"
    }
}