# Capture value from query string

In this walkthrough you will see how to capture a value from the browser's querystring and store it along the respondent answers in a hidden field.

## 🕵 Hidden answer

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBcYF_UnosoKJ3aCTh_%2F-MBcd8NE6Ii64-9eqd0q%2Fcaptured123.png?alt=media\&token=abada837-f41d-49d5-89dc-dc8942b5f06b)

1. At the left menu of the **Form designer.**
2. Switch to the **Answers** tab at the top of designer menu.
3. Choose **Hidden** answer.

{% hint style="info" %}
Place the [**hidden field answer**](https://docs.ngsurvey.com/form-management/form-designer/answers/answer-types/hidden-field) inside of any existing question. It will stay hidden and won't be seen by respondent.
{% endhint %}

## 👔 Capture value from query string

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBd-d-__TqH_TDCSBnh%2F-MBd6IUwLTwxwGWzGPqG%2Fcaptured%20\(1\).gif?alt=media\&token=d7d4e702-ae10-4c3c-8e71-e5473bcd6bd7)

1. Choose **Properties** in the tool bar on the right of the [Hidden](https://docs.ngsurvey.com/form-management/form-designer/answers/answer-types/hidden-field) answer line
2. Go to the **Pipe source** at the end of the **Default text value** line.
3. Insert **Variable name** at **Querystring variable value**
4. Press **Pipe** to set the settings.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBdCs9m2uY7BvJ6ml_T%2F-MBdDlP8BxmnCGNCcgiD%2Fcapture5n.png?alt=media\&token=4edcaa1e-8193-4f93-9841-09e9440613dc)

5\. Set the querystring name and value and append it to the [survey deployment link](https://docs.ngsurvey.com/form-management/publish-deploy)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MBdCs9m2uY7BvJ6ml_T%2F-MBdEEQZM7xSwBxX2bA5%2Fcaptured6n.png?alt=media\&token=75844113-14bd-499c-96db-c7ae8e84a666)

6\. Once the respondent has submitted his answer you can view the captured value from the [respondents ](https://docs.ngsurvey.com/form-management/respondents-management)report grid.
