---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/support/forms/en/question-id.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/forms/en/llms.txt

# Getting question and response IDs

Question and answer IDs are used to prefill a form. There are several ways to get IDs for different types of questions.

## Questions IDs {#question}

Question IDs are specified in the **Settings**, under the corresponding question block.

{% include notitle [question-settings](_includes/question-settings-9eb19599b0d0.md#show-options) %}

![](_assets/question-id-new.png =600x){.border-grey}

## IDs for a series of questions {#series}

You can add a [series of questions](https://yandex.com.tr/support/forms/en/blocks-ref/series.md) to a form several times. This means that questions from a series may repeat. To distinguish between multiple instances of the same question, question IDs that belong in a series get a suffix, which is the instance number after a double underscore. The numbers start with zero: `__0`, `__1`, `__2`.

For example, the form has a series of questions:

* **Name** with the `text_2643945` ID.

* **Phone** with the `phone_2752014` ID.

To prefill the fields in a series of questions, configure [GET parameters](https://yandex.com.tr/support/forms/en/get-params.md):

* For the first instance of the series, which is displayed in the form by default, use the `text_2643945__0` and `phone_2752014__0` question IDs.

* For the second instance of the series, which can be added by clicking <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.17 1.67a.83.83 0 1 1 1.66 0v7.5h7.5a.83.83 0 1 1 0 1.66h-7.5v7.5a.83.83 0 1 1-1.66 0v-7.5h-7.5a.83.83 0 1 1 0-1.66h7.5v-7.5z"/></svg></svg> **One more**), use the question IDs: `text_2643945__1`, `phone_2752014__1`.

![](_assets/code-series.png =400x){.border-grey}

## Answer IDs {#answer}

To find out the ID of an answer, click <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#svg-xvm3v90x__a)"><path fill="currentColor" fill-rule="evenodd" d="M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.199.199 0 0 1 .271.073l.802 1.388a.199.199 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.199.199 0 0 1 .073.271l-.802 1.388a.199.199 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.199.199 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.199.199 0 0 1-.272-.073l-.8-1.388a.199.199 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.199.199 0 0 1-.073-.271l.801-1.388a.199.199 0 0 1 .272-.073C5.042 5.138 7 4.007 7 2.2c0-.11.089-.199.199-.199ZM5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.699 1.699 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.699 1.699 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.698 1.698 0 0 1-2.32-.622l-.802-1.388a1.699 1.699 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.699 1.699 0 0 1-.622-2.321l.801-1.388a1.699 1.699 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2Zm4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" clip-rule="evenodd"/></g><defs><clipPath id="svg-xvm3v90x__a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg> **Show settings** at the top of the block.

![](_assets/answer-id.png =600x){.border-grey}

IDs can be edited. IDs of answers to a single question must be unique.


You can also find out the answer IDs in your browser using developer tools. This feature is available both to the author and user of the form.



## Answer IDs for questions with suggestions {#suggest}

For some types of questions, such as <q>Cities and countries</q> and <q>Wiki</q>, users select their answers from suggested options that appear as they start entering text in the field. To find out the answer ID for these questions:

1. Open the developer tools using the keyboard shortcut **Ctrl+Shift+I** (for Windows and Linux) or **⌘ + Option + I** (for macOS).

1. Enter the desired answer in the question field.

1. In the developer tools, go to the `Network` tab.

1. Select the last `getSuggest` query from the list on the left.

1. Go to the `Response` tab and find the desired answer option along with its `id`.

![](_assets/getsuggest-code.png =700x){.border-grey}


## Answer ID for **Rate on a scale** questions {#rating}

Let's see how to get IDs using Yandex Browser:

1. [Open the form by following the link](https://yandex.com.tr/support/forms/en/publish.md#link).

1. Open the developer tools using the keyboard shortcut **Ctrl+Shift+I** (for Windows and Linux) or **⌘ + Option + I** (for macOS).

1. Select the ![](_assets/select-element.png) tool and click the necessary answer field, list, or marker.

    ![](_assets/select-answer-dev.png =500x){.border-grey}

    You will see a fragment of the page code with the question or answer parameters highlighted in the **Elements** tab.

1. Find the ID values in the code:

    * Question ID: The `name` parameter value.

    * Answer ID: The last two digits of the `data-qa` parameter value. In the example below, this is `6815528_6815524`.

   ![](_assets/answer-rating-scale-code.png =600x){.border-grey}

{% include [style](https://yandex.com.tr/support/forms/en/_assets/style-a13ddc9841bc.md) %}
