# Radio

**Radio** là tính năng tạo ra các tuỳ chọn cho người dùng nhưng chỉ chọn được 1 lựa chọn duy nhất . Dùng để tạo trắc nghiệm, câu hỏi khảo sát,...\
Bạn lưu ý, **Radio** luôn phải kèm theo **Model** để lưu trữ dữ liệu người dùng.

#### Dưới đây là các bước để bạn có thể tạo ra 1 Radio button

Bước 1: Tạo 1 Model để lưu trữ dữ liệu người dùng. \
Ở giao diện **Appon** chọn Dữ liệu -> Thêm trang tính -> Nhập tên dữ liệu -> Thêm. \
Sau khi tạo xong Model bạn bấm vào Model đó thêm những các trường cần thiết.

![Tạo Model lưu dữ liệu](/files/zliog78rXZoJiQSEFBNK)

Bước 2: Bạn vào phần **Khối** -> kéo xuống tới mục **Selection** -> kéo biểu tượng **Radio button** ra màn hình bạn muốn tạo.

![Kéo Radio button ra sử dụng](/files/x3T3VQRyJe9Ay5ckmTC8)

Bước 3: Cấu hình cho **Radio button :**\
Bấm vào **Radio button** muốn cài đặt cấu hình -> chọn "Hành động" \
\- Text: Là phần hiển thị thông tin của **Radio button**\
\- Tên nhóm : Là tên của 1 nhóm **Radio button**\
\- Giá trị : Là phần thông tin trả về ( thông thường phần giá trị sẽ để giống phần text)\
\- Gán giá trị cho model : Để lưu trữ dữ liệu của **Radio button**\
&#x20;  Chọn -> Click đúp vào model vừa tạo -> chọn trường lưu trữ.

![Cấu hình cho Radio button](/files/99VEPcA7tieFFN7VJScT)

Bước 4: Publish và kiểm tra tính năng.

![Kết quả chọn được hiển thị](/files/4pQIfGn3OIa9yDflQ24x)


---

# 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://tailieu.appon.vn/huong-dan-co-ban/basic-use-block/su-dung-chuc-nang-block-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.
