> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create collection field

> Adds a typed field to an existing CMS collection.

`webflow.createCollectionField` adds a typed field to an existing CMS collection.

## Example

```ts automations/webflow-create-collection-field.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { webflow } from "automate.ax/webflow"

export default automation("Create collection field", () => {
  onDashboardRun({ title: "Create collection field" })

  webflow.createCollectionField({
    collectionId: "collection-id",
    displayName: "Related article",
    isRequired: false,
    metadata: { collectionId: "related-collection-id" },
    type: "Reference",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires the `cms:write` OAuth scope.

| Field          | Type                                                                | Required | Description                  |
| -------------- | ------------------------------------------------------------------- | -------- | ---------------------------- |
| `id`           | `string`                                                            | No       | Webflow `id` value.          |
| `isEditable`   | `boolean`                                                           | No       | Webflow `isEditable` value.  |
| `isRequired`   | `boolean`                                                           | No       | Webflow `isRequired` value.  |
| `type`         | `Webflow.StaticFieldType \| "Option" \| Webflow.ReferenceFieldType` | Yes      | Webflow `type` value.        |
| `displayName`  | `string`                                                            | Yes      | Webflow `displayName` value. |
| `helpText`     | `string`                                                            | No       | Webflow `helpText` value.    |
| `collectionId` | `string`                                                            | Yes      | Webflow CMS collection ID.   |

## Output

Returns an object with the fields below. Automate.ax converts provider `Date` values to ISO 8601 strings.

| Field         | Type                                                                | Description                  |
| ------------- | ------------------------------------------------------------------- | ---------------------------- |
| `id`          | `string`                                                            | Webflow `id` value.          |
| `isEditable`  | `boolean`                                                           | Webflow `isEditable` value.  |
| `isRequired`  | `boolean`                                                           | Webflow `isRequired` value.  |
| `type`        | `Webflow.StaticFieldType \| "Option" \| Webflow.ReferenceFieldType` | Webflow `type` value.        |
| `displayName` | `string`                                                            | Webflow `displayName` value. |
| `helpText`    | `string`                                                            | Webflow `helpText` value.    |
