Getting question and answer 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 IDs are specified in the Settings, under the corresponding question block.
To reveal more question settings, click
IDs for a series of questions
You can add a series of questions 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:
-
For the first instance of the series, which is displayed in the form by default, use the
text_2643945__0
andphone_2752014__0
question IDs. -
For the second instance of the series, which can be added by clicking
One more), use the question IDs:text_2643945__1
,phone_2752014__1
.
Answer IDs
To find out the ID of an answer, click
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
For some types of questions, such as Cities and countries
and Wiki
, 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:
-
Open the developer tools using the keyboard shortcut Ctrl+Shift+I (for Windows and Linux) or ⌘ + Option + I (for macOS).
-
Enter the desired answer in the question field.
-
In the developer tools, go to the
Network
tab. -
Select the last
getSuggest
query from the list on the left. -
Go to the
Response
tab and find the desired answer option along with itsid
.
Rate on a scale
questions
Answer ID for Let's see how to get IDs using Yandex Browser:
-
Open the developer tools using the keyboard shortcut Ctrl+Shift+I (for Windows and Linux) or ⌘ + Option + I (for macOS).
-
Select the
tool and click the necessary answer field, list, or marker.
You will see a fragment of the page code with the question or answer parameters highlighted in the Elements tab.
-
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 is6815528_6815524
.
-