> For the complete documentation index, see [llms.txt](https://docs.tlic.cmu.ac.th/cmumoodle-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tlic.cmu.ac.th/cmumoodle-manual/quiz/creating-quiz/question-type/drag-and-drop-into-text.md).

# Drag and drop into text

![](/files/ToHy1WvH2xbq6QVlEO27)

คำถามประเภทนี้จะเป็นการลากตัวเลือกใส่ในช่องว่างของโจทย์ คล้ายกับการทำข้อสอบประเภท gapfill แต่จะเน้นเป็นโจทย์ประเภทเรียงความมากกว่าที่จะเป็นโจทย์แบบประโยคหรือวลีสั้นๆให้น.ศ.อ่าน

### การสร้างโจทย์ใน Drag and drop into text

![](/files/6Cmp39T2uZesGIYsZLlM)

เพิ่มโจทย์ลงในช่อง Question text โดยสามารถปรับแต่งตังอักษรและรูปแบบได้ตามที่อาจารย์ต้องการ และใช้เครื่องหมาย '\[\[n]]' (แทน n ด้วยตัวเลขลำดับของตัวเลือก)

### Choice

![](/files/CKMw3Y0eQfAUV0J9p3mI)

* Choice \[\[n]] การเพิ่มตัวเลือก สามารถใส่ตัวเลือกตามลำดับตัวเลขที่ใส่ในเครื่องหมาย '\[\[n]]' ได้เลย โดยสามารถใส่ตัวเลือกให้มีมากกว่าจำนวนของช่องที่มีในโจทย์ได้ด้วย นอกจากนี้อาจารย์ยังสามารถเปิดฟังก์ชั่น Shuffle เพื่อสุ่มลำดับของตัวเลือกดังกล่าวนี้ได้ด้วย

{% hint style="info" %}
Format  ![](/files/kePD0oBkqwIt2pFVH78u)สามารถใช้กับตัวเลือกของคำถามประเภทนี้ได้
{% endhint %}

* Group ใช้สำหรับตั้งค่ากลุ่มของคำตอบ คำตอบที่อยู่ในกลุ่มเดียวกันจะมีกรอบตัวเลือกและช่องว่างที่เป็นสีเดียวกัน
* Unlimited ข้อที่เปิดฟังก์ชั่นส่วนนี้ไว้จะสามารถลากไปวางในช่องว่างได้มากกว่า 1 ช่อง(ใช้ในการตอบได้มากกว่า 1 ครั้ง)

![ตัวอย่างโจทย์แบบ Drag and drop onto text](/files/rgxkspUJevRsZwROKZ8u)


---

# 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.tlic.cmu.ac.th/cmumoodle-manual/quiz/creating-quiz/question-type/drag-and-drop-into-text.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.
