# Require a document on a course or site

A compliance requirement is the rule that says "this template must be signed for this course / this flying site / this instructor". Requirements are edited in context — on the course's Compliance tab or the flying site's Site requirements panel — and they are what makes PiGi generate documents when someone registers.

Source: https://help.pigi.io/guides/compliance/documents/compliance-requirements

## Quick answers

**Where do I add a compliance requirement to a course?**
Courses → open the course → **Compliance** tab. The tab only exists once
**Compliance requirements** is switched on in the course's **Details** tab (its
description reads "Students must complete compliance documents").

**Where do I add one to a flying site?**
Locations → Flying Sites → open the site. The right-hand column has a **Site
requirements** card with the same add/edit controls.

**Why can't I see a Compliance tab on my course?**
The course does not have **Compliance requirements** switched on. Open the course's
Details tab, turn the setting on, save, and the tab appears.

**What do I fill in when adding a requirement?**
**Type** (Permit, Indemnity, Contract or Medical) and **Requirement** — the document
template. The template dropdown is filtered to templates whose Type matches the Type
you picked, so pick Type first.

**I added a requirement after students enrolled — how do I catch them up?**
On the course's Compliance tab, press **Backfill compliance docs**. It generates the
missing documents for everyone on current and upcoming runs and is safe to re-run.
It reports how many documents it created for how many students.

**Can I reorder requirements?**
Yes. When a requirement list is embedded on a course or site it renders as a
drag-to-sort card list, and the order it saves is the order people sign them in.

**Does requiring a document generate it immediately?**
No. The rule states the obligation; the document is created when the thing it applies
to comes into existence — a student registering onto the course, a tandem flight being
captured, or (for instructor contracts) the contract being assigned.

**What happens if the template is missing or the code pool is dry?**
The requirement is skipped, and PiGi shows a warning reading "Your company
has no available codes for N compliance document(s). Please purchase more codes to
generate these documents." Audit Readiness reports the same gap.

**How do I require a contract of every instructor?**
Not here — use **People → Instructors → Contracts**, which has a purpose-built
"Required of all instructors" panel. See "Set up instructor contracts".

## What this is

Three things have to line up before a signed document exists:

- a **template** (the wording),
- a **requirement** (who must sign it), and
- the **thing** it applies to (a course enrolment, a tandem flight, an instructor).

A requirement can apply to *every* record of a kind ("every enrolment on this course") or
to one specific record. On the course and flying-site screens PiGi fills in the target for
you, so you only choose the Type and the template.

## Steps

1. Make sure the template exists first — see "Create a compliance document template".
2. Open the course (Details tab → switch on **Compliance requirements** if needed) or
   the flying site.
3. Go to the **Compliance** tab / **Site requirements** card and press the add button.
4. Choose the **Type**, then the **Requirement** (template).
5. Save. A "Compliance requirement created successfully!" message confirms it.
6. Drag the cards to set the order people sign them in.
7. If students are already enrolled, press **Backfill compliance docs**.

## Known limitations

- **Chicken-and-egg on new courses.** The Compliance tab is gated on a switch in the
  course's Details tab, so a new course offers no way to add a requirement until the
  switch is on.
- **The platform-level requirements form has a free-text "Model Type" box.** Typing a
  value PiGi does not recognise saves without complaint and produces a rule that
  matches nothing. The course and flying-site screens do not expose that box.
- **No school-level requirements list.** There is no /school/admin/compliance/requirements
  page — requirements are only reachable in context.
- **Removing a requirement does not remove documents already issued against it.**

## Related

- [Create a compliance document template](document-templates.md)
- [Sign compliance documents](signing-documents.md)
- [Set up instructor contracts](../company-setup/instructor-contracts.md)
