> For the complete documentation index, see [llms.txt](https://docs.connected.events/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.connected.events/cookbook/elevate-your-community/get-feedback-surveys/set-survey-choice-restrictions.md). Agents can also search and read this documentation through its [MCP server](https://docs.connected.events/~gitbook/mcp).

# Set Survey Choice Restrictions

Ensure accurate data on your surveys by setting choice restrictions.

## Introduction

Ensure the accuracy and quality of your collected data by configuring specific [**Choice Restrictions**](https://docs.connected.events/ATG4PvSjQCWE8uPjtGaH/wiki/surveys-module/surveys#restrictions) for your surveys. The Restrictions settings empower administrators to precisely guide how respondents answer questions, preventing errors and ensuring data completeness. By establishing minimum and maximum limits, you can control the exact parameters of a participant's response. Furthermore, you can enforce specific answer formats—such as requiring a properly formatted email address—by applying regular expression validations. To provide a seamless user experience, administrators can also customize a specific validation message that appears when an answer doesn't meet your required criteria, helping respondents quickly correct their input before submitting the survey. This guide will walk you through the steps to apply these constraints and safeguard the integrity of your survey feedback.

{% hint style="info" %}

## Please Note:&#x20;

Choice restrictions are not supported for toggle or radio questions. Switch to a different question type to set restrictions.
{% endhint %}

## How to Set Choice Restrictions

<figure><img src="https://285465303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrgCqXYXfIqcyaNSQwMZ%2Fuploads%2FwKq0MLGfEPgkc8KjhMlA%2Fsurveychoicerestrictions.gif?alt=media&amp;token=dc7c982c-ce7b-48e3-adf8-25476a1e84bd" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

#### Navigate to or Create Survey Questions

* Select the waffle icon (<img src="https://285465303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrgCqXYXfIqcyaNSQwMZ%2Fuploads%2F0XbXnlX25yGrDe9qGywc%2FUntitled%20(100%20x%20100%20px)%20(2).png?alt=media&amp;token=0266f5e9-62b2-45ff-bd47-a970b2354353" alt="" data-size="line">) at the top of the Admin Portal.
* Select **"Surveys"** under the Platform and Communication column.
* Select the survey or select **"Create Survey+."**&#x20;
  * If creating a new survey or questions, follow the steps in the [Survey Creation Guide.](https://docs.connected.events/elevate-your-community/get-feedback-surveys.md#create-a-survey)
  * If the survey and questions are already created, select **"Questions"** from the left-hand menu.
    {% endstep %}

{% step %}

#### Set Choice Restrictions

* Select the question you wish to add response restrictions to.
* Select the **"Restrictions"** tab on the slide-out menu.
* Enter a minimum and maximum value.
* Enter a validation (regular expression) to validate the response.
* Enter a validation message.
* Select **"Update"** to finalize the edits.
  {% endstep %}
  {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.connected.events/cookbook/elevate-your-community/get-feedback-surveys/set-survey-choice-restrictions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
