# flattenAdaptableFormFields

Canonical page: https://www.adaptabletools.com/docs/reference/flattenadaptableformfields

Flattens a form&#39;s `fields` array (which may contain field groups and
inline-row arrays) into a single flat list of fields. Useful when
computing defaults, validation or per-field lookups.

```ts title="TypeScript"
export declare function flattenAdaptableFormFields<T extends BaseContext>(formDef?: AdaptableForm<T, any>): AdaptableFormField[];
```
