节点 / extension
Get Forms Schema
Get schemas for one form or all forms from the opened tab
此内容尚不支持你的语言。
Describe the forms on the active tab: every field, its label, type, current value, rules and choices.
What it does
Section titled “What it does”Get Forms Schema returns one item per form, each with the form’s details and a fields list.
Which forms it reads:
- DOM Selector empty: every form on the page.
- DOM Selector set: the selected element if it is a form, any forms inside it, and the form that contains it. So you can point at a single field and still get its whole form.
For each field you get its label (from the field’s label, or its accessibility label), name, id, type (text, email, checkbox, select, textarea…), a selector to target it, and whether it is required, disabled or read-only. You also get its current value and, when the page sets them, limits such as min, max, maxLength and pattern. Drop-down lists include their options, each with a label and a value.
The node only reads: it does not change or submit anything.
When to use it
Section titled “When to use it”- Before Form Fill: find the
idornameof each field you need to fill. - Give an AI node the list of fields so it knows what a form asks for.
- Check which fields are required, or which choices a drop-down offers.
Inputs and settings
Section titled “Inputs and settings”| 设置项 | 类型 | 作用 |
|---|---|---|
| DOM Selector | Page element | The selector of the DOM element to interact with. |
To read one form, click the crosshair button in DOM Selector and click any field of that form. Leave it empty to read all forms.
Outputs
Section titled “Outputs”-
Output
Each run returns a list of items with these fields:
| Field | 类型 | What it holds |
|---|---|---|
| id | Text | |
| name | Text | |
| selector | Text | |
| action | Text | |
| method | Text | |
| enctype | Text | |
| target | Text | |
| autocomplete | Text | |
| noValidate | True/false | |
| fieldCount | Number | |
| fields | List of entries |
[ { "id": "…", "name": "…", "selector": "…", "action": "…", "method": "…", "enctype": "…", "target": "…", "autocomplete": "…", "noValidate": true, "fieldCount": 0, "fields": [] }]actionandmethod: where and how the form sends its data (for examplehttps://example.com/signup,post).fieldCount: how many fields the form has.fields: the field list described above. Read one with an expression such as{{ $input.fields[0].label }}.
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”- Open a sign-up page and run the workflow from a Hotkey trigger.
- Add Get Forms Schema with DOM Selector set to the email field.
- Run it once and look at the output: note the
nameoridof each field, for exampleemailandfull_name. - Add Form Fill in Manual mode with two Values entries: Field ID
email/ Valuejane@example.com, and Field IDfull_name/ ValueJane Doe.
Common issues
Section titled “Common issues”- “No forms found”. The page has no form element, or none matches DOM Selector. Some sites build forms from plain boxes without a real form; for those, use Get Accessibility Tree to find the fields.
- A field has an empty
label. The page does not label it. Use itsname,placeholderoridto recognize it. - The form loads after the page. Add Wait For Element for one of its fields first.
- The node fails outside the extension. This node runs in the browser extension; install it or run the workflow from the extension.
Related nodes
Section titled “Related nodes”- Form Fill: fill the fields you found.
- Submit Form: send the form.
- Get Accessibility Tree: all controls, including ones outside forms.