Back to graph Logic concept
LogicModule 04

Validation

Contact form (simulated)

Nothing leaves your browser. Every step on the right is a simulation.

What one submit sets off

  1. Validation passed

    Name and email checked before anything else runs.

  2. Database row created

    insert into messages (name, email, body) — saved first, so nothing is lost.

  3. Emails sent

    Confirmation to the submitter, notification to the team inbox.

  4. Team channel pinged

    Webhook posted to #new-leads so a human sees it within seconds.

  5. Confirmation shown

    Success state rendered and the form cleared to prevent double submits.

Checking the input is usable before anything is saved or sent, on the server as well as the screen.

What makes this work

01

Required

The fields you cannot skip

02

Format

Does this look like an email

03

Server-side

The check a browser cannot bypass

Related concepts