> For the complete documentation index, see [llms.txt](https://docs.quantumbyte.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quantumbyte.ai/home/quantumbyte-v2.0/2.builder/1.frontend/6.formulir/3.validation.md).

# Validation

This is the section where you set up the input validation rules for your form fields.

<figure><img src="/files/XNab97k8aGUT6EgVNLnf" alt=""><figcaption></figcaption></figure>

### Valdiation Setup

1. Please make sure you have already created a form and added a field to it, as shown in the following image.

<figure><img src="/files/DSYtUSZb1u9WGme7Wf2n" alt=""><figcaption></figcaption></figure>

2. Click the **"Setup Komponen" (Setup Component)** button.
3. The form setup panel will appear, allowing you to configure the field.

<figure><img src="/files/93qgYs6CS7hVrSF9ZEOc" alt=""><figcaption></figcaption></figure>

4. Select and choose the appropriate form type (*e.g., standard, time, media, camera, location, dynamic, built-in, or external/internal data*).
5. Once selected, click "**Next**" to proceed to the validation stage.

<figure><img src="/files/KI2HhGjn2hhonleLFrXG" alt=""><figcaption></figcaption></figure>

Now, define the type of validation for your field. You have 6 validation options:

1. **Required**: When activated, this means the field cannot be left empty and must be filled out.
2. **Text**: When activated, you can set the minimum and maximum allowed length for the text.
3. **Number**: When activated, you can set the minimum and maximum allowed numerical value.
4. **Image**: When activated, you can set the maximum file size for an uploaded image.
5. **File**: When activated, you can set the maximum file size and the allowed file formats (*e.g., .pdf, .doc*) for upload.
6. **External Validation**: When activated, you can set up validation based on an external endpoint (API). This endpoint must return a JSON response in this format: `{'status': true/false, 'msg': 'Success Message'}`.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.quantumbyte.ai/home/quantumbyte-v2.0/2.builder/1.frontend/6.formulir/3.validation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
