Production

Required fields should block save, not publish

Validation happens at two entirely different moments

Most CMS platforms let you save a draft with missing required fields. The validation only fires when you try to publish. This feels forgiving — you can sketch ideas, come back later, no harm done. But it creates a structural problem: you've decoupled data integrity from the editing workflow, and that gap becomes a trap the moment someone's under deadline pressure.

If a field is required for publication, it's required because the content model needs it. Either the page breaks without it, or downstream systems expect it, or SEO demands it. Making that field "required" but only enforcing it at publish teaches editors to treat requirements as negotiable. They learn the system will let them proceed — right up until it won't.

The save button should respect your content model

When you allow incomplete saves, you're implicitly saying "this draft is valid even though it violates the schema." That's fine for true scratch space — freeform notes, brainstorming — but terrible for structured content. If your post model requires a meta description, the draft with a missing meta description isn't a draft of that post type. It's a broken instance waiting to be fixed.

Enforce required fields at save time. If the editor hasn't filled them, don't accept the save. Throw a visible, specific error. This sounds harsh, but it's honest: the system is telling you what it needs before you've invested more work in a draft that can't ship.

You can still support incremental work. Offer a separate "Save incomplete" or "Save sketch" action that writes to a different status — one that's visibly, structurally distinct from "Draft." That way the editor knows they're in scaffolding mode, not review mode. When they promote the sketch to a real draft, then the required-field validation kicks in.

Publish-time validation creates false urgency

The worst case is predictable: someone writes 800 words, gets editor approval, clicks Publish, and only then discovers they never filled the image alt text field. Now they're scrambling. They paste something generic, or they leave it blank and override the validation if your CMS allows that, or they abandon the publish and come back later — which breaks the editorial calendar.

All of this stems from the system lying earlier. If the save button had blocked them the first time they tried to save without alt text, they'd have written it when the image was fresh in their mind, when they had time to think. Instead, the system waited until the moment of maximum pressure to surface the requirement.

How to implement save-blocking validation

Most CMS platforms let you hook into the save action. Write a validation function that checks required fields and returns errors before the save completes. The editor sees a message like "Cannot save: Meta description is required" and the draft doesn't write to the database.

This requires you to distinguish between required for the content model and required for publication workflow. Publish date? That's workflow. You can save a draft without it. Meta description? That's content model. You can't.

If your CMS makes this distinction difficult, your content model is probably conflating structure with process. Separate them. Required fields should be schema requirements. Workflow requirements — approvals, schedules, categories — belong in a different layer. Your CMS needs a content-ready checklist for that.

What this fixes

Save-blocking validation moves quality enforcement to the point of creation. Editors learn what the system needs while they're still in the context of making it. They don't defer required work, because the system doesn't let them. Drafts that exist in the CMS are structurally valid, even if they're not ready to publish.

Publish-time validation becomes a final check for workflow state — is this approved, is it scheduled, does it have a publish date — not a first-time discovery that the content is broken. The publish button does what it says: it publishes. It doesn't audit.

This isn't about being strict for its own sake. It's about making the system's requirements visible at the moment when the editor can act on them without pressure. If the content model says a field is required, enforce that when the editor saves. Don't wait until they're trying to ship.

← All posts