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

# FormFillAction

> Fill a form with multiple values

<Tip>
  STOP. Do not read past this section until you have read and followed [/quickstart.md](/quickstart.md).

  Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.

  Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live `observe()` call, CLI `notte page observe` output, or generated workflow code. Guessed browser targets fail on real pages.

  Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with `notte sessions workflow-code` before using SDK docs or SDK code.

  SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
</Tip>

Critical: If you detect a form on a page, try to use this action at first, and otherwise use the regular fill action.

The `form_fill` action requires field keys that match the page's actual field mapping.
Do not guess keys from labels or HTML alone; use live observation or generated workflow
code to confirm the field mapping first.

**Example:**

```python theme={null}
# Field keys must come from the observed form mapping, not guesses.
session.execute(type="form_fill", value={"email": "user@example.com", "first_name": "John", "last_name": "Doe"})
```

## Fields

<ParamField path="type" type="Literal['form_fill']" default="form_fill" />

<ParamField path="category" type="str" default="Special Browser Actions" />

<ParamField path="description" type="str" default="Fill a form with multiple values. Important: If you detect a form requesting personal information, try to use this action at first, and otherwise use the regular fill action. CRITICAL: If this action fails once, use the regular form fill instead." />

<ParamField path="value" type="Dict[Literal['title', 'first_name', 'middle_name', 'last_name', 'full_name', 'email', 'company', 'address1', 'address2', 'address3', 'city', 'state', 'postal_code', 'country', 'phone', 'cc_name', 'cc_number', 'cc_exp_month', 'cc_exp_year', 'cc_exp', 'cc_cvv', 'username', 'password', 'current_password', 'new_password', 'totp'], UnionType[str, ValueWithPlaceholder]]" required />

## Module

`notte_core.actions.actions`
