> ## Documentation Index
> Fetch the complete documentation index at: https://docs.manta.education/llms.txt
> Use this file to discover all available pages before exploring further.

# Family-Facing Application Flow

> The end-to-end application flow families move through in the Manta Family Portal — from school discovery to submission.

This page describes what happens at each step of the family-facing enrollment application in Manta. IT admins and district staff need this reference to support families, troubleshoot issues, and understand what data is collected and when.

The full application sequence is:

**Express Interest → Account Creation → Family Profile → Student Information → School Discovery → School Selection & Ranking → Application Review → Submit**

Families can also take a **Quick Apply (unauthenticated)** path that bypasses account creation until submission.

***

## Express Interest

The Express Interest form is a lightweight interest-capture form, distinct from the full application. It lives inside the School Discovery flow and is accessed from a school's **School Profile** page — it is **not** authentication-gated.

If the form is opened directly via URL (not from a school profile), no school is displayed and the submission is treated as a general information request.

### Fields Collected

| Field | Type | Required |
| - | - | - |
| School Name | Read-only, pre-populated from the school profile | — |
| Guardian First Name | Text | Yes |
| Guardian Last Name | Text | Yes |
| Preferred Contact Method | Single-select | Yes |
| Email | Text | Yes |
| Phone | Text | Yes |

The primary call-to-action button on the form reads **"Get Your Guide."**

### Record Creation & De-duplication

On submission, a Person/Contact record is created. If a Contact record already exists with a matching phone **and** email, a new record is **not** created — the existing Contact is reused. This means a family can submit Express Interest for multiple schools without generating duplicate Contact records. \[TO CONFIRM: additional duplicate-detection logic beyond the phone+email match]

### Confirmation Screen

