# Modules within an entity

**Modules** are the subsections of the screen where the input fields are placed. The module configurations provide a list of features to include in smart forms. Users can add rows and columns in smart forms based on their respective designs. Module configuration requires the user to specify a database table name, table keys, and sequences to store user inputs, and also provides an option for the user to write SQL queries inside the configuration to retrieve values from the database. Users can drag and drop a list of required fields inside the module layout to create the desired form. Fields are a type of input values that are used inside the module layout to store different kinds of user inputs. The types of fields supported by ONEWEB smart forms are as follows:

<table><thead><tr><th width="150">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Text box     </td><td>Text and Numbers</td></tr><tr><td>Label</td><td>To show static labels on the screen. It comes with Rich text options.</td></tr><tr><td>Hidden </td><td>Hidden fields on the screen. Mostly used to manipulate the module keys.</td></tr><tr><td>Text Area</td><td> Field to enter the text of more than 100 characters</td></tr><tr><td>Radio </td><td>button To allow selection of a specific choice from multiple choices.</td></tr><tr><td>Checkbox </td><td>To allow selection of one or more data from multiple choices.</td></tr><tr><td>Listbox</td><td> To display a list of static data as a dropdown. The values to be shown are set in the field itself.</td></tr><tr><td>Dynamic List </td><td>To display a list of values dynamically as a dropdown. Its data is shown from a table in the database and can be controlled to show values depending on another field in the module.</td></tr><tr><td>Popup</td><td> To display a list of data from a table in the database as a popup window. It also has a text box for searching data based on the key </td></tr><tr><td>Calendar </td><td>To enter date fields </td></tr><tr><td>Suggestion box</td><td>This field can suggest data to the user in a dropdown based on the data keyed in. Moreover, users can use the keyword search in this field</td></tr><tr><td> No Object</td><td>Special field use to display a custom value on the screen that is not part of the data in the table of the module.</td></tr><tr><td> Multi Select</td><td>To provide multi-select option.</td></tr><tr><td>Upload</td><td>To attach and upload files.</td></tr></tbody></table>

AppDesigner supports 3 types of modules:

**One to One (1-1):** \
**One to One** on ONEWEB displays and manages data fields corresponding to one record in the database. To build a smart form with a 1-1 module, you can begin with creating an entity, tab as per requirement and ready to start with the module configuration. The 1-1 module has a row and column layout where you can simply add rows and columns as per your required design.

Below is an example of a 1-1 Module with 5 rows and 2 column layout, the module configuration provides a list of property settings (1-7). To see all property configuration settings in detail, please refer 1-1 Module section in App Designer Reference.

![](/files/MJMIbncDyb9r5KJSNo1h)

**One to Many (1-Many)** \
A "One to Many" module displays and manages data for multiple records in the database. It shows data in a tabular form. This type of module supports both grid and card layout for the table and allow users to handle a large number of items and columns.

Below is an example of a 1-Many Module with 13 columns. To see all property configuration settings of 1-Many Module in detail, please refer 1-Many Module in reference links.

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb3HeRckiV7NnUtKzTJvA%2Fuploads%2F1d6l7QslnRVPX0fB6D5R%2Fimage.png?alt=media\&token=d6272caa-f3f4-4ca9-92c1-45a38d5b5c88)

Below picture shows user screen for a smart form with 1-1 Module and 1-Many Module Configuration.

![](/files/6a6xKVqoXORkSYmKKrnv)

**Reuse Module:** \
The Reusing feature under the module section is used to support the reuse of existing modules. Using this module feature you can clone any existing module to your tab. However, It is to be noted that the cloning feature is only limited to the module, fields, and database mapping configurations and any actions configured to that module will not be copied.

The below picture shows Reusing Module Configuration. Please refer to the [Reuse Module section](/oneweb/reference/app-designer-reference/entity/create-new-entity/module/reusing-module.md) in App Designer Reference.

![](/files/1vCUxEwQXnhaFlUDFnCc)


---

# 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.oneweb.tech/oneweb/design-and-develop-oneweb-apps/design-and-develop-ux-ui/ux-ui-components/smart-forms/modules-within-an-entity.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.
