Block 192 of 297
LOI Form
Letter of inquiry form with EIN, contact, program area, request amount, summary guidance and what happens next.
- Puck key
- LoiFormBlock
- Export
- loiFormBlock
- React component
- <LoiForm />
- Path
- components/puck/loi-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 letter of inquiry form split into Organization, Contact and Request fieldsets, with a sticky column beside it explaining what happens after someone submits. It suits foundations that want a short first step before inviting full proposals. On phones the next-steps column drops below the form, and if that column is empty the form centers on its own.
- An open grant cycle page collecting first-round inquiries
- A rolling application page for a single program area
- A capacity-building fund that screens applicants by budget size
Writing the content
- Set Form action URL before publishing. The block has no handler of its own; it posts fields named org_name, ein, contact_name, contact_title, email, phone, program_area, request_amount, summary and budget_size.
- Summary character limit accepts 200 to 5,000 and stops typing at that length. The field also requires at least 100 characters, so write Summary guidance that matches both ends.
- What happens next holds up to five steps. Deadline note and Questions contact hide when blank, and the contact email and phone only show when Questions contact has a name.
Accessibility
- Every input has a visible label tied to it, related fields are grouped in fieldsets with legends, and optional fields say "(optional)" in the label text rather than relying on color (WCAG 1.3.1).
- Hints for EIN, amount and summary are linked with aria-describedby, and inputs carry autocomplete values such as organization, name, email and tel so browsers can fill them.
Customizing the code
- To loosen or tighten validation, edit the pattern attributes on the EIN input (\d{2}-?\d{7}) and the amount input ([\d,]+), and the minLength of 100 on the summary.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Form action URLtext
- Program areasarray
- Budget size optionsarray
- Summary character limitnumber
- Summary guidancetextarea
- Submit button texttext
- Privacy notetextarea
- Next steps headingtext
- What happens nextarray
- Deadline notetextarea
- Questions contacttext
- Contact emailtext
- Contact phonetext