> For the complete documentation index, see [llms.txt](https://docs.tlic.cmu.ac.th/cmucanvas-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/cmucanvas-manual/course-design/learning-path-design/prerequisites.md).

# Prerequisites

เมื่อผู้สอนตั้ง Prerequisites ใน Module จะมีผลทำให้ Module ดังกล่าวถูกล็อคจนกว่าผู้เรียนจะทำ Module ที่เป็นเงื่อนไขให้เสร็จเรียบร้อย จึงควรตั้งค่า Prerequisites ร่วมกับ Requirements ให้เป็น Module ลำดับขั้นแรก และผู้สอนจะสามารถตั้งค่าเลือก Module ก่อนหน้าได้เท่านั้น ดังนั้นการจัดลำดับขั้น Module ในหน้าคอร์สให้เป็นไปตามลำดับขั้นจึงเป็นเรื่องที่ควรคำนึงถึงเช่นกัน

### เลือก Module

<figure><img src="/files/hAajR1hy9VMKFExjm1yn" alt=""><figcaption></figcaption></figure>

### Edit Module

<figure><img src="/files/F4S7Nz2tOhBAcj0rYOas" alt=""><figcaption></figcaption></figure>

### เพิ่ม Prerequisites

<figure><img src="/files/gNdLjgo8cGFJkw5x1g2u" alt=""><figcaption></figcaption></figure>

### ตั้งค่า  Prerequisites

<figure><img src="/files/xlzNNNokh8WzwHYPy5il" alt=""><figcaption></figcaption></figure>

จะมีปุ่ม Dropdown ให้เลือก Module ที่ต้องการให้ผู้เรียนทำกิจกรรมให้เรียบร้อยก่อน จึงจะเข้า Module นี้ได้

### การจัดการ Prerequisites

<figure><img src="/files/66UpKRyGaHsF5VBrSock" alt=""><figcaption></figcaption></figure>

ผู้สอนสามารถเพิ่ม Prerequisites มากกว่า 1 ได้ โดยเลือกที่ Add Prerequisites หรือถ้าต้องการลบ สามารถกดได้ที่ปุ่มกากบาทด้านขวา

### เมื่อตั้งค่าเรียบร้อยแล้วกด Update Module

<figure><img src="/files/FnRsisH5pjNWC8nj2yZX" alt=""><figcaption></figcaption></figure>

### ตรวจสอบ Module

<figure><img src="/files/1nTXOLp2MkY4iaSsE7p6" alt=""><figcaption></figcaption></figure>

บนแถบ Header ของ Module จะมีเงื่อนไขของ Prerequisites ปรากฏขึ้น
