---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# FormData.getAll()

The **`getAll()`** method of the `FormData` interface returns all the values associated with a given key from within a `FormData` object.

## Syntax

```js
getAll(name)
```

### Parameters

- `name`
  - : The name of the key you want to retrieve.

### Return value

An array of `FormDataEntryValue` items containing all values with the given key. If the key doesn't exist, an empty array is returned.
