---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/support/forms/en/send-condition.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/forms/en/llms.txt

# Configuring conditions for submitting a response

You can configure requirements in a form for allowing users to submit a a response, or add a CAPTCHA to prevent automated responses.


## Set conditions for submitting a response {#condition}

The submit button can be shown or hidden depending on how the user responded to the questions. For example, you can allow submits only by users from a specific city.

1. Select a form and go to **Settings** → **Text and submit logic**.

1. Under **Form submission button**, select **Activate button** → **On condition**.

1. Set the condition under which the user can submit a response:

    1. Select the question that determines whether to show or hide the submit button.

         {% note info "" %}

        The submit button will be disabled if the selected question is hidden in the form based on a [condition](https://yandex.com.tr/support/forms/en/add-questions.md#conditions).

        {% endnote %}

    1. Select the comparison operator: **equal** or **not equal**.

    1. Select or enter the answer that the user's input has to match.

1. If you need to allow submitting a response only when multiple conditions are met, click <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.17 1.67a.83.83 0 1 1 1.66 0v7.5h7.5a.83.83 0 1 1 0 1.66h-7.5v7.5a.83.83 0 1 1-1.66 0v-7.5h-7.5a.83.83 0 1 1 0-1.66h7.5v-7.5z"/></svg></svg> under the first condition. Set up the condition: select a question, a comparison operation, and an answer option.

   The new condition will be grouped with the existing ones. By default, all conditions within the group are combined using the **AND** operator, so the user can submit their response only if all conditions are met simultaneously. If you want users to be able to submit responses when at least one condition is met, click the operator icon to the left of the group to select the logical **OR** instead.

1. To set a more complex logic, add multiple groups of conditions. To do this, click **Add condition** under the list of conditions, then configure the conditions within the group and select a logical operator to apply to them: **AND** or **OR**.

1. To delete a condition, hover over it and click <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2Zm2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5H11Zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438l.315-7.562Zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0Zm3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"/></svg></svg> to the right.

1. At the bottom of the page, click **Save**.

For more information about setting up conditions, see [Add questions to a form](https://yandex.com.tr/support/forms/en/add-questions.md#conditions).

## Add a CAPTCHA to the form {#captcha}

To prevent automated responses to your form, you can ask the user to enter a [CAPTCHA](https://en.wikipedia.org/wiki/CAPTCHA) before submitting their response.

1. Select a form and go to **Settings** → **Additional**.

1. Enable the ![](_assets/enabled-switch-blue.png) **Add captcha before submitting form** option.

1. Click **Save**.

{% include [style](https://yandex.com.tr/support/forms/en/_assets/style-a13ddc9841bc.md) %}
