> 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/1.started.md).

# Widget Form

Creating a form involves three main stages:

1. **Form:** This section contains the list of all your different forms.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2015.00.35.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/ibP8Hqr0XrDHYKTxmIPV" alt=""><figcaption></figcaption></figure></div>
2. **Validation**: This is where you set up rules to validate user input.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2015.01.58.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/FLcBjhUyitQRDU9NEWYQ" alt=""><figcaption></figcaption></figure></div>
3. **Data Process**: This is where you configure how the submitted data is handled.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2015.03.06.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/PSILEc8R0vdtnaZkeVWU" alt=""><figcaption></figcaption></figure></div>

### Using Form Widget

First, make sure you have created a new service and are on the frontend builder page, as shown in the image below.

1. **Drag and drop** the form widget from the menu onto your page.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2013.24.19.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/GvSyAySNEex8J057Sici" alt=""><figcaption></figcaption></figure></div>
2. Click the "**gear**" icon on the form widget to open its settings.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2013.26.28.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/G6LT6QnXt4XhurYGTP7W" alt=""><figcaption></figcaption></figure></div>
3. A pop-up window will appear. Click "**Tambah Formulir**" (Add Form).

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2013.27.22%20(1).jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/rGBlKYKwFesauE5nNYH7" alt=""><figcaption></figcaption></figure></div>
4. The display will change to the form builder view (as shown in the image below).

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2013.29.34.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/3UbSaOOVTq6gkc7iGHfs" alt=""><figcaption></figcaption></figure></div>
5. To add a field, click "**Tambah Bidang**" (Add Field). A new field will appear.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2014.46.27.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/xZBmVKSv7bnsQdev1pWl" alt=""><figcaption></figcaption></figure></div>
6. Configure this new field by clicking on the "**Bidang**" (Field) that you just added.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2014.48.10%20(1).jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/I7XRQJm3xszHLn8LsT4w" alt=""><figcaption></figcaption></figure></div>
7. In the "**Label**" column, enter the name for your field (e.g., "Full Name", "Email").

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2014.51.18.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/koQ4hH0FnUFfzhomzKUp" alt=""><figcaption></figcaption></figure></div>
8. Once done, click the **"Setup Komponen" (Setup Component)** button.
9. A setup panel will appear, allowing you to configure the type and behavior of the form field.

   <div><figure><img src="https://github.com/QTN-DEV/quantumbyte-doc/blob/main/.gitbook/assets/Screen%20Shot%202024-05-30%20at%2014.54.06.jpg" alt=""><figcaption></figcaption></figure> <figure><img src="/files/x7KzbYsJioifyCVmRTdB" alt=""><figcaption></figcaption></figure></div>
10. Select and choose the appropriate form type for your needs (e.g., standard form, time, media, camera, location, dynamic, built-in, or external/internal data).


---

# 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/1.started.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.
