Skip to content

Block 63 of 297

Registration Form

Multi-section program sign-up with numbered participant, address, emergency contact and preference sections plus a waiver.

Puck key
RegistrationFormBlock
Export
registrationFormBlock
React component
<RegistrationForm />
Path
components/puck/registration-form-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

A long-form program sign-up split into numbered sections: participant, address, emergency contact and preferences, followed by an optional waiver checkbox. The heading column stays in view on desktop and adds a jump list to each section. On phones and tablets the jump list is hidden and the form follows the intro in a single column.

  • Adult or youth recreation classes run by a park district
  • Camps, clinics or leagues that need emergency contacts and a waiver
  • Community education courses with several session times
Writing the content
  • List offerings in Sessions (one to twelve). The Session name is the value sent, so keep names unique; Detail adds days and times.
  • Remove every How did you hear option to hide that question. Ask for T-shirt size adds a required adult size menu.
  • Write a plain-language Waiver statement and link the full document. A blank statement removes the required checkbox.
  • Use the Footnote for payment or refund notes.
Accessibility
  • Each section is a fieldset whose legend carries its title, so screen readers announce the group (WCAG 1.3.1).
  • Name, address, phone, email and birth-date fields use standard autocomplete tokens, and hints are linked with aria-describedby.
  • The section jump links are a labelled nav with 44px targets; legend numbers are hidden from assistive technology.
Customizing the code
  • Field names such as first_name, birth_date, address_line1 and emergency_phone are fixed in the markup; rename them to match your registration system.
  • Shirt sizes come from the SHIRT_SIZES array. Youth sizes can be added there.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Form action URLtext
  • Sessionsarray
  • Ask for T-shirt sizeradio
  • How did you heararray
  • Waiver statementtextarea
  • Full waiver linktext
  • Button texttext
  • Footnotetextarea