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

# Create a form

> Create a new form.

```php Laravel wrap theme={"dark"}
use Fetchski\AttractCmsLaravel\Facades\Attract;

$form = Attract::forms()->createForm(title: 'Example title', visibility: 'public', email: 'jo@acme.example');
```

```json 200 wrap theme={"dark"}
{
  "title": "Example title",
  "contents": {
    "metaType": "area",
    "_id": "clx8m2k4p0000a1b2c3d4e5f6",
    "items": [
      {
        "type": "form-section",
        "_id": "clx8m2k4p0000a1b2c3d4e5f6",
        "metaType": "widget",
        "formFontOverrides": [],
        "formEyebrowEnabled": true,
        "formEyebrow": "Get in touch",
        "formEyebrowColor": "Example form eyebrow color",
        "formEyebrowColorLight": "Example form eyebrow color light",
        "formEyebrowWeight": "bold",
        "formEyebrowSize": "normal",
        "formHeading": "Send us a message",
        "formHeadingColor": "Example form heading color",
        "formHeadingColorLight": "Example form heading color light",
        "formHeadingWeight": "extrabold",
        "formHeadingSize": "normal",
        "formIntro": "Fill out the form below and we’ll get back to you shortly.",
        "formIntroColor": "Example form intro color",
        "formIntroColorLight": "Example form intro color light",
        "formIntroWeight": "normal",
        "formIntroSize": "normal",
        "formBand": "raised",
        "formAccentColor": "Example form accent color",
        "formAccentColorLight": "Example form accent color light",
        "formAlign": "center",
        "formWidth": "normal",
        "formLabelGap": "normal",
        "formBg": "transparent",
        "formBgCustom": "Example form bg custom",
        "formBgLight": "inherit",
        "formBgLightCustom": "Example form bg light custom",
        "formSubmitLabel": "Submit",
        "formSubmitVariant": "solid",
        "formSubmitSize": "normal",
        "formSubmitRadius": "slight",
        "formSubmitColor": "--fetchski-accent",
        "formSubmitColorLight": "Example form submit color light",
        "formSubmitTextColor": "--fetchski-ink",
        "formSubmitTextColorLight": "Example form submit text color light",
        "formSubmitHoverColor": "Example form submit hover color",
        "formSubmitHoverColorLight": "Example form submit hover color light",
        "formSubmitStyle": "sweep",
        "formSubmitShadowColor": "Example form submit shadow color",
        "formSubmitShadowColorLight": "Example form submit shadow color light",
        "formSubmitAnimation": "lift-scale",
        "formSubmitIcon": "Example form submit icon",
        "formSubmitIconFamily": "classic-regular",
        "formSubmitIconPosition": "before",
        "formSubmitIconNudge": false,
        "_form": [
          {}
        ],
        "sectionCss": {
          "slots": {
            "key": "Example value"
          },
          "css": "Example css",
          "mark": "Example mark"
        },
        "fields": {
          "metaType": "area",
          "_id": "clx8m2k4p0000a1b2c3d4e5f6",
          "items": [
            {}
          ]
        }
      }
    ]
  },
  "slug": "example-slug",
  "visibility": "public",
  "scheduledPublish": "Example scheduled publish",
  "scheduledUnpublish": "Example scheduled unpublish",
  "thankYouHeading": "Example thank you heading",
  "thankYouBody": {
    "metaType": "area",
    "_id": "clx8m2k4p0000a1b2c3d4e5f6",
    "items": [
      {
        "type": "@apostrophecms/rich-text",
        "_id": "clx8m2k4p0000a1b2c3d4e5f6",
        "metaType": "widget",
        "content": "<p>Hello from the API.</p>",
        "sectionCss": {
          "slots": {
            "key": "Example value"
          },
          "css": "Example css",
          "mark": "Example mark"
        }
      }
    ]
  },
  "sendConfirmationEmail": true,
  "emailConfirmationField": "jo@acme.example",
  "emails": [],
  "email": "jo@acme.example",
  "googleSheetSubmissions": true,
  "googleSpreadsheetId": "clx8m2k4p0000a1b2c3d4e5f6",
  "googleSheetName": "Example google sheet name",
  "submitLabel": "Example submit label",
  "enableRecaptcha": true,
  "enableQueryParams": true,
  "queryParamList": [],
  "formActions": [],
  "archived": false,
  "_id": "clx8m2k4p0000a1b2c3d4e5f6",
  "type": "Example type",
  "createdAt": "2026-10-24T09:30:00.000Z",
  "updatedAt": "2026-10-24T09:30:00.000Z",
  "aposShareKey": "k3v9x2m7q1z8w4p6"
}
```

## In your app

A controller answers a route on your app: it calls `createForm()` and returns the answer.

**1. Add the controller**

```php app/Http/Controllers/CreateFormController.php theme={"dark"}
<?php

declare(strict_types=1);

namespace App\Http\Controllers;

use Fetchski\AttractCmsLaravel\Data\Form;
use Fetchski\AttractCmsLaravel\Facades\Attract;

final class CreateFormController
{
    public function __invoke(): Form
    {
        return Attract::forms()->createForm(title: 'Example title', visibility: 'public', email: 'jo@acme.example');
    }
}
```

The other values are the example’s: take yours from the request, a form or your database.

**2. Add the route**

```php routes/web.php theme={"dark"}
use App\Http\Controllers\CreateFormController;
use Illuminate\Support\Facades\Route;

Route::post('/form', CreateFormController::class)->middleware('auth');
```

It acts with your key’s access, so `auth` lets only your signed-in users reach it.

**3. Call it**

Your own page’s form or script sends `POST /form` (a form adds `@csrf`, as every web route checks it), and gets back its answer as JSON. Test it, below, calls it.

> [!TIP]
>
> To keep the call in an Action instead, this writes `app/Actions/Attract/CreateForm.php` (an invokable Action that calls `createForm()`) and its test under `tests/Feature/Actions/Attract/` (Pest when your app has it):
>
> ```bash Terminal theme={"dark"}
> php artisan make:attract-action forms.createForm
> ```

## Call it from the terminal

```bash Terminal theme={"dark"}
php artisan attract:call forms.createForm \
  'title=Example title' \
  visibility=public \
  email=jo@acme.example
```

