# Compare Field

The compare field answer type allows you to compare the respondent entry in that field to another field entry in the survey or to compare it against a fixed value or value range that you define.

![](/files/-MBy9S2IyW6oyJ5j1ZeC)

In the example above the Confirm password is the compare field and will compare its value against the Password field to make sure that those are matching.

## 👥 Comparing against another answer value

To compare a value from another answer you have open its [answer properties](/form-management/form-designer/answers/answer-properties.md) page and set its **Answer label** to the field you wish to compare to.

![](/files/-MBy9qMYm2H07Il2Yo0E)

In the example above the compare field will compare the value that was entered in the Password answer and check that its equal to the value entered in the compare field.

## 🔢 Comparing against a static value

To compare a static value against the respondent answer you have to open its [answer properties](/form-management/form-designer/answers/answer-properties.md) page and set the **Respondent answer** or **Respondent answer range** to&#x20;

![](/files/-MByBJ1QbLQEV4meSN-f)

In the example the compare field will compare the entry of the respondent and make sure that its equals to 10.

You may use following conditions for your comparison.

![](/files/-MByBc7Az10WMD705WiF)

{% hint style="info" %}
Comparisons are type depended if you selected for example the numeric type then 10 would be greater than 9, if it was a date then 2nd June would be greater than 1st June.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/form-management/form-designer/answers/answer-types/compare-field.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
