Full legal name enforced

The form refuses a single-word name, because a bare first name is not a legal name and it flows straight into the contract and the accounting customer.

What it is

A validation that splits the entered legal name on whitespace and requires at least two tokens, paired with a pre-fill rule that leaves the field blank unless the known contact name already contains a space.

Also called: first and last name required · legal name on the contract

See it
Full legal name enforced
Prepared for
Marlin Hoover
1140 Ridge Line Rd · Fair Play
Shell package$26,040
Concrete & site$7,560
Doors & windows$5,040
Trim & finish$3,360
Total
$42,000
Signature
The inline error under the submit button reading 'Please enter your full legal name (first and last).' src/app/client/[id]/info/page.tsx. Sample data — no customer information appears here.
How it works
  1. 1Pre-fill only seeds the legal name when the known contact name has a space in it
  2. 2Submit counts whitespace-separated tokens and blocks below two
  3. 3The message asks for first and last name explicitly
Why we built it

A single word typed in the legal name box flows straight into the contract and the accounting record, and an agreement naming "Dave" is a problem discovered at the worst possible moment. The field requires a full name before the form will submit. The pre-fill guard covers the same failure from the other direction: a partial first name pulled from the CRM is left blank rather than sitting there ready to be submitted as a legal name.

The problem
  • Partial names propagating into contracts and accounting records
Sound familiar?
What you get
Contracts and invoices carry a real legal name

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →