# Radio

The **Radio** field is an input component used to allow users to **select exactly one value** from a predefined list of options.\
It ensures that the selected value is **mutually exclusive**, meaning only one option can be chosen at a time.

Radio fields are suitable for controlled value selection where data consistency is required.

***

### Purpose of Radio Field

The Radio field is commonly used to:

* Enforce single‑choice selection
* Restrict input to predefined values
* Improve data validation and consistency
* Represent enumerated or boolean‑style data

**Typical use cases**

* Status (Active / Inactive)
* Gender
* Payment Type
* Yes / No options

***

### Adding and Configuring a Radio Field

To configure a Radio field:

1. Drag the **Radio** field into a Module layout
2. Click the **Edit (pencil) icon**
3. The **Radio Configuration** window opens

<figure><img src="https://2015371994-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMpDjHWFRUtZ5nJcSfVXd%2Fuploads%2FzcBz4MBFsaZsDkyjy0eS%2Fimage.png?alt=media&#x26;token=a18f8eda-edd2-4c7b-a04f-a9eb3e09ae2d" alt=""><figcaption></figcaption></figure>

***

### Radio Configuration Properties

#### 1️. Core Identification

| Property  | Mandatory | Description                        |
| --------- | --------- | ---------------------------------- |
| **MF ID** | Yes       | System‑generated unique identifier |

***

#### 2️. Radio Display Data

Defines individual radio options.

| Property          | Mandatory | Description                                |
| ----------------- | --------- | ------------------------------------------ |
| **Value**         | Yes       | Stored value for the option                |
| **ShowName**      | Yes       | Display text shown to the user             |
| **Seq**           | No        | Display order of the option                |
| **Default Check** | No        | Sets the option as default selected        |
| **ColumnCount**   | No        | Number of columns to display radio options |
| **Source Tag**    | No        | JavaScript applied at item level           |

***

#### 3️. Database Mapping

| Property      | Mandatory | Description                          |
| ------------- | --------- | ------------------------------------ |
| **Field\_ID** | No        | Database column mapped to this field |

***

#### 4️. Display & Search Configuration

| Property              | Description                                          |
| --------------------- | ---------------------------------------------------- |
| **ShowFieldName**     | Label displayed on screen (auto‑generated supported) |
| **SearchCriteria**    | Enables field as search criteria                     |
| **ShowSearch**        | Displays field in search result table                |
| **SearchFromTo**      | Enables range‑based search                           |
| **SearchPreLike**     | Enables wildcard `%XXX` search                       |
| **SearchLike**        | Enables wildcard `XXX%` search                       |
| **SearchIgnoreCase**  | Case‑insensitive search                              |
| **JoinSearchTable**   | Used for JOIN‑based search SQL                       |
| **SearchFieldGroup**  | Horizontal grouping in search screen                 |
| **SearchCriteriaSeq** | Vertical position in search criteria                 |
| **ShowSearchSeq**     | Order in search results                              |

***

#### 5️. UI & Behavior Flags

| Property        | Description                             |
| --------------- | --------------------------------------- |
| **Alignment**   | Text alignment: Left / Center / Right   |
| **OnlyGuiFlag** | UI‑only field (not persisted to DB)     |
| **ViewFlag**    | Displays field in read‑only mode        |
| **KeepHistory** | Persists value change history           |
| **FilterFlag**  | Filters 1‑Many records using this value |
| **Authen**      | Applies IAM‑based authorization         |
| **MergeFlag**   | Field spans across multiple columns     |

***

#### 6️. Validation Rules (Validate Code)

Validation logic applied before saving.

| Code                 | Description                      |
| -------------------- | -------------------------------- |
| `CHECK_NULL`         | Prevents saving if value is null |
| `CHECK_INTEGER`      | Ensures integer value            |
| `CHECK_DECIMAL`      | Ensures decimal value            |
| `CHECK_EMAIL_FORMAT` | Validates email format           |

***

### Usage Guidelines

* Use Radio when **only one value must be selected**
* Avoid using for free‑text input
* Always define clear `ShowName` values
* Set a default value when applicable
* Map to database field when persistent storage is required
* Use IAM authorization for role‑based visibility


---

# 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.onewebstack.com/designer-reference/app-designer/entity/create-new-entity/fields/radio.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.