After a successful submission, the family lands on a confirmation screen (static text for now; screen text becomes admin-configurable once the backend form editor ships — see [Application Template Configuration](https://docs.manta.education/it-admin/enrollment/application-template.md)). A magic link is also sent via the family's preferred contact method.

From here, the family has two options:

* **"Continue to full application now"** — takes the family into the full application with the following fields pre-filled from the Contact record: Guardian First Name, Guardian Last Name, Preferred Contact Method, and Contact Detail (email or phone). Pre-filled fields remain **editable** — they are not locked. If a value is missing from the Contact record, its field renders blank rather than showing an error.
* **"I'll do this later"** — ends the session. The Contact record persists for later follow-up.

> [!NOTE]
>
> Once the family begins editing a pre-filled field, subsequent changes save to the application draft record — not back to the original Contact/lead record.

***

## Account Creation

Families create an account using a single passwordless entry flow — they enter either a mobile phone number or an email address, and Manta auto-detects which one it is and sends an OTP to that contact. Both phone and email are supported as of this cycle (email OTP shipped alongside the existing phone OTP path).

For the full login and account creation flow — including how the OTP-first flow works, how returning users are distinguished from new users, and the Family Portal Home Dashboard families land on afterward — see [Family Login & Account Creation](https://docs.manta.education/it-admin/enrollment/family-login-and-account-creation.md).

> [!NOTE]
>
> Account creation is optional at the start of the flow. Families can proceed through school discovery and fill out the full application without an account (Quick Apply). An account is required only at the point of submission.

***

## Family Profile (Guardian)

The Family Profile step collects primary contact and household information for the guardian. This data is saved to the family record in Manta and is shared across all student applications from the same household.

### Fields Collected

| Field | Type | Required | Notes |
| - | - | - | - |
| Guardian First Name | Text | Yes | Pre-filled from Express Interest if applicable |
| Guardian Last Name | Text | Yes | Pre-filled from Express Interest if applicable |
| Email Address | Text | Yes | Validated for common typos |
| Mobile Phone | Text | Yes | Validated for format (see below) |
| Preferred Contact Method | Toggle (Text Message / Email) | Yes | |
| Home Address | Address with Google autocomplete | Yes | Geocoded to lat/lng on entry |
| Number of Children Applying | Number | Yes | Defaults to 1; controls how many student info steps follow |

### Phone Number Validation

All phone number fields in the Manta application flow enforce the following rules:

* Must be a valid 10-digit US format.
* An inline error is displayed immediately if the entered value is invalid.
* The family cannot advance to the next step while a format error is active.

This validation applies everywhere a phone number is captured: the Express Interest form, the Family Profile, and the phone-based account creation screen.

### Home Address & Geocoding

The home address field uses **Google Places Autocomplete**. As the family types, Google-sourced suggestions appear; the family selects a suggestion to confirm their address, and the full address is captured from that selection.

If autocomplete doesn't surface the correct result, a family can manually type a full address instead — it's accepted as long as it geocodes successfully.

Once confirmed, the address is geocoded to latitude/longitude and written to the family record. This replaces the zip-centroid approximation used during School Discovery with an accurate distance calculation, which is used to calculate the displayed **distance** from each school on the school list and map.

> [!WARNING]
>
> Full geocoding happens at this step, not during school discovery. Distance calculations on the school list are only available after a family has entered their home address.

***

## Student Information

After completing the Family Profile, the family enters information for each student applying. The number of students is determined by the **Number of Children Applying** field set in the previous step.

Currently, the multi-student flow is **sequential**: a family completes all steps for one student before beginning the next. The shared family record is not re-entered per child.

### Fields Collected Per Student

| Field | Type | Required |
| - | - | - |
| Student First Name | Text | Yes |
| Student Last Name | Text | Yes |
| Date of Birth | Date (Month / Day / Year — three separate inputs) | Yes |
| Grade Applying For | Single-Select | Yes |

DOB validation is enforced based on the **Kindergarten Cut-Off date** configured in the Enrollment Year \[TO CONFIRM: exact error messaging]. The grade selected here drives school filtering at the selection step — only schools serving the student's selected grade will appear.

***

## School Discovery

Families browse available schools before starting or continuing their application. School discovery does **not** require an account.

### School List

All schools configured by the district and published for the active Enrollment Year are displayed as cards. Each card shows school name, grades served (e.g. `PK–5`, `9–12`), distance from the family's home address (if entered), and full address. Families can toggle between **list view** and **map view**.

### Filtering

Families can filter the school list by **location**, **distance from location**, and **grade level**. Filter state persists as the family navigates between list view, map view, and individual school profiles — returning to the list preserves both the filter selection and scroll position.

### Saving Schools to a Shortlist

Families can **favorite** (heart icon) schools during discovery, from either the school card or the school profile page. Shortlist state is visual (filled heart icon) and persists only within the family's current browser session — it's stored client-side (localStorage), not synced to the family's account or visible to district staff until the family submits a Quick Apply or creates an account.

Shortlisted schools appear as a visual option on the School Selection & Ranking step, but are **not automatically added** to the family's selection — the family must explicitly add a shortlisted school to their ranked list.

### Quick Apply

A **Quick Apply** button is pinned at the top of the school list and remains visible as the family scrolls. Tapping it takes the family directly into the Family Profile step without requiring an account.

***

## School Selection & Ranking

At this step, the family selects which schools to apply to and ranks them in order of preference.

### Selection

* The school list is **automatically filtered to schools serving the student's selected grade**.
* A search field allows the family to find and add schools not shortlisted during discovery.
* A map toggle is available — selecting or deselecting schools from the map updates the same ranked list.
* Once a family reaches the **maximum school limit** (5 by default), all remaining school cards — including those in map popups — are disabled, and attempting to select another displays a warning that the limit has been reached. Making this limit a district-configurable backend setting is planned for a later release; for now it is fixed at 5.

### Ranking

* The family ranks selected schools using a **drag-to-reorder** interface.
* A family must rank **at least one school** before they can proceed.
* Rankings are saved to the application record associated with the active Enrollment Year.
* A family can remove a school from their ranked list at any time before submission.

### Multi-Student Flow

After completing school selection for one student, the family is taken to the next student's Student Information step (if applicable). If all students are complete, the family proceeds to Application Review.

***

## Incremental Saving

Manta saves application data **incrementally as the family advances from page to page**. Data is written to the Manta database at each step transition, not only at final submission, and field-level validation runs before saving. A family does not lose progress if they close their browser mid-application.

> [!NOTE]
>
> Incremental saving is active for all authenticated sessions. For unauthenticated (Quick Apply) sessions, saving behavior is \[TO CONFIRM].

***

## Application Review

Before submitting, the family sees a **read-only summary** of their full application grouped into three sections:

1. **Guardian / Family Details** — from the Family Profile step
2. **Student Details** — from the Student Information step
3. **School Selection & Rank Order** — from the School Selection step

Each section includes an **Edit** link that navigates the family back to that step to make changes. No fields are editable in-place on the review screen.

The Terms & Conditions configured by the district are displayed here. The family must check a checkbox to confirm acceptance before the **Submit Application** button is active.

***

## Submission

**Authenticated submission:** Application is submitted and a confirmation is shown \[TO CONFIRM: confirmation screen details].

**Unauthenticated (Quick Apply) submission:** The system prompts the family to **create an account** before their application can be recorded. Application data filled in during the session is preserved and associated with the new account once created.

***

## Data Storage

| Record | What's Stored |
| - | - |
| Family record | Guardian contact details, home address (with lat/lng), preferred contact method, household size |
| Student record | Name, DOB, grade applying for — scoped to the Enrollment Year |
| Application record | School selections, rankings, submission timestamp, T\&C acceptance |

Student records persist across Enrollment Years. If a student applies in multiple years, their name and DOB remain on the record while a new application record is created per year.
