# extractForms

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/utils/form-validation-extractor.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/utils/form-validation-extractor.ts#L98)

Combined entry point — merges code + template, enriching template fields with code-level rules.

## Signature

```ts
function extractForms(code: string, templateContent: string | undefined, filePath: string, componentName: string, framework: Framework): FormDefinition[]
```

## Parameters

| Name | Type |
|---|---|
| `code` | `string` |
| `templateContent` | `string | undefined` |
| `filePath` | `string` |
| `componentName` | `string` |
| `framework` | `Framework` |

**Returns:** `FormDefinition[]`
