# Microsoft Forms Questionnaire & Access Design (`Demo-Form 1–4`)
# 四張 Microsoft Forms 問卷結構與存取設計

> **Design Principle**: External regional forms use `Anyone can respond` paired with **PICS notices** and **Record Matching (`AppraisalID + SubmissionKey + Email`)**, while HQ manager scoring enforces **Entra ID authentication**.

---

## 1. Forms Overview Matrix

| Form | Audience & Access Setting | Pre-filled URL Parameters | Key Governance Controls |
| :--- | :--- | :--- | :--- |
| **`Demo-Form 1`**<br>Admin Initiation & Attendance | Regional Admin (`admin@partnerdemo.com`)<br>**Anyone can respond** | None (supports both *New Initiation* and *Partial Correction*) | • Header PICS notice<br>• Sender email validation<br>• Duplicate `AppraiseeEmail` check |
| **`Demo-Form 2`**<br>Employee Self-Appraisal | Regional Employee (`employee@companydemo.com`)<br>**Anyone can respond** | `AppraisalID`, `SubmissionKey` | • Header PICS notice<br>• **Mandatory affirmative Cross-Border Consent question at end**<br>• Null-safe partial edit mode |
| **`Demo-Form 3`**<br>Manager Scoring & Review | HQ Line Manager (`manager@companydemo.com`)<br>**Only people in my organisation** | `AppraisalID`, `SubmissionKey` | • Entra ID login + `responder == AppraiserEmail`<br>• Dual-evidence Innovation prompt<br>• Extreme score (`<=50` or `>80`) reason prompt |
| **`Demo-Form 4`**<br>Employee Confirmation | Regional Employee (`employee@companydemo.com`)<br>**Anyone can respond** | `AppraisalID`, `SubmissionKey` | • Header PICS notice<br>• Follows Section A–C preview email (Section D hidden)<br>• Supports dispute/return to manager |

---

## 2. Detailed Question Structure

### `Demo-Form 1`: Admin Initiation & Attendance Intake
1. **Operation Type** *(Required, Single Choice)*: `Initiate New Employee Appraisal` / `Correct Existing Record (Blank fields preserve old values)`
2. **Admin Coordinator Email** *(Required, Text)*: Validated against `admin@partnerdemo.com`
3. **AppraisalID** *(Optional, Text)*: Required only when correcting an existing record
4. **SubmissionKey** *(Optional, Text)*: Required only when correcting an existing record
5–10. **Employee Metadata** *(Required)*: `AppraiseeName`, `AppraiseeEmail`, `CommencementDate` (Date), `JobTitle`, `Department`, `AppraiserName` (Single Choice)
11–17. **Attendance & Disciplinary Metrics** *(Numeric validation)*: `AwardsCount`, `VerbalWarnings`, `WarningLetters`, `SickLeaveCount`, `NoPayLeaveCount`, `LateCount`, `LateMinutes`

### `Demo-Form 2`: Employee Self-Appraisal
1–2. **AppraisalID & SubmissionKey** *(Required, Text — Pre-filled via URL)*
3. **Employee Email** *(Required, Text — Record matching validation)*
4. **Submission Mode** *(Required, Single Choice)*: `First Submission` / `Returned Partial Edit (Leave unchanged fields blank)`
5–11. **Section A (Questions 1.1 – 1.7)** *(Paragraph Text)*: Value-add projects, community/team activities, key strengths, improvement areas, job satisfaction, additional remarks, and prior-year goal review *(auto-exempted if joined after Jan 1, 2026)*.
12–29. **Section B (Criteria 1 – 9)** *(9 pairs of Numeric `0.0–5.0` + Remarks)*:
   - Criterion 8 (*Innovation*) explicitly prompts: *"Provide concrete innovation examples; enter 'None' if no concrete examples exist (per policy, missing dual evidence results in 0 points)."*
30. **Cross-Border Personal Data Transfer Confirmation** *(Required, Single Choice — 1 affirmative option only)*: Explicit consent to transfer and process appraisal data in Hong Kong HQ M365 tenant.

### `Demo-Form 3`: HQ Manager Scoring & Review
1–2. **AppraisalID & SubmissionKey** *(Required, Text — Pre-filled via URL)*
3. **Review Decision** *(Required, Single Choice)*: `Submit Score to Employee` / `Return to Employee for Revision`
4–21. **Section B (Criteria 1 – 9)** *(9 pairs of Manager Score `0.0–5.0` + Manager Remarks)*
22–26. **Section C Qualitative Feedback** *(Paragraph Text)*: Next-year Goals `(a)`, `(b)`, `(c)`, Training Suggestions, Further Comments
27. **Justification for Total Score `<= 50` or `> 80`** *(Paragraph Text — Enforced by Flow 2B)*
28. **Return Reason** *(Paragraph Text — Required if returning to employee)*

### `Demo-Form 4`: Employee Confirmation
1–2. **AppraisalID & SubmissionKey** *(Required, Text — Pre-filled via URL)*
3–4. **Employee Name & Email** *(Required, Text — Record matching validation)*
5. **Confirmation Decision** *(Required, Single Choice)*: `Confirm Appraisal Result` / `Dispute & Return to Manager`
6. **Dispute / Return Reason** *(Paragraph Text — Required if disputing)*
