> For the complete documentation index, see [llms.txt](https://help.pickzen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickzen.com/developers/api/how-to/how-to-get-the-answers.md).

# How to get the answers

Imagine you have these two slides and you need to get the answers:

![](https://1947171238-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTaL6FQB3RzlkCwQfN%2F-LsGU-TPSgVIU5QPnm87%2F-LsGdsE7S8g869YOV7hz%2Fimage.png?alt=media\&token=12289f70-f8a1-4d21-9895-70f0aa4dccc2)

![](https://1947171238-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTaL6FQB3RzlkCwQfN%2F-LsGU-TPSgVIU5QPnm87%2F-LsGdvCzG-a0UlYcY6Y4%2Fimage.png?alt=media\&token=591a275e-7952-43b2-8d9f-560851915fd9)

The first thing you need to do is get each answer and field IDs from the IDs section:

![](https://1947171238-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTaL6FQB3RzlkCwQfN%2F-LsGh7pwZlW345kVrNWL%2F-LsGh8YmA1vUXuoaUgMl%2Fimage.png?alt=media\&token=5f602c7c-12ee-4344-b216-e09ab0f79b3f)

Now you can enter the following code in the slide JavaScript section:

```javascript
var isFlat = Extension.isSelectedOption(102, slides, history);
var isFlat = Extension.isSelectedOption(103, slides, history);
var name = Extension.getFormResponse(115, slides, 1, history);
var email = Extension.getFormResponse(115, slides, 2, history);
```
