Registration: replace the parent/guardian checkbox with a three-way "who are you registering?" choice #145

Closed
opened 2026-07-29 23:20:02 +00:00 by thatguygriff · 0 comments
Owner

Feedback

Change who are you registering block to three checkboxes, "myself", "On behalf of one or more students", and "both"

Current behaviour

templates/frontend/register-page.php line 74 has a "Who are you registering?" fieldset with a single checkbox: "I'm registering as a parent or guardian, for one or more children". The parsed value is read in src/Auth/RegistrationPage.php around line 470 (Whether the "I'm registering as a parent or guardian" box was ticked), and assets/js/register.js (~line 109) disables/enables fields based on it.

Wanted

Three mutually exclusive options:

  1. Myself
  2. On behalf of one or more students
  3. Both

Behaviour per option:

  • Myself — no student sub-forms; the account holder is the student.
  • On behalf of… — student sub-forms shown; the account holder is not booked for.
  • Both — student sub-forms shown and the account holder is registered as a student too.

Radio buttons are the right control for a mutually exclusive choice even though the feedback says "checkboxes" — confirm with the requester if "both" is meant to be selectable as two ticks instead.

Places to touch

  • templates/frontend/register-page.php
  • src/Auth/RegistrationPage.php — parse the three-way value instead of a boolean
  • assets/js/register.js — show/hide logic
  • src/BlockPreview.php — editor preview
  • docs/features/account-registration.md, docs/features/parent-guardian-accounts.md
  • tests/Unit/Auth/RegistrationPageTest.php

Related

Ties into the "capture registration questions when registering for yourself" issue and the copy change from "child" to "student".

## Feedback > Change who are you registering block to three checkboxes, "myself", "On behalf of one or more students", and "both" ## Current behaviour `templates/frontend/register-page.php` line 74 has a "Who are you registering?" fieldset with a single checkbox: "I'm registering as a parent or guardian, for one or more children". The parsed value is read in `src/Auth/RegistrationPage.php` around line 470 (`Whether the "I'm registering as a parent or guardian" box was ticked`), and `assets/js/register.js` (~line 109) disables/enables fields based on it. ## Wanted Three mutually exclusive options: 1. **Myself** 2. **On behalf of one or more students** 3. **Both** Behaviour per option: - *Myself* — no student sub-forms; the account holder is the student. - *On behalf of…* — student sub-forms shown; the account holder is not booked for. - *Both* — student sub-forms shown **and** the account holder is registered as a student too. Radio buttons are the right control for a mutually exclusive choice even though the feedback says "checkboxes" — confirm with the requester if "both" is meant to be selectable as two ticks instead. ## Places to touch - `templates/frontend/register-page.php` - `src/Auth/RegistrationPage.php` — parse the three-way value instead of a boolean - `assets/js/register.js` — show/hide logic - `src/BlockPreview.php` — editor preview - `docs/features/account-registration.md`, `docs/features/parent-guardian-accounts.md` - `tests/Unit/Auth/RegistrationPageTest.php` ## Related Ties into the "capture registration questions when registering for yourself" issue and the copy change from "child" to "student".
thatguygriff added the enhancement label 2026-07-29 23:20:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#145