# PDFViewer.showComment()

```ts
showComment(id: string): Promise<boolean>
```

Open the Comments panel on the comment with that id (a reply's or a status's id opens its comment): its card chosen, its mark scrolled to and outlined.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | `string` | A comment's id; a reply's or a status's id opens its comment. |

Returns `Promise<boolean>`: `false` if no comment has it or the panel is not offered.

Throws:

- `INVALID_STATE` after `destroy()`.

```ts
await viewer.showComment(comment.id);
```

Part of [PDFViewer](https://kernstra.com/docs/web-sdk/api/pdfviewer) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/pdfviewer/showcomment
