Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/docs/ui/create-vs-edit-form.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: One flat, grouped field set gives both the create form and the edit

## Recommended solution

**Author one field set on the object. Group it with `fieldGroups`, and mark the fields a create should not ask for with `showOnCreate: false`.** The Console's create and edit forms both come from that one set. They do not load an internal form view (`form`, `formViews.default` or `formViews.create`); an app that still declares one installs and runs, the form changes nothing, and `os validate` reports it as `form-view-internal-not-loaded`.
**Author one field set on the object. Group it with `fieldGroups`, and mark the fields a create should not ask for with `showOnCreate: false`.** The Console's create and edit forms both come from that one set. They do not load an internal form view (`form`, `formViews.default` or `formViews.create`); an app that still declares one installs and runs, the form changes nothing on create or edit, and `os validate` reports it as `form-view-internal-not-loaded`. A default or create form that a form action opens by name (its `target` is the form's served name, written out) still loads where that action opens it, and is not reported.

### 1. Put the intent on the fields

Expand Down
2 changes: 1 addition & 1 deletion content/docs/ui/views.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ The split pane beside an open record keeps the same switcher.
A Form View is a hand-shaped form for a record. It lives in the same `defineView` container as the object's list views, and it is served only where it is asked for by name:

- `formViews` holds **named forms**. Each one loads where something names it: a form action's `target` (`<object>.<key>`) or a public form (`sharing.enabled: true`) at its own link.
- The Console's **create and edit forms load no form view**. They lay the record out by the object's `fieldGroups` and the field rules, and leave out of create every field marked `showOnCreate: false`; see [Create form vs edit form](/docs/ui/create-vs-edit-form). A non-public `form`, `formViews.default` or `formViews.create` still parses but changes nothing, and `os validate` reports it as `form-view-internal-not-loaded`.
- The Console's **create and edit forms load no form view**. They lay the record out by the object's `fieldGroups` and the field rules, and leave out of create every field marked `showOnCreate: false`; see [Create form vs edit form](/docs/ui/create-vs-edit-form). A non-public `form`, `formViews.default` or `formViews.create` still parses but changes nothing on those two forms, and `os validate` reports it as `form-view-internal-not-loaded`. The exception is one that a form action opens by name: it still loads where that action opens it, and is not reported. The action's `target` must be the form's served name written out, since an interpolated target names no form.

### Basic Structure

Expand Down
Loading
Loading