It calls `createForm()` on your default site and prints its answer as JSON. It writes, so it asks first: add `--force` to skip the question in a script. See [Call any method from the terminal](https://docs.fetchski-attract.com/call-command.md) for every argument type.

> [accordion] Required parameters
>
> Named arguments, e.g. `createForm(title: …)`; leave out the optional ones.
>
> **title** `string` *required*
>
> **Required.** Its title: the name it goes by in every list, and the heading of its page where it has one.
>
> **visibility** `Enums\\Visibility|string` *required*
>
> **Required.** Select whether this content is public or private. One of `public`, `loginRequired`.
>
> **email** `string` *required*
>
> **Required.** The "from" address on this form's emails. A new form starts with the Email in Site settings → Brand; change it here for this form.

> [accordion] Optional parameters
>
> **aposMode** `Enums\\AposMode|string|null`
>
> **Optional.** Leave it out and the site uses `"published"`. `published` (the default) or `draft`. Drafts need a credential that may see them: an API key with the type’s write scope (`content:<type>:write`), or a signed-in editor. The public and a key with only the read scope get 403. One of `draft`, `published`.
>
> **aposLocale** `?string`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. The locale to read or write, e.g. `en` (default: the site’s default locale).
>
> **contents** `FormSectionArea|array\<string, mixed\>|null`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area. A new document starts with `form-section`.
>
> **FormSectionArea (Fetchski\AttractCmsLaravel\Data\FormSectionArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> Always `area`. One of `area`.
>
> **id** `?string`
>
> The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormSectionWidget\>|null`
>
> A list of `FormSectionWidget`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). At most 1 items.
>
> **FormSectionWidget (Fetchski\AttractCmsLaravel\Data\FormSectionWidget)**
>
> A `form-section` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormSectionWidgetType|string` *required*
>
> **Required.** The widget’s type: always `form-section`. One of `form-section`.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **formFontOverrides** `Collection\<int, FormSectionWidgetFormFontOverridesItem\>|null`
>
> A list of `FormSectionWidgetFormFontOverridesItem`. Optional. Set part of this form in a different typeface. Leave empty to follow the site’s fonts (Site design → Typography). At most 4 items.
>
> **FormSectionWidgetFormFontOverridesItem (Fetchski\AttractCmsLaravel\Data\FormSectionWidgetFormFontOverridesItem)**
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **target** `Enums\\Target|string|null`
>
> Which text this typeface replaces. Rows apply in order, so a broad row (Everything) followed by a narrow one (Headings) gives the section a base face plus an exception. One of `all`, `heading`, `body`, `eyebrow`, `button`, `code`.
>
> **source** `Enums\\Source|string|null`
>
> Where the typeface comes from. The first option costs nothing extra — those faces are already loaded. The others load an additional font on pages that use this section. One of `slot`, `curated`, `cdn`, `upload`.
>
> **slot** `Enums\\Slot|string|null`
>
> Set in Site design → Typography. Following the site’s own faces keeps a section on-brand and adds no download. One of `display`, `body`, `accent`.
>
> **curated** `Enums\\Curated|string|null`
>
> Vetted families from Bunny Fonts and Fontshare, with their available weights already verified. One of `archivo`, `bricolage-grotesque`, `clash-display`, `courier-prime`, `dm-mono`, `dm-sans`, `fira-code`, `fraunces`, `general-sans`, `ibm-plex-mono`, `ibm-plex-sans`, `inconsolata`, `inter`, `jetbrains-mono`, `karla`, `lora`, `manrope`, `nunito-sans`, `outfit`, `playfair-display`, `public-sans`, `red-hat-mono`, `satoshi`, `sentient`, `sora`, `source-code-pro`, `source-sans-3`, `source-serif-4`, `space-grotesk`, `space-mono`, `spline-sans-mono`, `supreme`, `switzer`, `syne`, `ubuntu-mono`, `unbounded`, `victor-mono`, `work-sans`, `zodiak`.
>
> **cdnProvider** `Enums\\CdnProvider|string|null`
>
> Where to browse for the family. Pick one, then follow the link below to find the exact name. One of `bunny`, `fontshare`.
>
> **cdnFamily** `?string`
>
> Exactly as the provider’s catalog spells it, e.g. "Space Grotesk" or "Clash Display". A name the provider doesn’t have loads nothing and this row is ignored.
>
> **cdnWeights** `?string`
>
> Comma-separated weights to load, e.g. 400, 700. Empty loads 400, 500, 700. Weights the family doesn’t ship are skipped by the CDN and synthesized by the browser (faux bold) — but a family that ships only ONE weight (Acme, for instance) loads nothing at all unless that weight is among these, so set it explicitly if the typeface doesn’t appear.
>
> **uploads** `Collection\<int, FormSectionWidgetFormFontOverridesItemUploadsItem\>|null`
>
> A list of `FormSectionWidgetFormFontOverridesItemUploadsItem`. One file per weight/style of the SAME typeface. woff2 strongly recommended (smallest, universally supported); woff/ttf/otf also accepted. At most 4 items.
>
> **FormSectionWidgetFormFontOverridesItemUploadsItem (Fetchski\AttractCmsLaravel\Data\FormSectionWidgetFormFontOverridesItemUploadsItem)**
>
> **file** `array\<string, mixed\>` *required*
>
> **Required.** File attachment reference.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **weight** `Enums\\Weight|string|null`
>
> Weight. One of `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`.
>
> **style** `Enums\\Style|string|null`
>
> Style. One of `normal`, `italic`.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **fallback** `Enums\\Fallback|string|null`
>
> Generic system font shown while this typeface loads (and if it fails). Curated picks set this automatically. One of `sans`, `serif`, `mono`.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **formEyebrowEnabled** `?bool`
>
> Show eyebrow.
>
> **formEyebrow** `?string`
>
> Small label shown above the title.
>
> **formEyebrowColor** `?string`
>
> Optional. Overrides the eyebrow + its dash. Leave empty to use the secondary (mint) color.
>
> **formEyebrowColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme color, then the mint default.
>
> **formEyebrowWeight** `Enums\\FormEyebrowWeight|string|null`
>
> Eyebrow weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`.
>
> **formEyebrowSize** `Enums\\FormEyebrowSize|string|null`
>
> Eyebrow size. One of `small`, `normal`, `large`, `xlarge`.
>
> **formHeading** `?string`
>
> Heading.
>
> **formHeadingColor** `?string`
>
> Optional — leave empty to track the theme text color.
>
> **formHeadingColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme color.
>
> **formHeadingWeight** `Enums\\FormHeadingWeight|string|null`
>
> Weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`.
>
> **formHeadingSize** `Enums\\FormHeadingSize|string|null`
>
> Size. One of `small`, `normal`, `large`, `xlarge`, `xxlarge`.
>
> **formIntro** `?string`
>
> Optional short sentence under the heading.
>
> **formIntroColor** `?string`
>
> Optional — leave empty to use the muted text color.
>
> **formIntroColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme color.
>
> **formIntroWeight** `Enums\\FormIntroWeight|string|null`
>
> Weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`.
>
> **formIntroSize** `Enums\\FormIntroSize|string|null`
>
> Size. One of `small`, `normal`, `large`, `xlarge`, `xxlarge`.
>
> **formBand** `Enums\\FormBand|string|null`
>
> Plain sits on the page; Raised is a contained card; Accent is a solid brand-color band. One of `plain`, `raised`, `accent`.
>
> **formAccentColor** `?string`
>
> The accent band color. Leave empty to use the site accent color.
>
> **formAccentColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme color, then the accent.
>
> **formAlign** `Enums\\FormAlign|string|null`
>
> Alignment of the section header (the form fields stay left-aligned for legibility). One of `center`, `left`.
>
> **formWidth** `Enums\\FormWidth|string|null`
>
> Content width. One of `narrow`, `normal`, `wide`.
>
> **formLabelGap** `Enums\\FormLabelGap|string|null`
>
> Vertical space between each field’s label and its input. One of `compact`, `normal`, `roomy`, `spacious`.
>
> **formBg** `Enums\\FormBg|string|null`
>
> The section’s full-width background band in dark mode. Transparent lets the page background show through. The palette options track the site colors; choose “Custom color…” for a specific color. One of `transparent`, `surface`, `raised`, `sunken`, `hill`, `accent-soft`, `custom`.
>
> **formBgCustom** `?string`
>
> Used when “Section background (dark theme)” is set to Custom color.
>
> **formBgLight** `Enums\\FormBgLight|string|null`
>
> “Match dark theme” reuses the dark-theme choice; otherwise set the light-mode band independently. One of `inherit`, `transparent`, `surface`, `raised`, `sunken`, `hill`, `accent-soft`, `custom`.
>
> **formBgLightCustom** `?string`
>
> Used when “Section background (light theme)” is set to Custom color.
>
> **formSubmitLabel** `?string`
>
> The visible button text. Leave empty to hide the button.
>
> **formSubmitVariant** `Enums\\FormSubmitVariant|string|null`
>
> Solid fills with the color; Outline / Soft / Text link use it for the border + text. One of `solid`, `outline`, `soft`, `link`.
>
> **formSubmitSize** `Enums\\FormSubmitSize|string|null`
>
> Button size. One of `small`, `normal`, `large`.
>
> **formSubmitRadius** `Enums\\FormSubmitRadius|string|null`
>
> Corner radius. One of `pill`, `rounded`, `slight`, `square`.
>
> **formSubmitColor** `?string`
>
> Solid fill, or the border + text for the other styles. Defaults to the brand accent; CLEAR it for a transparent, outline-only button.
>
> **formSubmitColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme color. (Brand tokens already flip per theme.)
>
> **formSubmitTextColor** `?string`
>
> The text/icon color. Clear it to derive from the button color (readable on solid fills).
>
> **formSubmitTextColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme label color.
>
> **formSubmitHoverColor** `?string`
>
> Optional. Drives the hover treatment. Leave empty to derive it from the button color.
>
> **formSubmitHoverColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme hover color.
>
> **formSubmitStyle** `Enums\\FormSubmitStyle|string|null`
>
> The hover treatment: a soft shadow, a colored offset shadow, a glow, a fill sweep, or a thicker border. One of `none`, `single`, `dual`, `glow`, `sweep`, `thicken`.
>
> **formSubmitShadowColor** `?string`
>
> Optional. The offset-shadow or glow color on hover. Leave empty to use the site secondary color.
>
> **formSubmitShadowColorLight** `?string`
>
> Optional light-theme override. Falls back to the dark-theme shadow color.
>
> **formSubmitAnimation** `Enums\\FormSubmitAnimation|string|null`
>
> Hover motion. One of `lift`, `scale`, `lift-scale`, `none`.
>
> **formSubmitIcon** `?string`
>
> Any Font Awesome icon name, e.g. star, bolt, arrow-left-to-bracket (no “fa-” prefix). Browse at fontawesome.com/icons.
>
> **formSubmitIconFamily** `Enums\\FormSubmitIconFamily|string|null`
>
> Icon family. One of `classic-regular`, `duotone-regular`, `brands`, `jelly`, `jelly-duo`, `whiteboard`.
>
> **formSubmitIconPosition** `Enums\\FormSubmitIconPosition|string|null`
>
> Which side of the label the icon sits on (when an icon name is set). One of `before`, `after`.
>
> **formSubmitIconNudge** `?bool`
>
> The icon slides toward its side on hover (e.g. an arrow edges outward).
>
> **form** `Collection\<int, array\<string, mixed\>\>|null`
>
> The Form record that stores this form’s submissions and routes them (its Actions / integrations / Google Sheet). Create one in the Forms manager. The fields themselves are built right here on the page. The related `@apostrophecms/form` documents, in order (empty when none). To set it, send a list of `{ "_id": "…" }`, one per document (one at most); a document the site can’t find is left out. At most 1 items.
>
> **sectionCss** `?CustomCSS`
>
> A `CustomCSS`. CSS for this one section, typed into the slot of the part it styles. It wins over Site design → Custom CSS. Nested rules like &:hover, @media (width >= 48rem) and \[data-theme="light"] & work inside a slot.
>
> **CustomCSS (Fetchski\AttractCmsLaravel\Data\CustomCSS)**
>
> **slots** `array\<string, string\>|null`
>
> The CSS typed into each part slot, by slot name.
>
> **css** `?string`
>
> The compiled CSS (read only: rebuilt from `slots`).
>
> **mark** `?string`
>
> The site’s check mark for `css` (read only).
>
> **fields** `?FormSectionFieldsArea`
>
> A `FormSectionFieldsArea`. Add and arrange the form’s fields here — edited live on the page. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormSectionFieldsArea (Fetchski\AttractCmsLaravel\Data\FormSectionFieldsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> Always `area`. One of `area`.
>
> **id** `?string`
>
> The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormConditionalWidget|FormGroupWidget|FormDividerWidget|RichTextWidget\>|null`
>
> A list of `FormSectionFieldsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them).
>
> **FormSectionFieldsAreaItem (Fetchski\AttractCmsLaravel\Data\FormSectionFieldsAreaItem)**
>
> A widget in an area that takes `@apostrophecms/form-text-field`, `@apostrophecms/form-textarea-field`, `@apostrophecms/form-file-field`, `@apostrophecms/form-boolean-field`, `@apostrophecms/form-select-field`, `@apostrophecms/form-radio-field`, `@apostrophecms/form-checkboxes-field`, `@apostrophecms/form-conditional`, `@apostrophecms/form-group`, `@apostrophecms/form-divider`, `@apostrophecms/rich-text`: the one its `type` names.
>
> **FormTextFieldWidget (Fetchski\AttractCmsLaravel\Data\FormTextFieldWidget)**
>
> A `@apostrophecms/form-text-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormTextFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-text-field`. One of `@apostrophecms/form-text-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **inputType** `Enums\\InputType|string|null`
>
> If you are requesting certain formatted information (e.g., email, url, phone number), select the relevant input type here. If not, use "Text". One of `text`, `email`, `tel`, `url`, `date`, `password`.
>
> **placeholder** `?string`
>
> Text to display in the field before someone uses it (e.g., to provide additional directions).
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormTextareaFieldWidget (Fetchski\AttractCmsLaravel\Data\FormTextareaFieldWidget)**
>
> A `@apostrophecms/form-textarea-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormTextareaFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-textarea-field`. One of `@apostrophecms/form-textarea-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **placeholder** `?string`
>
> Text to display in the field before someone uses it (e.g., to provide additional directions).
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormFileFieldWidget (Fetchski\AttractCmsLaravel\Data\FormFileFieldWidget)**
>
> A `@apostrophecms/form-file-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormFileFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-file-field`. One of `@apostrophecms/form-file-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> Allow multiple file attachments.
>
> **limitSize** `?bool`
>
> Limit file size?
>
> **maxSize** `?int`
>
> In Bytes.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormBooleanFieldWidget (Fetchski\AttractCmsLaravel\Data\FormBooleanFieldWidget)**
>
> A `@apostrophecms/form-boolean-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormBooleanFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-boolean-field`. One of `@apostrophecms/form-boolean-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **checked** `?bool`
>
> If "yes," the checkbox will start in the checked state.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormSelectFieldWidget (Fetchski\AttractCmsLaravel\Data\FormSelectFieldWidget)**
>
> A `@apostrophecms/form-select-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormSelectFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-select-field`. One of `@apostrophecms/form-select-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **choices** `Collection\<int, FormSelectFieldWidgetChoicesItem\>` *required*
>
> **Required.** A list of `FormSelectFieldWidgetChoicesItem`. Select input options.
>
> **FormSelectFieldWidgetChoicesItem (Fetchski\AttractCmsLaravel\Data\FormSelectFieldWidgetChoicesItem)**
>
> **label** `string` *required*
>
> **Required.** The readable label displayed to users.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **value** `?string`
>
> The value saved (as text) in the database. If not entered, the label will be used.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> Allow multiple options to be selected.
>
> **size** `?int`
>
> Number of options in the list that should be visible. At least 0.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormRadioFieldWidget (Fetchski\AttractCmsLaravel\Data\FormRadioFieldWidget)**
>
> A `@apostrophecms/form-radio-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormRadioFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-radio-field`. One of `@apostrophecms/form-radio-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **choices** `Collection\<int, FormRadioFieldWidgetChoicesItem\>` *required*
>
> **Required.** A list of `FormRadioFieldWidgetChoicesItem`. Radio input options. At least 1 items.
>
> **FormRadioFieldWidgetChoicesItem (Fetchski\AttractCmsLaravel\Data\FormRadioFieldWidgetChoicesItem)**
>
> **label** `string` *required*
>
> **Required.** The readable label displayed to users.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **value** `?string`
>
> The value saved (as text) in the database. If not entered, the label will be used.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> Allow multiple options to be selected.
>
> **size** `?int`
>
> Number of options in the list that should be visible. At least 0.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormCheckboxesFieldWidget (Fetchski\AttractCmsLaravel\Data\FormCheckboxesFieldWidget)**
>
> A `@apostrophecms/form-checkboxes-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormCheckboxesFieldWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-checkboxes-field`. One of `@apostrophecms/form-checkboxes-field`.
>
> **fieldLabel** `string` *required*
>
> **Required.** Field label.
>
> **choices** `Collection\<int, FormCheckboxesFieldWidgetChoicesItem\>` *required*
>
> **Required.** A list of `FormCheckboxesFieldWidgetChoicesItem`. Checkbox input options. At least 1 items.
>
> **FormCheckboxesFieldWidgetChoicesItem (Fetchski\AttractCmsLaravel\Data\FormCheckboxesFieldWidgetChoicesItem)**
>
> **label** `string` *required*
>
> **Required.** The readable label displayed to users.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **value** `?string`
>
> The value saved (as text) in the database. If not entered, the label will be used.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **required** `?bool`
>
> Is this field required?
>
> **fieldName** `?string`
>
> No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormConditionalWidget (Fetchski\AttractCmsLaravel\Data\FormConditionalWidget)**
>
> A `@apostrophecms/form-conditional` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormConditionalWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-conditional`. One of `@apostrophecms/form-conditional`.
>
> **conditionName** `string` *required*
>
> **Required.** Form field to check.
>
> **conditionValue** `string` *required*
>
> **Required.** Value that activates this group.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **contents** `?FormConditionalContentsArea`
>
> A `FormConditionalContentsArea`. aposForm:conditionalContentsHelp Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormConditionalContentsArea (Fetchski\AttractCmsLaravel\Data\FormConditionalContentsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> Always `area`. One of `area`.
>
> **id** `?string`
>
> The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormDividerWidget|RichTextWidget\>|null`
>
> A list of `FormConditionalContentsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `FormConditionalContentsAreaItem` above.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormGroupWidget (Fetchski\AttractCmsLaravel\Data\FormGroupWidget)**
>
> A `@apostrophecms/form-group` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormGroupWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-group`. One of `@apostrophecms/form-group`.
>
> **label** `string` *required*
>
> **Required.** Group Label.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **contents** `?FormGroupContentsArea`
>
> A `FormGroupContentsArea`. aposForm:groupContentsHelp Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormGroupContentsArea (Fetchski\AttractCmsLaravel\Data\FormGroupContentsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> Always `area`. One of `area`.
>
> **id** `?string`
>
> The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormConditionalWidget|FormDividerWidget|RichTextWidget\>|null`
>
> A list of `FormGroupContentsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `FormGroupContentsAreaItem` above.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **FormDividerWidget (Fetchski\AttractCmsLaravel\Data\FormDividerWidget)**
>
> A `@apostrophecms/form-divider` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormDividerWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/form-divider`. One of `@apostrophecms/form-divider`.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **RichTextWidget (Fetchski\AttractCmsLaravel\Data\RichTextWidget)**
>
> A `@apostrophecms/rich-text` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\RichTextWidgetType|string` *required*
>
> **Required.** The widget’s type: always `@apostrophecms/rich-text`. One of `@apostrophecms/rich-text`.
>
> **id** `?string`
>
> The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> Always `widget`. One of `widget`.
>
> **content** `?string`
>
> The text as HTML, e.g. `<h2>Our story</h2><p>It began with <strong>one</strong> idea.</p>`. The site keeps the tags and styles this area’s editor offers (paragraphs, headings, bold, italic, links, lists…) and removes the rest.
>
> **sectionCss** `?CustomCSS`
>
> A `CustomCSS`. CSS for this one section, typed into the slot of the part it styles. It wins over Site design → Custom CSS. Nested rules like &:hover, @media (width >= 48rem) and \[data-theme="light"] & work inside a slot. Its fields are listed under the first `CustomCSS` above.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **slug** `?string`
>
> **Optional.** Leave it out and the site uses `""`. The URL name: lowercase words joined by hyphens (letters outside a–z, even emoji, are kept). Left out, it’s made from the title.
>
> **scheduledPublish** `?string`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. An ISO 8601 date and time, e.g. `2026-10-21T14:30:00.000Z`.
>
> **scheduledUnpublish** `?string`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. An ISO 8601 date and time, e.g. `2026-10-21T14:30:00.000Z`.
>
> **thankYouHeading** `?string`
>
> **Optional.** Leave it out and the site uses `""`. Thank you message title.
>
> **thankYouBody** `RichTextArea|array\<string, mixed\>|null`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **RichTextArea (Fetchski\AttractCmsLaravel\Data\RichTextArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> Always `area`. One of `area`.
>
> **id** `?string`
>
> The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, RichTextWidget\>|null`
>
> A list of `RichTextWidget`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `RichTextWidget` above.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **sendConfirmationEmail** `?bool`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Enable this to send a message to the person who submits this form.
>
> **emailConfirmationField** `?string`
>
> **Optional.** Leave it out and the site uses `""`. Enter the "name" value of the field where people with enter their email address. For best results, make sure this field only accepts email addresses.
>
> **emails** `array\<int, FormEmailsItem|array\<string, mixed\>\>|Collection\<int, FormEmailsItem|array\<string, mixed\>\>|null`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Email Address(es) for Results.
>
> **FormEmailsItem (Fetchski\AttractCmsLaravel\Data\FormEmailsItem)**
>
> **email** `string` *required*
>
> **Required.** Email Address for Results. Format: an email address.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **conditions** `Collection\<int, FormEmailsItemConditionsItem\>|null`
>
> A list of `FormEmailsItemConditionsItem`. For example, if you only notify this email address if the "country" field is set to "Austria". All conditions must be met. Add the email again with another conditional set if needed.
>
> **FormEmailsItemConditionsItem (Fetchski\AttractCmsLaravel\Data\FormEmailsItemConditionsItem)**
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **field** `?string`
>
> Only select (drop-down) and checkbox fields can be used for this condition.
>
> **value** `?string`
>
> Enter the value an end-user will enter to meet this conditional.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **googleSheetSubmissions** `?bool`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Submit to Google Spreadsheets.
>
> **googleSpreadsheetId** `?string`
>
> **Optional.** Leave it out and the site uses `""`. Google Spreadsheet ID.
>
> **googleSheetName** `?string`
>
> **Optional.** Leave it out and the site uses `""`. The name of the sheet tab in your Google spreadsheet where you want the submission appended. If not provided, the first sheet of the spreadsheet will be used.
>
> **submitLabel** `?string`
>
> **Optional.** Leave it out and the site uses `""`. Submit button label.
>
> **enableRecaptcha** `?bool`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. To use, reCAPTCHA a site ID and secret key must be configured in website code or the website global settings.
>
> **enableQueryParams** `?bool`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Enable query parameter capture.
>
> **queryParamList** `array\<int, FormQueryParamListItem|array\<string, mixed\>\>|Collection\<int, FormQueryParamListItem|array\<string, mixed\>\>|null`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. Create an array item for each query parameter value you wish to capture.
>
> **FormQueryParamListItem (Fetchski\AttractCmsLaravel\Data\FormQueryParamListItem)**
>
> **key** `string` *required*
>
> **Required.** Key.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **lengthLimit** `?int`
>
> Enter a whole number to limit the length of the value saved. At least 1.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **formActions** `array\<int, FormFormActionsItem|array\<string, mixed\>\>|Collection\<int, FormFormActionsItem|array\<string, mixed\>\>|null`
>
> **Optional.** Leave it out (or pass `null`) and it isn’t sent: the site’s default applies. What happens to each submission, beyond being stored in the CMS. Add one row per destination; several can run for one form. Storage always happens regardless.
>
> **FormFormActionsItem (Fetchski\AttractCmsLaravel\Data\FormFormActionsItem)**
>
> **actionType** `Enums\\ActionType|string` *required*
>
> **Required.** Action. One of `webhook`, `emailNotify`.
>
> **id** `?string`
>
> The row’s id, unique in its array.
>
> **enabled** `?bool`
>
> Enabled.
>
> **destination** `Collection\<int, array\<string, mixed\>\>|null`
>
> Where each submission is sent (⌘K → Webhook Destinations). It is signed with that destination’s secret, retried if the receiver is down, and listed on its Deliveries tab. The related `webhook-destination` documents, in order (empty when none). To set it, send a list of `{ "_id": "…" }`, one per document (one at most); a document the site can’t find is left out. At most 1 items.
>
> **notifyEmail** `?string`
>
> Where a copy of each submission is emailed (sent through Connections → Email). Replying answers the visitor. When set, an email address; empty or null when not.
>
> **fields** `array\<string, mixed\>`
>
> Optional: any keys not listed above, by their wire names; they are sent with the rest.
>
> **archived** `?bool`
>
> **Optional.** Leave it out and the site uses `false`. In the archive: kept, but out of every list and off the site until it is restored. `false` (or null) for a live document.

> [accordion] Returns
>
> A `Form` (`Fetchski\AttractCmsLaravel\Data\Form`). Form content type. Read its properties (`$form->title`): each says whether the site always sends it. The example answer is the site’s wire JSON: some keys differ from the property names (`_id` → `id`, `_form` → `form`, `_destination` → `destination`).
>
> **title** `string`
>
> **Always sent.** Its title: the name it goes by in every list, and the heading of its page where it has one.
>
> **slug** `string`
>
> **Always sent.** The URL name: lowercase words joined by hyphens (letters outside a–z, even emoji, are kept).
>
> **visibility** `Enums\\Visibility|string`
>
> **Always sent.** Select whether this content is public or private. One of `public`, `loginRequired`; a newer site may send others, so keep a fallback.
>
> **email** `string`
>
> **Always sent.** The "from" address on this form's emails. A new form starts with the Email in Site settings → Brand; change it here for this form.
>
> **id** `string`
>
> **Always sent.** The document’s id. On a type with drafts it ends in its locale and mode (`…:en:published`, `…:en:draft`): the part before the first colon is its `aposDocId`, shared by both copies. The `{_id}` the type’s routes take.
>
> **type** `string`
>
> **Always sent.** The document type’s name: always this type’s.
>
> **createdAt** `CarbonImmutable`
>
> **Always sent.** When it was created (ISO 8601). Format: an ISO 8601 date and time.
>
> **updatedAt** `CarbonImmutable`
>
> **Always sent.** When it last changed (ISO 8601). Format: an ISO 8601 date and time.
>
> **contents** `?FormSectionArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormSectionArea`. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area. A new document starts with `form-section`.
>
> **FormSectionArea (Fetchski\AttractCmsLaravel\Data\FormSectionArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormSectionWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionWidget`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). At most 1 items.
>
> **FormSectionWidget (Fetchski\AttractCmsLaravel\Data\FormSectionWidget)**
>
> A `form-section` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormSectionWidgetType|string`
>
> **Always sent.** The widget’s type: always `form-section`. One of `form-section`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **formFontOverrides** `Collection\<int, FormSectionWidgetFormFontOverridesItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionWidgetFormFontOverridesItem`. Optional. Set part of this form in a different typeface. Leave empty to follow the site’s fonts (Site design → Typography). At most 4 items.
>
> **FormSectionWidgetFormFontOverridesItem (Fetchski\AttractCmsLaravel\Data\FormSectionWidgetFormFontOverridesItem)**
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **target** `Enums\\Target|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Which text this typeface replaces. Rows apply in order, so a broad row (Everything) followed by a narrow one (Headings) gives the section a base face plus an exception. One of `all`, `heading`, `body`, `eyebrow`, `button`, `code`; a newer site may send others, so keep a fallback.
>
> **source** `Enums\\Source|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Where the typeface comes from. The first option costs nothing extra — those faces are already loaded. The others load an additional font on pages that use this section. One of `slot`, `curated`, `cdn`, `upload`; a newer site may send others, so keep a fallback.
>
> **slot** `Enums\\Slot|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Set in Site design → Typography. Following the site’s own faces keeps a section on-brand and adds no download. One of `display`, `body`, `accent`; a newer site may send others, so keep a fallback.
>
> **curated** `Enums\\Curated|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Vetted families from Bunny Fonts and Fontshare, with their available weights already verified. One of `archivo`, `bricolage-grotesque`, `clash-display`, `courier-prime`, `dm-mono`, `dm-sans`, `fira-code`, `fraunces`, `general-sans`, `ibm-plex-mono`, `ibm-plex-sans`, `inconsolata`, `inter`, `jetbrains-mono`, `karla`, `lora`, `manrope`, `nunito-sans`, `outfit`, `playfair-display`, `public-sans`, `red-hat-mono`, `satoshi`, `sentient`, `sora`, `source-code-pro`, `source-sans-3`, `source-serif-4`, `space-grotesk`, `space-mono`, `spline-sans-mono`, `supreme`, `switzer`, `syne`, `ubuntu-mono`, `unbounded`, `victor-mono`, `work-sans`, `zodiak`; a newer site may send others, so keep a fallback.
>
> **cdnProvider** `Enums\\CdnProvider|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Where to browse for the family. Pick one, then follow the link below to find the exact name. One of `bunny`, `fontshare`; a newer site may send others, so keep a fallback.
>
> **cdnFamily** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Exactly as the provider’s catalog spells it, e.g. "Space Grotesk" or "Clash Display". A name the provider doesn’t have loads nothing and this row is ignored.
>
> **cdnWeights** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Comma-separated weights to load, e.g. 400, 700. Empty loads 400, 500, 700. Weights the family doesn’t ship are skipped by the CDN and synthesized by the browser (faux bold) — but a family that ships only ONE weight (Acme, for instance) loads nothing at all unless that weight is among these, so set it explicitly if the typeface doesn’t appear.
>
> **uploads** `Collection\<int, FormSectionWidgetFormFontOverridesItemUploadsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionWidgetFormFontOverridesItemUploadsItem`. One file per weight/style of the SAME typeface. woff2 strongly recommended (smallest, universally supported); woff/ttf/otf also accepted. At most 4 items.
>
> **FormSectionWidgetFormFontOverridesItemUploadsItem (Fetchski\AttractCmsLaravel\Data\FormSectionWidgetFormFontOverridesItemUploadsItem)**
>
> **file** `array\<string, mixed\>`
>
> **Always sent.** File attachment reference.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **weight** `Enums\\Weight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Weight. One of `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`; a newer site may send others, so keep a fallback.
>
> **style** `Enums\\Style|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Style. One of `normal`, `italic`; a newer site may send others, so keep a fallback.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fallback** `Enums\\Fallback|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Generic system font shown while this typeface loads (and if it fails). Curated picks set this automatically. One of `sans`, `serif`, `mono`; a newer site may send others, so keep a fallback.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **formEyebrowEnabled** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Show eyebrow.
>
> **formEyebrow** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Small label shown above the title.
>
> **formEyebrowColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional. Overrides the eyebrow + its dash. Leave empty to use the secondary (mint) color.
>
> **formEyebrowColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color, then the mint default.
>
> **formEyebrowWeight** `Enums\\FormEyebrowWeight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Eyebrow weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`; a newer site may send others, so keep a fallback.
>
> **formEyebrowSize** `Enums\\FormEyebrowSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Eyebrow size. One of `small`, `normal`, `large`, `xlarge`; a newer site may send others, so keep a fallback.
>
> **formHeading** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Heading.
>
> **formHeadingColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional — leave empty to track the theme text color.
>
> **formHeadingColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color.
>
> **formHeadingWeight** `Enums\\FormHeadingWeight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`; a newer site may send others, so keep a fallback.
>
> **formHeadingSize** `Enums\\FormHeadingSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Size. One of `small`, `normal`, `large`, `xlarge`, `xxlarge`; a newer site may send others, so keep a fallback.
>
> **formIntro** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional short sentence under the heading.
>
> **formIntroColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional — leave empty to use the muted text color.
>
> **formIntroColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color.
>
> **formIntroWeight** `Enums\\FormIntroWeight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Weight. One of `normal`, `medium`, `semibold`, `bold`, `extrabold`; a newer site may send others, so keep a fallback.
>
> **formIntroSize** `Enums\\FormIntroSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Size. One of `small`, `normal`, `large`, `xlarge`, `xxlarge`; a newer site may send others, so keep a fallback.
>
> **formBand** `Enums\\FormBand|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Plain sits on the page; Raised is a contained card; Accent is a solid brand-color band. One of `plain`, `raised`, `accent`; a newer site may send others, so keep a fallback.
>
> **formAccentColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The accent band color. Leave empty to use the site accent color.
>
> **formAccentColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color, then the accent.
>
> **formAlign** `Enums\\FormAlign|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Alignment of the section header (the form fields stay left-aligned for legibility). One of `center`, `left`; a newer site may send others, so keep a fallback.
>
> **formWidth** `Enums\\FormWidth|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Content width. One of `narrow`, `normal`, `wide`; a newer site may send others, so keep a fallback.
>
> **formLabelGap** `Enums\\FormLabelGap|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Vertical space between each field’s label and its input. One of `compact`, `normal`, `roomy`, `spacious`; a newer site may send others, so keep a fallback.
>
> **formBg** `Enums\\FormBg|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The section’s full-width background band in dark mode. Transparent lets the page background show through. The palette options track the site colors; choose “Custom color…” for a specific color. One of `transparent`, `surface`, `raised`, `sunken`, `hill`, `accent-soft`, `custom`; a newer site may send others, so keep a fallback.
>
> **formBgCustom** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Used when “Section background (dark theme)” is set to Custom color.
>
> **formBgLight** `Enums\\FormBgLight|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. “Match dark theme” reuses the dark-theme choice; otherwise set the light-mode band independently. One of `inherit`, `transparent`, `surface`, `raised`, `sunken`, `hill`, `accent-soft`, `custom`; a newer site may send others, so keep a fallback.
>
> **formBgLightCustom** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Used when “Section background (light theme)” is set to Custom color.
>
> **formSubmitLabel** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The visible button text. Leave empty to hide the button.
>
> **formSubmitVariant** `Enums\\FormSubmitVariant|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Solid fills with the color; Outline / Soft / Text link use it for the border + text. One of `solid`, `outline`, `soft`, `link`; a newer site may send others, so keep a fallback.
>
> **formSubmitSize** `Enums\\FormSubmitSize|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Button size. One of `small`, `normal`, `large`; a newer site may send others, so keep a fallback.
>
> **formSubmitRadius** `Enums\\FormSubmitRadius|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Corner radius. One of `pill`, `rounded`, `slight`, `square`; a newer site may send others, so keep a fallback.
>
> **formSubmitColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Solid fill, or the border + text for the other styles. Defaults to the brand accent; CLEAR it for a transparent, outline-only button.
>
> **formSubmitColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme color. (Brand tokens already flip per theme.)
>
> **formSubmitTextColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The text/icon color. Clear it to derive from the button color (readable on solid fills).
>
> **formSubmitTextColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme label color.
>
> **formSubmitHoverColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional. Drives the hover treatment. Leave empty to derive it from the button color.
>
> **formSubmitHoverColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme hover color.
>
> **formSubmitStyle** `Enums\\FormSubmitStyle|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The hover treatment: a soft shadow, a colored offset shadow, a glow, a fill sweep, or a thicker border. One of `none`, `single`, `dual`, `glow`, `sweep`, `thicken`; a newer site may send others, so keep a fallback.
>
> **formSubmitShadowColor** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional. The offset-shadow or glow color on hover. Leave empty to use the site secondary color.
>
> **formSubmitShadowColorLight** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Optional light-theme override. Falls back to the dark-theme shadow color.
>
> **formSubmitAnimation** `Enums\\FormSubmitAnimation|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Hover motion. One of `lift`, `scale`, `lift-scale`, `none`; a newer site may send others, so keep a fallback.
>
> **formSubmitIcon** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Any Font Awesome icon name, e.g. star, bolt, arrow-left-to-bracket (no “fa-” prefix). Browse at fontawesome.com/icons.
>
> **formSubmitIconFamily** `Enums\\FormSubmitIconFamily|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Icon family. One of `classic-regular`, `duotone-regular`, `brands`, `jelly`, `jelly-duo`, `whiteboard`; a newer site may send others, so keep a fallback.
>
> **formSubmitIconPosition** `Enums\\FormSubmitIconPosition|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Which side of the label the icon sits on (when an icon name is set). One of `before`, `after`; a newer site may send others, so keep a fallback.
>
> **formSubmitIconNudge** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. The icon slides toward its side on hover (e.g. an arrow edges outward).
>
> **form** `Collection\<int, array\<string, mixed\>\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The Form record that stores this form’s submissions and routes them (its Actions / integrations / Google Sheet). Create one in the Forms manager. The fields themselves are built right here on the page. The related `@apostrophecms/form` documents, in order (empty when none). To set it, send a list of `{ "_id": "…" }`, one per document (one at most); a document the site can’t find is left out. At most 1 items.
>
> **sectionCss** `?CustomCSS`
>
> **Sometimes sent:** `null` when the site leaves it out. A `CustomCSS`. CSS for this one section, typed into the slot of the part it styles. It wins over Site design → Custom CSS. Nested rules like &:hover, @media (width >= 48rem) and \[data-theme="light"] & work inside a slot.
>
> **CustomCSS (Fetchski\AttractCmsLaravel\Data\CustomCSS)**
>
> **slots** `array\<string, string\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. The CSS typed into each part slot, by slot name.
>
> **css** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The compiled CSS (read only: rebuilt from `slots`).
>
> **mark** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The site’s check mark for `css` (read only).
>
> **fields** `?FormSectionFieldsArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormSectionFieldsArea`. Add and arrange the form’s fields here — edited live on the page. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormSectionFieldsArea (Fetchski\AttractCmsLaravel\Data\FormSectionFieldsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormConditionalWidget|FormGroupWidget|FormDividerWidget|RichTextWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormSectionFieldsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them).
>
> **FormSectionFieldsAreaItem (Fetchski\AttractCmsLaravel\Data\FormSectionFieldsAreaItem)**
>
> A widget in an area that takes `@apostrophecms/form-text-field`, `@apostrophecms/form-textarea-field`, `@apostrophecms/form-file-field`, `@apostrophecms/form-boolean-field`, `@apostrophecms/form-select-field`, `@apostrophecms/form-radio-field`, `@apostrophecms/form-checkboxes-field`, `@apostrophecms/form-conditional`, `@apostrophecms/form-group`, `@apostrophecms/form-divider`, `@apostrophecms/rich-text`: the one its `type` names.
>
> **FormTextFieldWidget (Fetchski\AttractCmsLaravel\Data\FormTextFieldWidget)**
>
> A `@apostrophecms/form-text-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormTextFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-text-field`. One of `@apostrophecms/form-text-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **inputType** `Enums\\InputType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. If you are requesting certain formatted information (e.g., email, url, phone number), select the relevant input type here. If not, use "Text". One of `text`, `email`, `tel`, `url`, `date`, `password`; a newer site may send others, so keep a fallback.
>
> **placeholder** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Text to display in the field before someone uses it (e.g., to provide additional directions).
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormTextareaFieldWidget (Fetchski\AttractCmsLaravel\Data\FormTextareaFieldWidget)**
>
> A `@apostrophecms/form-textarea-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormTextareaFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-textarea-field`. One of `@apostrophecms/form-textarea-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **placeholder** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Text to display in the field before someone uses it (e.g., to provide additional directions).
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormFileFieldWidget (Fetchski\AttractCmsLaravel\Data\FormFileFieldWidget)**
>
> A `@apostrophecms/form-file-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormFileFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-file-field`. One of `@apostrophecms/form-file-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Allow multiple file attachments.
>
> **limitSize** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Limit file size?
>
> **maxSize** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. In Bytes.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormBooleanFieldWidget (Fetchski\AttractCmsLaravel\Data\FormBooleanFieldWidget)**
>
> A `@apostrophecms/form-boolean-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormBooleanFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-boolean-field`. One of `@apostrophecms/form-boolean-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **checked** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. If "yes," the checkbox will start in the checked state.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormSelectFieldWidget (Fetchski\AttractCmsLaravel\Data\FormSelectFieldWidget)**
>
> A `@apostrophecms/form-select-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormSelectFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-select-field`. One of `@apostrophecms/form-select-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **choices** `Collection\<int, FormSelectFieldWidgetChoicesItem\>`
>
> **Always sent.** A list of `FormSelectFieldWidgetChoicesItem`. Select input options.
>
> **FormSelectFieldWidgetChoicesItem (Fetchski\AttractCmsLaravel\Data\FormSelectFieldWidgetChoicesItem)**
>
> **label** `string`
>
> **Always sent.** The readable label displayed to users.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **value** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The value saved (as text) in the database. If not entered, the label will be used.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Allow multiple options to be selected.
>
> **size** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. Number of options in the list that should be visible. At least 0.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormRadioFieldWidget (Fetchski\AttractCmsLaravel\Data\FormRadioFieldWidget)**
>
> A `@apostrophecms/form-radio-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormRadioFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-radio-field`. One of `@apostrophecms/form-radio-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **choices** `Collection\<int, FormRadioFieldWidgetChoicesItem\>`
>
> **Always sent.** A list of `FormRadioFieldWidgetChoicesItem`. Radio input options. At least 1 items.
>
> **FormRadioFieldWidgetChoicesItem (Fetchski\AttractCmsLaravel\Data\FormRadioFieldWidgetChoicesItem)**
>
> **label** `string`
>
> **Always sent.** The readable label displayed to users.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **value** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The value saved (as text) in the database. If not entered, the label will be used.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **allowMultiple** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Allow multiple options to be selected.
>
> **size** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. Number of options in the list that should be visible. At least 0.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormCheckboxesFieldWidget (Fetchski\AttractCmsLaravel\Data\FormCheckboxesFieldWidget)**
>
> A `@apostrophecms/form-checkboxes-field` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormCheckboxesFieldWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-checkboxes-field`. One of `@apostrophecms/form-checkboxes-field`; a newer site may send others, so keep a fallback.
>
> **fieldLabel** `string`
>
> **Always sent.** Field label.
>
> **choices** `Collection\<int, FormCheckboxesFieldWidgetChoicesItem\>`
>
> **Always sent.** A list of `FormCheckboxesFieldWidgetChoicesItem`. Checkbox input options. At least 1 items.
>
> **FormCheckboxesFieldWidgetChoicesItem (Fetchski\AttractCmsLaravel\Data\FormCheckboxesFieldWidgetChoicesItem)**
>
> **label** `string`
>
> **Always sent.** The readable label displayed to users.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **value** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The value saved (as text) in the database. If not entered, the label will be used.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **required** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Is this field required?
>
> **fieldName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. No spaces or punctuation other than dashes. If left blank, the form will populate this with a simplified form of the label. Changing this field after a form is in use may cause problems with any integrations.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormConditionalWidget (Fetchski\AttractCmsLaravel\Data\FormConditionalWidget)**
>
> A `@apostrophecms/form-conditional` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormConditionalWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-conditional`. One of `@apostrophecms/form-conditional`; a newer site may send others, so keep a fallback.
>
> **conditionName** `string`
>
> **Always sent.** Form field to check.
>
> **conditionValue** `string`
>
> **Always sent.** Value that activates this group.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **contents** `?FormConditionalContentsArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormConditionalContentsArea`. aposForm:conditionalContentsHelp Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormConditionalContentsArea (Fetchski\AttractCmsLaravel\Data\FormConditionalContentsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormDividerWidget|RichTextWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormConditionalContentsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `FormConditionalContentsAreaItem` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormGroupWidget (Fetchski\AttractCmsLaravel\Data\FormGroupWidget)**
>
> A `@apostrophecms/form-group` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormGroupWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-group`. One of `@apostrophecms/form-group`; a newer site may send others, so keep a fallback.
>
> **label** `string`
>
> **Always sent.** Group Label.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **contents** `?FormGroupContentsArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `FormGroupContentsArea`. aposForm:groupContentsHelp Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **FormGroupContentsArea (Fetchski\AttractCmsLaravel\Data\FormGroupContentsArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, FormTextFieldWidget|FormTextareaFieldWidget|FormFileFieldWidget|FormBooleanFieldWidget|FormSelectFieldWidget|FormRadioFieldWidget|FormCheckboxesFieldWidget|FormConditionalWidget|FormDividerWidget|RichTextWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormGroupContentsAreaItem`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `FormGroupContentsAreaItem` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **FormDividerWidget (Fetchski\AttractCmsLaravel\Data\FormDividerWidget)**
>
> A `@apostrophecms/form-divider` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\FormDividerWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/form-divider`. One of `@apostrophecms/form-divider`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **RichTextWidget (Fetchski\AttractCmsLaravel\Data\RichTextWidget)**
>
> A `@apostrophecms/rich-text` widget: its `type` and its own fields. A field left out takes its default.
>
> **type** `Enums\\RichTextWidgetType|string`
>
> **Always sent.** The widget’s type: always `@apostrophecms/rich-text`. One of `@apostrophecms/rich-text`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The widget’s id, unique on the page. Leave it out for a new widget (the site sets one); keep it to change a widget that is there.
>
> **metaType** `Enums\\MetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `widget`. One of `widget`; a newer site may send others, so keep a fallback.
>
> **content** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The text as HTML, e.g. `<h2>Our story</h2><p>It began with <strong>one</strong> idea.</p>`. The site keeps the tags and styles this area’s editor offers (paragraphs, headings, bold, italic, links, lists…) and removes the rest.
>
> **sectionCss** `?CustomCSS`
>
> **Sometimes sent:** `null` when the site leaves it out. A `CustomCSS`. CSS for this one section, typed into the slot of the part it styles. It wins over Site design → Custom CSS. Nested rules like &:hover, @media (width >= 48rem) and \[data-theme="light"] & work inside a slot. Its fields are listed under the first `CustomCSS` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **scheduledPublish** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. An ISO 8601 date and time, e.g. `2026-10-21T14:30:00.000Z`.
>
> **scheduledUnpublish** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. An ISO 8601 date and time, e.g. `2026-10-21T14:30:00.000Z`.
>
> **thankYouHeading** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Thank you message title.
>
> **thankYouBody** `?RichTextArea`
>
> **Sometimes sent:** `null` when the site leaves it out. A `RichTextArea`. Widgets, top to bottom: send `{ "items": [ … ] }`, one object per widget with its `type`. Writing it replaces the whole area.
>
> **RichTextArea (Fetchski\AttractCmsLaravel\Data\RichTextArea)**
>
> **metaType** `Enums\\AfterContentAreaMetaType|string|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Always `area`. One of `area`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The area’s id, set by the site: leave it out when you write one.
>
> **items** `Collection\<int, RichTextWidget\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `RichTextWidget`. The widgets, top to bottom. Each is an object with its `type` and that widget’s own fields; `_id` and `metaType` may be left out (the site sets them). Its fields are listed under the first `RichTextWidget` above.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **sendConfirmationEmail** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Enable this to send a message to the person who submits this form.
>
> **emailConfirmationField** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Enter the "name" value of the field where people with enter their email address. For best results, make sure this field only accepts email addresses.
>
> **emails** `Collection\<int, FormEmailsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormEmailsItem`. Email Address(es) for Results.
>
> **FormEmailsItem (Fetchski\AttractCmsLaravel\Data\FormEmailsItem)**
>
> **email** `string`
>
> **Always sent.** Email Address for Results. Format: an email address.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **conditions** `Collection\<int, FormEmailsItemConditionsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormEmailsItemConditionsItem`. For example, if you only notify this email address if the "country" field is set to "Austria". All conditions must be met. Add the email again with another conditional set if needed.
>
> **FormEmailsItemConditionsItem (Fetchski\AttractCmsLaravel\Data\FormEmailsItemConditionsItem)**
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **field** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Only select (drop-down) and checkbox fields can be used for this condition.
>
> **value** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Enter the value an end-user will enter to meet this conditional.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **googleSheetSubmissions** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Submit to Google Spreadsheets.
>
> **googleSpreadsheetId** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Google Spreadsheet ID.
>
> **googleSheetName** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The name of the sheet tab in your Google spreadsheet where you want the submission appended. If not provided, the first sheet of the spreadsheet will be used.
>
> **submitLabel** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Submit button label.
>
> **enableRecaptcha** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. To use, reCAPTCHA a site ID and secret key must be configured in website code or the website global settings.
>
> **enableQueryParams** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Enable query parameter capture.
>
> **queryParamList** `Collection\<int, FormQueryParamListItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormQueryParamListItem`. Create an array item for each query parameter value you wish to capture.
>
> **FormQueryParamListItem (Fetchski\AttractCmsLaravel\Data\FormQueryParamListItem)**
>
> **key** `string`
>
> **Always sent.** Key.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **lengthLimit** `?int`
>
> **Sometimes sent:** `null` when the site leaves it out. Enter a whole number to limit the length of the value saved. At least 1.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **formActions** `Collection\<int, FormFormActionsItem\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. A list of `FormFormActionsItem`. What happens to each submission, beyond being stored in the CMS. Add one row per destination; several can run for one form. Storage always happens regardless.
>
> **FormFormActionsItem (Fetchski\AttractCmsLaravel\Data\FormFormActionsItem)**
>
> **actionType** `Enums\\ActionType|string`
>
> **Always sent.** Action. One of `webhook`, `emailNotify`; a newer site may send others, so keep a fallback.
>
> **id** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The row’s id, unique in its array.
>
> **enabled** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. Enabled.
>
> **destination** `Collection\<int, array\<string, mixed\>\>|null`
>
> **Sometimes sent:** `null` when the site leaves it out. Where each submission is sent (⌘K → Webhook Destinations). It is signed with that destination’s secret, retried if the receiver is down, and listed on its Deliveries tab. The related `webhook-destination` documents, in order (empty when none). To set it, send a list of `{ "_id": "…" }`, one per document (one at most); a document the site can’t find is left out. At most 1 items.
>
> **notifyEmail** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. Where a copy of each submission is emailed (sent through Connections → Email). Replying answers the visitor. When set, an email address; empty or null when not.
>
> **fields** `array\<string, mixed\>`
>
> **Always there:** `[]` when there are none. Any keys the site sent that aren’t listed above (such as one added after this SDK was built), by their wire names, as sent. Pass this model to a write and they are sent too. An object in it that a PHP array would read as a list (`{}`, `{"0": …}`) is a `stdClass`, so it is sent back as an object.
>
> **archived** `?bool`
>
> **Sometimes sent:** `null` when the site leaves it out. In the archive: kept, but out of every list and off the site until it is restored. `false` (or null) for a live document.
>
> **aposShareKey** `?string`
>
> **Sometimes sent:** `null` when the site leaves it out. The draft’s preview share key, while its share link is on: the link is the draft’s `_url` with `aposShareKey` and `aposShareId` (the draft’s `_id`) in its query. Absent otherwise, and on published documents.

> [accordion] Errors
>
> Nothing to catch: the SDK retries what is safe, and Laravel logs and renders the rest (see [Errors and testing](https://docs.fetchski-attract.com/laravel/errors.md)).
>
> **ValidationFailed** `400`
>
> The site refused what was sent: `errors()` lists each field’s problem, `siteMessage()` the first.
>
> **Retried first:** No. **Read:** `errors()` (field → messages), `siteMessage()`.
>
> **AuthenticationFailed** `401`
>
> The API key is missing or refused (malformed, revoked, expired), or a signature its signing mode needs is missing or stale.
>
> **Retried first:** No. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **Forbidden** `403`
>
> The key may not do this: a scope it lacks, or an address outside its allowlist. `siteMessage()` names it.
>
> **Retried first:** No. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **NotFound** `404`
>
> Nothing matches, or the caller may not see it.
>
> **Retried first:** No. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **SiteError** `500`
>
> The site failed. Its logs say why.
>
> **Retried first:** No: a write may have landed. **Read:** `siteMessage()`, `errorName()`, `data()`.
>
> **SiteUnreachable** `no answer`
>
> No answer: DNS, a refused connection, TLS, or the timeout (15 s per attempt by default).
>
> **Retried first:** Only when nothing reached the site (`neverConnected()`); never after a timeout, when it may have landed. **Read:** `reason()`, `neverConnected()`.
>
> **RequestNotSent** `not sent`
>
> The client refused to send it (e.g. a path segment of `..`); the site never saw it.
>
> **Retried first:** No. **Read:** `reason()` (what to change).
>
> **SiteRequestFailed** `any other`
>
> Any other status, or a success whose JSON doesn’t match this SDK version’s types (update the SDK).
>
> **Retried first:** No. **Read:** `reason()`, `status()`.
>
> **UnknownSite** `setup`
>
> `Attract::site('acme')` named a slug that isn’t under `sites` in `config/fetchski-attract.php`.
>
> **Retried first:** No: nothing was sent. **Read:** `getMessage()`, `$e->slug`.
>
> **SiteConfigurationError** `setup`
>
> The site’s config entry is wrong: no `url`, a malformed `api_key`, a key filed under another slug, or no default site.
>
> **Retried first:** No: nothing was sent. **Read:** `getMessage()` (what to fix).

## Behavior

* **Access:** an API key with `content:forms:write` (or a master above it: `content:forms:all`, `content:all`, `admin:all`). In published mode (the default) it goes live too, so the key also needs `content:forms:publish` (or a master above it); send `aposMode=draft` to change only the draft. A signed-in person may call it as far as their own permissions allow; anyone else gets 403.
* **Rate limit:** the key’s own writes-per-minute limit, set when the key is created (default 120); over it, 429 with `Retry-After`. The client waits and retries for you; you see `RateLimited` only if that runs out.
* **Retries:** a write is sent again only after a 429 (refused before it acted) or when it never reached the site. After a timeout or a 5xx it may have landed: check before you send it again.
* **Timeout:** 15 s per attempt by default; raise `timeout` in `config/fetchski-attract.php` for longer.

## Test it

It calls the route above with the SDK faked: the fake answers every call with a valid example, so nothing leaves your machine and no config or key is needed. Save it as `tests/Feature/CreateFormTest.php`, then run your tests:

```php tests/Feature/CreateFormTest.php theme={"dark"}
<?php

declare(strict_types=1);

namespace Tests\Feature;

use App\Models\User;
use Fetchski\AttractCmsLaravel\Facades\Attract;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

final class CreateFormTest extends TestCase
{
    use RefreshDatabase;

    public function test_create_form(): void
    {
        Attract::fake();

        $this->actingAs(User::factory()->create())
            ->postJson('/form')
            ->assertOk();

        Attract::assertCalled('forms.createForm');
    }
}
```

```bash Terminal theme={"dark"}
php artisan test
```

**Answer with your own values:** fake `forms.createForm` with `Form::factory()->make([...])`, the fields you give over a valid example.

```php tests/Feature/CreateFormAnswerTest.php theme={"dark"}
<?php

declare(strict_types=1);

namespace Tests\Feature;

use Fetchski\AttractCmsLaravel\Data\Form;
use Fetchski\AttractCmsLaravel\Facades\Attract;
use Tests\TestCase;

final class CreateFormAnswerTest extends TestCase
{
    public function test_create_form_answers_your_values(): void
    {
        Attract::fake([
            'forms.createForm' => Form::factory()->make(['title' => 'Your value']),
        ]);

        $form = Attract::forms()->createForm(title: 'Example title', visibility: 'public', email: 'jo@acme.example');

        $this->assertSame('Your value', $form->title);
    }
}
```

## Related

> [card] [List a form’s locales](https://docs.fetchski-attract.com/laravel/reference/forms/get-form-locales.md)
>
> `Attract::forms()->getFormLocales()`

> [card] [List forms](https://docs.fetchski-attract.com/laravel/reference/forms/list-forms.md)
>
> `Attract::forms()->listForms()`

> [card] [Get a form](https://docs.fetchski-attract.com/laravel/reference/forms/get-form.md)
>
> `Attract::forms()->getForm()`

> [card] [Replace a form](https://docs.fetchski-attract.com/laravel/reference/forms/replace-form.md)
>
> `Attract::forms()->replaceForm()`

> [card] [Delete a form](https://docs.fetchski-attract.com/laravel/reference/forms/delete-form.md)
>
> `Attract::forms()->deleteForm()`

> [card] [Update a form](https://docs.fetchski-attract.com/laravel/reference/forms/update-form.md)
>
> `Attract::forms()->updateForm()`

> [card] [POST /@apostrophecms/form](https://docs.fetchski-attract.com/api-reference/forms/create-a-form.md)
>
> The endpoint this calls, in the API reference: the HTTP request and answer, and every rule the site checks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.