节点 / extension / ui
Form Fill
Fill a form on the opened web page
此内容尚不支持你的语言。
Fill the fields of a form on the active tab with values you set or values from earlier nodes.
Try it
Section titled “Try it”Fill Form from JSON:包含 5 个步骤的工作流,从 Run now 开始,到 Submit the form 结束。
- Fill the form(Form Fill — 打开其文档页面) 如果 approved
What it does
Section titled “What it does”Form Fill finds a form on the active tab and fills its fields from a list of { id, value } pairs. Each id is matched against the field’s id first, then its name.
- Text fields and text areas get the value as text.
- Drop-down lists get the option whose value matches exactly.
- Checkboxes and radio buttons are ticked when the value equals the field’s own value, or is
true,1,yes,onorchecked; anything else unticks them.
After each change the node tells the page the field was edited, so sites built with modern frameworks see the new value. It fills only; it does not submit the form.
When to use it
Section titled “When to use it”- Fill a sign-up, contact or order form with data from a spreadsheet, an API or an AI node.
- Fill the same form many times, one item at a time, from a list.
- To click, type step by step or choose from custom drop-downs that are not real form fields, use UI Automation.
Inputs and settings
Section titled “Inputs and settings”2 个选项 · 选择“Mode”以查看其设置
Automatic 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Form (必填) | Page element | The form to fill. You can select the form, a container containing it, or a field inside it. |
Manual 的设置
| 设置项 | 类型 | 作用 |
|---|---|---|
| Form (必填) | Page element | The form to fill. You can select the form, a container containing it, or a field inside it. |
| Values (必填) | List of entries | List of field ids and values to fill. |
| Values (each entry) › Field ID (必填) | Text | The id or name of the form field to fill. |
| Values (each entry) › Value (必填) | Text | The value to set for the field. |
正在显示 Automatic 的设置
In short:
- Mode: Automatic takes the
{ id, value }pairs from the incoming data. Manual lets you type them in the node. - Form: the form to fill. Click the crosshair button and click the form, a box around it, or any field inside it.
- Values (Manual mode only): one entry per field, each with a Field ID (the field’s id or name) and a Value. Values can use expressions, such as
{{ $input.email }}.
In Automatic mode, the incoming data must be a list of { "id": "...", "value": "..." } objects, or a single item with id and value fields.
To find each field’s id or name, run Get Forms Schema on the page first.
Outputs
Section titled “Outputs”-
Output
Each output item has these fields:
| Field | 类型 | What it holds |
|---|---|---|
| result | List of entries |
{ "result": []}result has one entry per value you sent: id, filled (true or false) and, when it was not filled, a reason: Field not found, Option not found, Unsupported field type or Form not found. The incoming fields are not passed on.
Dependencies and credentials
Section titled “Dependencies and credentials”None. This node needs no connection and has no slots for other nodes.
Example workflow
Section titled “Example workflow”- Tab Control, Operation = Open, opens a contact page with Wait For Load on.
- Form Fill with Mode = Manual, Form set to the contact form, and Values:
name=Jane Doe,email=jane@example.com,topic=support. - Submit Form with DOM Selector set to the form’s send button.
Common issues
Section titled “Common issues”- A
reasonof “Field not found”. No field in the form has that id or name. Check the exact spelling with Get Forms Schema; it is case-sensitive. - A
reasonof “Option not found”. For a drop-down, the value must match an option’s value, not its visible label. Get Forms Schema lists both. - The wrong form was filled. When Form matches nothing, the node falls back to the first form on the page. Pick the form again with the crosshair, and check it with Ping.
- A
reasonof “Unsupported field type”. The id points at something that is not a text field, text area, drop-down, checkbox or radio button (for example a custom widget). Use UI Automation to click and type into it. - The node fails outside the extension. This node runs in the browser extension; install it or run the workflow from the extension.
Recipes with this node
Section titled “Recipes with this node”Related nodes
Section titled “Related nodes”- Get Forms Schema: find field ids, names and options.
- Submit Form: send the form after filling it.
- UI Automation: clicks, typing and other step-by-step actions.