> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/selphid-documentos/propiedades/choosedocument.md).

# chooseDocument

## Details

**Attribute:** `choose-document`

**Type:** `boolean`

**Default value:** `false`

## Morphology

```typescript
selphid.chooseDocument = true;
```

## Description

Displays the built-in document type selector in `facephi-selphid-widget` before starting capture.

If used together with [documentType](/docs.facephi-en/sdks/sdk-web/componentes/selphid-documentos/propiedades/documenttype.md) and/or [countryFilter](/docs.facephi-en/sdks/sdk-web/componentes/selphid-documentos/propiedades/countryfilter.md) it is possible to filter the options available in the component.

### Additional information

**Recommended property:** use `showDocumentSelector` in new integrations. It activates the same document type selector before capture.

**Precedence:** if you define `chooseDocument` and `showDocumentSelector` at the same time, `showDocumentSelector` takes precedence and a precedence warning is emitted in the console.

**Deprecation:** `chooseDocument` is still operational in this version, but it will be removed in the next major version. Use only `chooseDocument` emits a deprecation warning in the console.

***

## Example

```jsx
<facephi-selphid-widget
    chooseDocument={true}
/>
```
