# Forms

Forms allow you to collect data directly from users and input it into your database. This section explains how to collect user data using forms and store it in your PowerTable app.&#x20;

Forms are a versatile tool that can be used for various purposes, such as capturing expense reports, collecting user responses, running polls and quizzes, gathering customer feedback, and more. You can use them for tasks like surveying, registering event attendees, managing internal requests, and onboarding new users. They make data collection easier and optimize workflows for both individuals and businesses with their structured format and customizable fields.

## 1. Create a Form

1. Go to **Setup > Forms.**

<figure><img src="/files/801Q1PAMTLoL82qUZumy" alt=""><figcaption><p>Click on 'Form'</p></figcaption></figure>

2. Click on **Create a Form.**&#x20;

<figure><img src="/files/ol9sV6QYMQ5fdZhSFQtR" alt=""><figcaption><p>Create a Form</p></figcaption></figure>

You'll see a window where you can configure the required fields for your form and customize them.

<figure><img src="/files/cWXKxyNKYi0ehcDl6hcY" alt=""><figcaption><p>Form configuration</p></figcaption></figure>

The primary key field is automatically added to the form since it is mandatory. You can start adding other required fields to your form.

<figure><img src="/files/0hKSJX9JqvsrNr96guKU" alt=""><figcaption><p>Primary Key field</p></figcaption></figure>

## 2. Add New Fields

1. Hover your mouse down the primary key field and click the '+' icon to begin adding new fields below.

<figure><img src="/files/BWzVNSQLAOijwyvlyeAZ" alt=""><figcaption><p>Click to add field below</p></figcaption></figure>

2. Select the required fields from the dropdown list or click 'Select All' to select all the table fields to add to the form.

<figure><img src="/files/db9RiaRpidMbM55Ti8jo" alt=""><figcaption><p>Adding fields</p></figcaption></figure>

3. You can also add more fields later by clicking the '+' icon directly below any previously added field.

<figure><img src="/files/E8sbYFqm9CbL4fSymJ8D" alt=""><figcaption><p>Adding more fields</p></figcaption></figure>

## 3. Create Field Groups

To make user inputs more readable and organized, you can group related or similar fields together. In address blocks, for example, you can group related fields such as house number, street name, city, state, zip code, and so on.&#x20;

Grouped fields also enable you to perform bulk operations on fields, such as hiding them or formatting them at once.

1. Click on **Add Group** to create a new group.

<figure><img src="/files/lqQHtuq35XnUAIWnLSv2" alt=""><figcaption><p>Add Group</p></figcaption></figure>

2. A new field group is created, within which you can begin adding fields.
3. When adding a new field, click the '+' icon on either side of the existing field to group it together.

<figure><img src="/files/8yWiC3GME2E6BIy4OnEg" alt=""><figcaption><p>Adding fields to the left or right</p></figcaption></figure>

<figure><img src="/files/r8k2gN31nDSEuloarFPB" alt=""><figcaption><p>Adding field to the left</p></figcaption></figure>

You can specify which fields are mandatory and which are optional.

After configuring all the required fields in the form, click **Save.** Your form is now created.


---

# Agent Instructions: 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:

```
GET https://docs.powertable.com/explore-powertable/forms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
