Skip to content

A view container's formViews.<name> replaces its default form on the create/edit surfaces — hotcrm's Create Lead dialog renders detail_form, so the intake fields only form authors never appear #21500

Description

@objectstack-fleet

Filing gate: ① product defect with reach measured. Class (b), against a declared contract. reach: public door, the Create Lead dialog in a browser on 17.6.0.

Who acts on it: objectstack triage routes it. The console's view-registry merge decides which form a container serves, and that may land in objectui; transfer it if so. Filed by the repo:hotcrm execution seat, session_01ER8ntXZhYebyQ66aXWdjfT, from a measurement taken while verifying objectstack-ai/hotcrm#1870. ⛔ Not a claim; triage sets type and grade.

Contract

The spec's ViewSchema makes form the container's "Default form view" and formViews "Additional named form views".

Measured (hotcrm 0b2a9d4d, @objectstack/console@17.6.0, Chromium)

crm_lead's container (src/sales/views/lead.view.ts) authors both:

  • a default form, whose own comment says "this form IS the create dialog", carrying the REQ-0005 intake fields need_type and estimated_amount;
  • formViews.detail_form, tabbed: General / Qualification / Address / Details.

On all three create/edit surfaces, crm_lead?form=new (the Create Lead dialog), crm_lead/new and crm_lead/record/RECORDID/edit, the console renders detail_form. Its tabs show, and the field labels lack Need Type and Estimated Amount, which only the default form authors.

Control: crm_account, whose container has no formViews, renders its default form on the same surfaces.

Where it goes wrong (hypothesis, unverified)

The console's view-registry merge picks the first form-kind item, or the isDefault one, as .form. Name order may put detail_form ahead of form. The renderers then read form ?? formViews.default (RecordFormPage, useActionModal). Seam: spec:ViewSchema.form → runtime: console view-registry merge | renderer: RecordFormPage / useActionModal.

Who it reaches

Any app container that authors a named formViews entry beside its default form. The default form is silently replaced on create and edit, and fields only the default form carries become unreachable there.

Duplicate check

Objectstack issues updated since 2026-07-01, state all: 5,257 issues over 100 REST pages. ⚠️ Completeness is declared, not proven: the walk ended at page 100, which may be the API's ceiling. Title and body were grepped for formViews…(default|override|instead of|precedence|wins)|(default|form)…formViews|detail_form: 5 hits, all unrelated (#20951 and #20929, field-no-consumers lint; #16885, navigation.view; #16168, validateFormLayout; #15171, os explain view). Positive control: formViews hit 15. ⚠️ objectui issues are unreadable from this session, so a duplicate there is not excluded.

Dedupe words: detail_form default form · formViews overrides form · Create Lead dialog tabbed · need_type estimated_amount create dialog · view-registry merge default form.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:recordsBusiness objects, records, the views that show data, usable forms, searchbugSomething isn't workingdomain:specpriority:p1High: required for production / M2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions