> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ar/form-management/form-designer/form-settings/alhss.md).

# الحصص

## 👥 ما هي الحصص (quotas)؟

تتيح لك الحصص تقييد الوصول إلى استبيان بناءً على عدد الإجابات التي تستوفي شروطًا معينة. بمجرد الوصول إلى عدد الإجابات المحدد، يمكن إما إغلاق الاستبيان أو تقييد الوصول إليه.

## 🚀 كيف تفعّل الحصص؟

لتمكين الحصص تحتاج إلى إنشاء شرط الحصة الأول وتحديد عدد المستجيبين الذين سيتطابقون مع تلك الحصة.

في المثال أدناه حددنا حصة قدرها 1000 مستجيب للإجابة "Apple". سيُرجع شرط الحصة قيمة true إذا كان هناك أكثر من 1000 مستجيب في الاستبيان أجابوا "Apple".&#x20;

<div><figure><img src="https://848173432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FcYiQsGCAwDwA4fcEfjpB%2Fimage.png?alt=media&amp;token=4dd35061-01a6-4fb9-9524-36bba1dee4cf" alt=""><figcaption></figcaption></figure> <figure><img src="https://848173432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FXvreV9cXSVcxuIxx21Lg%2Fimage.png?alt=media&amp;token=8c8c6eda-fb0a-4615-b574-149bb73de468" alt=""><figcaption></figcaption></figure></div>

بمجرد تعريف الحصة يمكنك استخدام حصتك إما في أي من [قواعد شرطية](https://docs.ngsurvey.com/ar/form-management/form-designer/condition-rules/conditions-rules.md)، باستخدام [ميزة تقييد الحصة](https://docs.ngsurvey.com/ar/form-management/security/security-items/qywd-alhss.md) الأمنية أو كما هي.

إذا كنت تستخدم الحصة كما هي يمكنك استخدامها لإنهاء الاستبيان تلقائيًا من خلال الاستفادة من ميزة "إنهاء الاستبيان". تنهي هذه الطريقة الاستبيان فورًا للمشاركين الذين يختارون خيار "Apple" بمجرد الوصول إلى الحصة المخصصة له. باستخدام هذا الخيار يمكنك إنهاء استبيان بناءً على حصة مع السماح للإجابات الأخرى التي لا تطابق الحصة بالاستمرار.

<figure><img src="https://848173432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8fLhS0bmfBRyq0HdUm%2Fuploads%2FTrBDRzNH5nNrazrSMJfQ%2Fimage.png?alt=media&amp;token=0281cc5d-21a5-4726-a70c-b2f3034b637a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
بشكل افتراضي، يقوم ngSurvey تلقائيًا بالتخلص من الإجابات بمجرد الوصول إلى حصة الاستبيان. ومع ذلك، إذا رغبت في الاحتفاظ بالإجابات التي تتجاوز الحصة، يمكنك تفعيل ذلك بتحديد خيار "الاحتفاظ بالإجابات المتجاوزة للحصة".&#x20;
{% endhint %}


---

# 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.ngsurvey.com/ar/form-management/form-designer/form-settings/alhss.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.
