Configuring pre-filling of a hidden field
You can use hidden fields to automatically send technical or auxiliary parameters, such as UTM tags
Let's say you created a form and posted it on different websites. Now you want to know which website the user filled out the form on. To find this out, use the
utm_source
UTM tag.Add a hidden field named
Response sourceto the form. Add a GET parameter to the link, and the parameter value will automatically be sent to the hidden field. Then you can see where your user responses came from.
To configure a hidden parameter for this example:
-
Add a Short text question named Response source to the form.
-
Enable Hidden question for this question.
-
In the ID of the question field, specify
utm_source
: GET parameter name. -
Get a link to the form and append it to the
?utm_source=site_name_1
GET parameter.-
Sample link to the form without the GET parameter:
https://forms.yandex.com/u/6191b18d99e21b1********/
-
Sample link to the form with the GET parameter:
https://forms.yandex.com/u/6191b18d99e21b1********?utm_source=site_name_1
-
-
Post the form link with the GET parameter on the website.
-
In the same way, create another link to be placed on another website. To do this, append the GET parameter
?utm_source=site_name_2
. -
When a user follows the link, the
site_name_1
orsite_name_2
value is automatically entered in theResponse source
hidden field. You can use this value in the response to determine the website the form was filled out on.
To enable pre-filling of a hidden field when embedding a form in a website with an iframe, specify the URL with the configured GET parameters in the iframe embed code.