Table of Contents

Form Component

Need a small backend tweak — a computed/derived field, a read-only field, a save-time rule or side-effect (Kafka, sync), or a custom permission? Don't reimplement the component. Override one extension seam on FormComponent and keep the Core pipeline. See Extending Core Components · Seam Reference.

The default component for editing the main mediatype of a page. The React shell renders it as a two-column form with field-typed inputs (text, select, date, related-record pickers, toggles, …) grouped into optional sections, with a top-right Save button and a sticky left-side tab navigator.

Movies edit page rendered through the React shell

A second example — a Users admin edit page with multiple sections ("User information", "Change password", "Groups"):

Users edit page with multiple form sections

Related docs.
System Overview — RenderV2 — the request that returns {schema, data} to this widget.
6.0/React Components — Default Form Schema/Data — exact JSON shape the BFF emits.
Page Configuration — page-level flags (RETURN_URL, RETURN_AT_SAVE, SORTER, …) that affect the form wrapper.

What the React renderer gives you

  • Field-typed inputs auto-derived from the admField type via the variant mapping (Boolean → switch, Date → date, Enum → select, Related → tree-select, …).
  • A sticky left-side tab navigator that lists all the form's sections plus all sibling components (RelatedList, RelatedForm, AutoComplete, etc.). Click a tab to scroll to that section.
  • Top-right toolbar: Save (highlighted), audit/history button (when ALLOW_AUDIT_VIEW is on), tab-sorter (when SORTER is on), Delete (when permitted).
  • Per-field validation with required-asterisks, inline error markers, and the standard message vocabulary translated via {DICT:...}. Which fields are required, and what a new record starts with, comes from the data model: Required fields and default values.
  • "Unsaved changes" guard — set by setDirty, triggers a confirm-prompt on navigation.
  • Bulk-edit mode when the user arrives via the list with multiple selected ids (/app/<pageKey>/<id1>,<id2>,...).

For a custom form-shaped widget, emit the Form Schema/Data shape and the React shell renders it with this same widget.

Configuration Keys

These are all available Configuration Keys for the Form Component.

The configuration must be inserted into the database table:

MIB3UX_PAGE_COMPONENT_CONFIGURATIONS

ALLOW_BULK_EDIT

Boolean. True (default): the page can be bulk-edited (when arrived at with multiple ids). False: bulk-edit is disabled for this component.

ASIDE_FIELDS

Specifies which columns are shown in a related aside for a specified column.

CONFIGURATION_KEY:   ASIDE_FIELDS[<RELATED_FIELD>]
CONFIGURATION_VALUE: ID,NAME,SOURCE,DATEINS,INSTANCE_ID,OWNER

ASIDE_FILTERS

Add custom filter to items shown in related aside.

CONFIGURATION_KEY:   ASIDE_FILTERS
CONFIGURATION_VALUE: { Field: 'GVP_GENRES[NAME]', Operator: 'EQUAL', Value: 'action' }

Per-field form:

CONFIGURATION_KEY:   ASIDE_FILTERS[<RELATED_FIELD>]
CONFIGURATION_VALUE: <FILTER1>,<FILTER2>

Example:

CONFIGURATION_KEY:   ASIDE_FILTERS[INSTANCE_ID]
CONFIGURATION_VALUE: { Field: 'NAME', Operator: 'STARTSWITH', Value: 'MIB' }

Dynamic value referencing a form field via [templateComponentKey.columnName]:

{Field: 'SOURCE[ID]', Operator: 'EQUAL', Value: '[mib_default_edit_template_main.SOURCE]'}

It is important to pass [ID] (or whatever field the related uses as its value), because by default MIB3 adds [NAME] as a filter of a related field.

BATCH_REFERENCE_IDENTIFIER

Sets the batch reference to something other than the component's default TemplateComponentKey. Used when multiple components share a save batch.

DENY_ON_READONLY

Boolean. True: deny save on items where the user lacks permission on any related component or field on the page. False: allow save even if the user lacks permission on some related mediatypes.

EDIT_URL — not a Form knob

Warning

EDIT_URL does nothing on a Form component. Earlier revisions of this page documented it here; that was wrong, and it is the reason the key shows up configured on real installs.

FormComponentConfiguration declares no EditUrl property, and neither does the page-level DisplayConfiguration. In MibServer3 releases/7.0 the property exists on exactly two configuration classes:

configuration class components
ListComponentConfiguration.EditUrl List, EditableList
RelatedListComponentConfiguration.EditUrl SimpleRelatedList, AsyncRelatedList — read only from MIB 7.0.0 (MEDIAIBOX-12228)

OrderedRelatedListComponentConfiguration, FormComponentConfiguration and RelatedFormComponentConfiguration have none. On those, the value is accepted by the migration, stored in MIB3UX_PAGE_COMPONENT_CONFIGURATIONS and never read — whatever its shape, so "add the /{id} tail" is not a fix.

To open another record from a field of this form, use REDIRECT_TO_EDIT_PAGE_BY_FIELD below, which this component does read. mib inventory --warnings reports the dead case as editurl-unsupported-archetype.

EXCLUDE_FIELDS

A comma-separated list of admField column names that should not be displayed to the user.

CONFIGURATION_KEY:   EXCLUDEFIELDS
CONFIGURATION_VALUE: name,timezone,genres

EXCLUDE_BULK_EDIT_FIELDS

A comma-separated list of admField column names that should not be displayed in the bulk-edit flow.

CONFIGURATION_KEY:   EXCLUDEBULKEDITFIELDS
CONFIGURATION_VALUE: name,timezone,genres

HIDE_BULK_EDIT

Boolean. True: the bulk-edit affordance is disabled. False (default): bulk-edit is enabled. Used when the page mediatype can be edited but some related component cannot.

INCLUDE_FIELDS

A comma-separated list of admField column names. Forces the component to display only these fields.

CONFIGURATION_KEY:   INCLUDE_FIELDS
CONFIGURATION_VALUE: name,timezone,genres

MEDIATYPE (or MEDIA_TYPE)

The name of the mediatype loaded in the component. Both spellings are accepted by the BFF for the Form Component — the hands-on tutorial and most live customer migrations use MEDIA_TYPE (with underscore). Use one consistently across a page.

READONLY

Boolean. True: forces the component to be read-only regardless of user permissions. False (default): honour user permissions.

READONLY_FIELDS

A list of fields to be made read-only regardless of user permissions.

TITLE

The title rendered in the component header.

CREATE_ONLY_FIELDS

A list of column names that are writable only during creation. After creation, the fields become read-only and show a tooltip when the cursor hovers over the title.

CONFIGURATION_KEY:   CREATE_ONLY_FIELDS
CONFIGURATION_VALUE: name,timezone,genres

The default tooltip can be customised via a dictionary entry:

<form>
    <fieldCreationOnly>Default message</fieldCreationOnly>
</form>

FORMGROUPING

Splits the form into titled blocks. Each block lists the fields it contains, in display order. Fields not in any block fall into a default block.

[{
    "order": 1,
    "title": "Movie: Date & Location",
    "fields": ["RELEASE_DATE", "COUNTRY"]
}, {
    "order": 2,
    "title": "Movie: Licensing",
    "fields": ["LICENSE_START", "LICENSE_END"]
}, {
    "order": 3,
    "title": "Movie: Others",
    "fields": ["DISTRIBUTOR_ID", "PRODUCER_ID"]
}]
Note

In React, ordering applies globally to the components on the page, so blocks may compete with the page's component structure when rendering. Parts of a component may end up at different positions on the page if grouping order conflicts with the page-level order.

To show or hide one of these blocks from a field value, use SECTION_BEHAVIORS[<order>] (see Per-group rules). The rule follows the block's order: when you renumber a block, move its SECTION_BEHAVIORS[<order>] rows too — the server logs a keyed rule that matches no block.

REDIRECT_TO_EDIT_PAGE_BY_FIELD

Dictionary<string, string>. Makes one FIELD of this form a link to another edit page, so the user can open the record that field points at. The bracket suffix is the field the link hangs on, and the value is a bare page key — not a ~/app/... route. The bracket key must match the field COLUMNNAME exactly (matched case-insensitively).

React (MibReact). The value is the bare page key — no ~, no app/ prefix, no {ID} placeholder.

CONFIGURATION_KEY:   REDIRECT_TO_EDIT_PAGE_BY_FIELD[TOURNAMENT_ID]
CONFIGURATION_VALUE: top_sports_md_tournament_edit
Important

The same key takes a different suffix on a related list. There the suffix is a column of a listed row (REDIRECT_TO_EDIT_PAGE_BY_FIELD[ID] = <form page key>); on a form it is a field of the record being edited. Copying the [ID] shape onto a form configures a link on the form's own id field, which is almost never what was wanted.

The two no longer disagree about which record a foreign key opens. From MIB 7.0.3 (MEDIAIBOX-12263) a panel's Integer/Long/Related column also opens the record it references — only its other column types (a descriptive NAME) still open the row's own record, and before 7.0.3 every panel column did. See SimpleRelatedListComponent.

Applicable only to Integer and Related admField types (the discriminator is the admField type, not the resulting React variant). Integer is a raw FK column; a DropRelated or NullableDropRelated field gets no link even though it references another media type (MibServer3 7.0 FormFieldSchemaFactory.ApplyEditPageLink).

Note

Legacy MIB (.cshtml). The value is a URL template: a leading ~// is trimmed and the id placeholder {ID} (uppercase, case-sensitive) is replaced with the field value, e.g. ~app/mvp_movies_form/{ID}. Both a relative path and an absolute URL are accepted. The React and legacy render paths are independent; a page rendered through the React shell uses the bare-page-key form above.

What the BFF emits

The knob is applied at schema time: it becomes props.link on that field in the /api/v2/display payload. A field with no redirect configured simply has no link key, which is the difference you can observe:

// REDIRECT_TO_EDIT_PAGE_BY_FIELD[PARENT] = top_channels_edit
{
  "variant": "related",
  "config": { "name": "PARENT", "label": "Parent Channel" },
  "props": {
    "mediaType": "CHANNELS",
    "link": { "pageKey": "top_channels_edit" }     // ← the redirect
  }
}

// SHOW_ALL_ID — also Related → CHANNELS, but NOT configured
{
  "variant": "related",
  "config": { "name": "SHOW_ALL_ID", "label": "Show All" },
  "props": {
    "mediaType": "CHANNELS"                        // ← no `link` at all
  }
}

On an Integer field the link also carries the resolved row id, so it targets the record rather than the page:

// top_users_devices_edit — REDIRECT_TO_EDIT_PAGE_BY_FIELD[USER_ID] = top_users_edit
{
  "variant": "number",
  "config": { "name": "USER_ID" },
  "props": { "link": { "pageKey": "top_users_edit", "id": 9994 } }
}

The BFF emits a link descriptor on the field props and the React Form builds the route /${pageKey}/${id}:

  • Integer field → props.link = { pageKey, id }, where id is the field's own value. If the field value is empty, id is omitted and no link is rendered.
  • Related field → props.link = { pageKey } (no id; the id comes from the selected related item on the client).

Any other admField type (including Image, which shares the React related variant) does not render a link.

Note

Verified live on MIB 7.0.3 (tvopenplatform-mib3) via mib client get top_channels_edit 2 and mib client get top_users_devices_edit 148694. The top_channels_edit case is a controlled comparison: one page, one form component, one record, two Related → CHANNELS fields, and only the configured one carries props.link. Earlier documentation marked this behavior unverified on the React shell; it is not.

Finding the forms that are missing it

mib inventory --warnings reports a field whose (field → target media type) pair is wired on one page and not another (related-field-redirect-inconsistent). The full inventory of every unlinked field is opt-in, because most of them are deliberate:

mib inventory --warnings --rule related-field-no-redirect

Both rules judge only forms the stock form workflow builds, because that workflow is what turns the key into props.link. A custom class that builds its own schema, such as a MibComponentWrapper<T> overriding MapSchema, never reads the key, even when its viewType is form. So the rules skip it rather than recommend dead configuration. A class that overrides a cataloged seam is a real FormComponent subclass and stays in scope.

FIELD_PERSIST_FORMAT

Defines the persistence format of a Cron-expression field. Default is Unix format.

  • CONFIGURATION_KEY: FIELD_PERSIST_FORMAT[<FIELD_NAME>]
  • CONFIGURATION_VALUE: Unix (default) or Aws

Configurations Exclusive to React (MibReact)

The settings below apply only when the page is rendered through the React shell (~/app/...).

MAX_FILE_SIZE

Limits upload sizes when the form has a file mediatype (e.g. Images). May also be set application-wide via MaxFileSizeDefaultValue.

MAX_FILE_SIZE[FieldName]

Limits upload sizes for related fields that point to file mediatypes.

CUSTOM_FIELD_SCHEMA[FieldName]

Used to override default field schema properties such as layout and field-specific options. Set the configuration value according to the AdmFieldType of the target field.

Every field type accepts the layout keys colFlex and colSpan (from MIB 6.0.43). The other keys depend on the AdmFieldType of the field, and a key that the type does not accept is ignored:

AdmFieldType React variant Keys besides colFlex and colSpan From MIB
Json, Html json, editor-field height 6.0.57, 7.0.0
ColorPicker color-picker disabled, disabledAlpha, allowClear, disabledFormat 6.0.98, 7.0.0
Progress slider min, max, step 6.0.105, 7.0.0
Money money currency, precision, maxDigits, stringMode 6.0.108, 7.0.0
AutoComplete auto-complete options the next 6.0 release; not in 7.0 or 7.1 yet
{
    "colFlex": 1,
    "colSpan": 12,
    "height": 300
}

ColorPicker Field

{
    "colFlex": 1,
    "colSpan": 12,
    "disabled": true,
    "disabledAlpha": true,
    "allowClear": true,
    "disabledFormat": true
}

Supported properties for ColorPicker fields:

  • colFlex: Controls the responsive width behavior of the field.
  • colSpan: Controls how many columns the field spans in the form grid.
  • disabled: Disables the field when the field is not already read-only by metadata.
  • disabledAlpha: Hides the alpha channel control when set to true.
  • allowClear: Shows a clear action when set to true.
  • disabledFormat: Disables color format switching when set to true.

Slider Field

{
  "min": 0,
  "max":100,
  "step":0.5
}

Supported properties for Slider fields:

  • min: double, minimum value for the slider.
  • max: double, maximum value for the slider.
  • step: double, value step. Must be divisible by max-min.

Money Field

{
    "colFlex": 1,
    "colSpan": 12,
    "currency": "USD",
    "precision": 2,
    "maxDigits": 17,
    "stringMode": true
}

Supported properties for Money fields:

  • colFlex: Controls the responsive width behavior of the field.
  • colSpan: Controls how many columns the field spans in the form grid.
  • currency: string, currency code used to render the currency symbol. Optional; the backend passes it through without ISO validation. Defaults to null (no symbol).
  • precision: int, number of decimal places. Defaults to 2.
  • maxDigits: int, maximum number of digits accepted. Defaults to 17.
  • stringMode: bool, keeps the value as a string in the input to preserve high-precision decimals without floating-point rounding. Defaults to true.

The stored value is a numeric decimal (AdmFieldType.Money), not a string.

AutoComplete Field

Only on the 6.0 line, from the next 6.0 release (MEDIAIBOX-12060). MIB 7.0 and 7.1 do not support this field type yet.

The suggestions of an AutoComplete field are configured in the options property, where each entry is either a plain string or an object with value and label:

{
    "colFlex": 1,
    "colSpan": 6,
    "options": [
        "Drama",
        "Comedy",
        { "value": "doc", "label": "Documentary" }
    ]
}

Supported properties for AutoComplete fields:

  • colFlex: Controls the responsive width behavior of the field.
  • colSpan: Controls how many columns the field spans in the form grid.
  • options: list of suggestions offered while the user types. A string entry is used as both value and label. In an object entry, value is what is stored and label is what is shown, and a missing or blank label falls back to value. Entries with an empty value are dropped and repeated values are kept only once, in the configured order. Defaults to an empty list.

The suggestions are only a help to the user, which means free text is always accepted and a value that is not in options is persisted as typed. The stored value is a string (AdmFieldType.AutoComplete). Ex: with the configuration above, typing Thriller saves Thriller, and selecting Documentary saves doc.

DISABLE_IF_FILLED[FieldName]

Disables a field when another field or sibling component has a value.

Disable based on another field in the same form:

[
    ["{templateComponentKey}", "{otherFieldName}"]
]

Disable when a related list has items:

[
    ["{templateComponentKey}", "items"]
]

For a field of a form with FORMGROUPING, use the form's bare key — see Fields of a grouped form.

You can combine conditions — disable if any matches:

[
    ["movies-form", "Year"],
    ["genres-related-list", "items"]
]

CUSTOM_BEHAVIORS[FieldName]

Defines dynamic behaviour rules — when a criterion is met, apply an update to the field's schema and/or data.

Disable a field when another field is empty:

[
  {
    "criteria": {
      "field": { "name": "password", "variant": "input" },
      "operator": "isEmpty",
      "value": true
    },
    "update": {
      "schema": { "props": { "disabled": true } },
      "data":   { "force": true }
    }
  }
]

Clear and disable a field when another field has a specific value:

[
  {
    "criteria": {
      "field": { "name": "provider", "variant": "select" },
      "operator": "equal",
      "value": { "label": "AgileTV", "value": 90 }
    },
    "update": {
      "schema": { "props": { "options": [] } },
      "data":   { "value": [], "force": true }
    }
  }
]

A name given as an absolute path ["<componentKey>", "<FIELD>"] to a field of a form with FORMGROUPING uses the form's bare key — see Fields of a grouped form.

For more information, click here.

RANGE_FIELDS[FieldName]

From MIB 6.0.108 and 7.0.0 (MEDIAIBOX-12059).

Supports a UI "range" field that maps two backend date fields to a single frontend RangePicker. The mapping is configured at the component level through the RangeFields dictionary in the form component configuration. Only a Date, DateTime or UtcDateTime start field is paired; on any other type, or when the JSON is malformed, the configuration is ignored.

Configuration key: RangeFields

  • Key: column name of the start field (for example, DATE_FROM).
  • Value: a JSON string with the following properties:
    • end (required): column name of the end field (for example, DATE_TO).
    • format (optional): frontend display format for the range (default: "DD/MM/YYYY").
    • group (optional): logical group name used to identify the range if needed.

Example configuration:

{ "end": "DATE_TO", "format": "DD/MM/YYYY", "group": "broadcastPeriod" }

SECTION_BEHAVIORS

Shows or hides a whole block of the content-edition page from the value of a field. The value is a JSON array of rules. Set it on the block that should appear or disappear (the target) and point each rule at the field it watches, wherever that field lives.

[
  {
    "criteria": {
      "field": { "name": ["movie_form", "IS_ADULT"], "variant": "switch" },
      "operator": "equal",
      "value": true
    },
    "update": { "visible": false }
  },
  {
    "criteria": {
      "field": { "name": ["movie_form", "IS_ADULT"], "variant": "switch" },
      "operator": "equal",
      "value": false
    },
    "update": { "visible": true }
  }
]

Store the value minified (one line) in the database.

Key On Hides
SECTION_BEHAVIORS form the form — on a form with FORMGROUPING, every group
SECTION_BEHAVIORS[<order>] form with FORMGROUPING the group whose order is <order>; 0 is the section holding the fields listed in no group — and also any group declared with order 0 or with no order
SECTION_BEHAVIORS simple related list, ordered related list, list, editable list, content criteria that block — see SimpleRelatedListComponent, OrderedRelatedListComponent, ListComponent, ContentCriteriaComponent

The EPG block and the related-form block do not support it, and a keyed SECTION_BEHAVIORS[<order>] on any block that is not a form is ignored. Rules act only on content-edition pages: the list page has no page form, so a rule on a list shown there does nothing.

Rules

criteria.field.name — the watched field, as an absolute path ["<componentKey>", "<FIELD>"]: the template component key of the block holding the field and the field's column name. The field may be in any block of the page. For a field of a form with FORMGROUPING, see Fields of a grouped form.

criteria.field.variant — the watched field's variant. It decides which operators exist:

Variant Operators
input, textarea regularExpression, isEmpty, equal, like, notEqual, notEmpty
number, slider regularExpression, isEmpty, equal, notEqual, notEmpty, greaterThan, lowerThan, greaterOrEqualThan, lowerOrEqualThan
date isEmpty, equal, notEqual, notEmpty, greaterThan, lowerThan, greaterOrEqualThan, lowerOrEqualThan
select, async-select, related, relatedList isEmpty, equal, contains, notContains, notEqual, notEmpty
switch, range, tree-select, async-tree-select isEmpty, equal, notEqual, notEmpty
json regularExpression, isEmpty, equal, notEqual, notEmpty
upload isEmpty, notEmpty
other isEmpty

The front silently ignores a variant or an operator it does not know: the rule never fires.

criteria.value — the value to compare with: string, number, boolean, object, array or null.

update.visible — false hides the target, true shows it. A hidden block stays mounted: its data is still submitted and validated.

Write rules in pairs

A hidden block does not come back by itself — add the rule that shows it again, as in the example above. Never give two rules of the same block the same criteria: the front keys rules by their criteria and keeps only one of them.

Fields of a grouped form

A form with FORMGROUPING reaches the browser as one block per group, renamed <formKey>_0, <formKey>_1, … in page order. To watch a field of such a form, use the form's bare key — ["movie_form", "IS_ADULT"] — and the server points the path at the group that holds the field, so the rule keeps working when groups are added, removed or reordered. This applies to every path of the page: SECTION_BEHAVIORS on any block, CUSTOM_BEHAVIORS[FieldName] and DISABLE_IF_FILLED[FieldName]. An explicit <formKey>_<N> is still accepted and left as written, but it points at another group as soon as the grouping changes.

Per-group rules

On a form with FORMGROUPING, each group receives the unkeyed SECTION_BEHAVIORS rules followed by its own SECTION_BEHAVIORS[<order>] rules. Example — hide only the "Movie: Licensing" group (order 2) of movie_form while IS_TRAILER is on:

Key Value
FORMGROUPING [{"order":2,"title":"Movie: Licensing","fields":["LICENSE_START","LICENSE_END"]}]
SECTION_BEHAVIORS[2] [{"criteria":{"field":{"name":["movie_form","IS_TRAILER"],"variant":"switch"},"operator":"equal","value":true},"update":{"visible":false}},{"criteria":{"field":{"name":["movie_form","IS_TRAILER"],"variant":"switch"},"operator":"equal","value":false},"update":{"visible":true}}]

Do not let a group watch a field of its own group: when the group hides, its trigger hides with it and the user cannot bring it back. An unkeyed SECTION_BEHAVIORS on a grouped form reaches every group, the one holding the watched field included — when the trigger is a field of the same form, key the rule to the groups it should hide.

What the server logs

A problem is logged and skipped; the page always renders.

Situation Log
The value is not valid JSON, or a rule misses criteria or update Error deserializing SectionBehaviors: … - <raw value> (Error and Exception); that key contributes no rule
SECTION_BEHAVIORS[<order>] matches no group — including any keyed entry on a form without FORMGROUPING [Page:<pageKey>] [SectionBehaviors] Block '<formKey>': SECTION_BEHAVIORS[<order>] matches no FORMGROUPING group and is ignored
A bare-key path to a field that is in no group of the form [Page:<pageKey>] [SectionBehaviors] Block '<componentKey>': no group of '<formKey>' has the field '<FIELD>'; the path is left as written
A group rule watching a field of the same group [Page:<pageKey>] [SectionBehaviors] Block '<formKey>' group <order>: a section rule watches '<FIELD>', a field of the same group, so the group can hide its own trigger

Page configuration is loaded once at startup on MIB 7.x: restart the front-end server after adding or changing a row.

Custom fields validation

Starting with Mib 6.0, custom validation criteria can be implemented for field persistence. For more information, click here

======= For more information, see the Dynamic Form Documentation.

CARD_FIELD[FieldName]

Note

This configuration is mostly used for the event edition form of the epg component, but it can be used for any form.

Used to enrich a related field into a card field. It is configured through the following json:

{
          "ImageDefinition": {
            "Type": "Url",
            "ColumnName": "NAME"
          },
          "MetadataColumns": {
              "Genre": "NAME"            
          },
          "LinkFormPageKey": "epg_content_edit",          
          "DescriptionColumn": "NAME",
          "TypeColumn": "EPG_PROGRAM_TYPE_ID"
        }

Nowadays, the ImageDefinition only supports images stored in the database as a url.
The ColumnName property on ImageDefinition, as well as the DescriptionColumn and TypeColumn properties expect the column name of the related media type. Conversely, the (key, value) pairs on MetadataColumns obey the relation ([Frontent property]: [Column Name]).
List of available metadata properties:

  • "genre"
  • "year"
  • "age"
  • "rating"

Required fields and default values

The form decides required and a new record's starting values from the data model, not from a configuration key:

  • Required. On this form (a related list's Add-New drawer differs: mib get recipe.required-boolean-in-related-child), FieldViewData.IsFieldRequired (MibServer3 releases/7.0 and main) is !IsNullable && !IsReadOnly, where IsNullable is the column's nullability (mib.api _nullable). A Boolean that already has a value is never required: on an existing record a NOT NULL Boolean always has one, so a NOT NULL Boolean is required only on a new record without an ADM DEFAULT_VALUE. READONLY_FIELDS, and CREATE_ONLY_FIELDS on an existing record, make a field read-only and so not required.
  • Starting values. A new record (id 0, not a bulk edit) starts each field with its ADM_FIELDS.DEFAULT_VALUE (FieldFormatterTemplate); mib.api stores the same default for a field the insert does not send. Nothing else is prefilled: the column's SQL DEFAULT never reaches the form, and an existing record shows what is stored, NULL included.

mib datamodel <TYPE> marks each field req / req:new and lists what a new record gets; the full rules — where each default applies, the text an Enum or a Boolean default must hold, how to seed one — are in What fills an empty field (mib get building-block.field-defaults).

Porting a custom form? A typed model in a wrapper component (an int or bool property) turns NULL into 0/false on every save. FormComponent keeps NULL. Decide per field — ADM default, backfill, or keep NULL — before writing code that imitates the wrapper: mib get playbook.port-wrapper-to-core.

A form that only shows data still saves and deletes

READONLY, and a self-fetch subclass (ProvidesExternalData), change what the form shows, not what the page writes. On every page save and delete the form still answers for its MEDIATYPE and the page's ids (MibServer3 releases/7.0 and main, FormComponent.Save / Delete):

  • Save returns a save model for MEDIATYPE with the page ids. Under READONLY its fields are empty, and an empty model still emits one update per id (the Core's own comment on ProvidesExternalPersistence says so).
  • Delete never looks at READONLY: it emits a delete of MEDIATYPE with the page ids, and runs the configured business rule and validator.

So a display panel bound to another media type — the main image of a series, the purchase's user — updates or deletes that media type's row with the page's id. Three more cases, proven on 7.1.0-alpha.2 with the cms-2.53 shell:

  • A new record (id 0). Save emits a CREATE of MEDIATYPE with no fields (PersistenceComponentSaveSingleEntityData.GetContentRequests: one id, and it is 0 → CreateNewContentRequest). Nothing merges it with the main form's create: an extra empty row, or a failed save when a NOT NULL column of that type has no default.
  • A bulk edit (several ids) with a second form on the page's own type: that form sends its own multi-id PUT with the etags it rendered. 7.1 merges the updates of one record from several components (MEDIAIBOX-12347, ItemRepository.CoalesceEntityUpdates), but never an update of several records, so mib.api refuses the second PUT (409 InvalidEtag, MibObjectWorkflow.Update), the BFF answers 412, the whole batch rolls back and the shell opens the concurrency dialog. HIDEBULKEDIT on the display form avoids this one: with several ids its Save writes nothing. 7.0 merges no update at all — every component's is its own PUT.
  • Deletes are never merged (ItemRepository.Delete): a form on the page's own type adds a second DELETE of the same id to the batch.

The opt-out is the subclass's:

A form panel that only displays data must not update or delete anything when the page saves or deletes.

Custom field validation

Starting with MIB 6.0, custom validation criteria can be implemented for field persistence. See Custom Validation plugin.

Schema and Data shape

The Form Component speaks the Default Form Schema

  • Schema carries mediaType, fields[] with per-field {variant, config, props}, title, and page-level configuration (download, preview, createdAtAsUtc, addNew).
    • addNew (bool) drives the edit header's New button. The BFF mirrors it from the page's create permission (buttons.Create = a component allows create, none denies it, edit mode, and the page's ALLOW_CREATE), so it matches the toolbar configuration.create. It is set uniformly on every form schema of the payload — media-type edit pages and the Authorization edit pages (Users/Groups/Instances/Account) alike — by DisplaySchema.SetFormsCreateVisibility, which runs in the DisplayViewDataV2 constructor, after every component's MapSchema and seams. A ContributeSchema or MapSchema that sets schema.Configuration.AddNew = false is overwritten.
    • The shell's header reads addNew, download, preview and createdAtAsUtc from the first form component's schema.configuration, spread over the page configuration (mergeConfigs, MibFrontEnd modules/content-edition/utils): the form wins. A custom form whose schema carried no such configuration sent no addNew, so porting it to FormComponent adds a New button to its header. On 7.0 and 7.1 no seam removes it, and ALLOW_CREATE false hides it but also refuses the page's create route (/0 → CannotCreateException). Keeping the old header is a Core change.
    • createdAtAsUtc (bool) says how the header prints the created date. The BFF sets it when DATEINS arrives as Unix seconds — createdAt is then already in the user's time zone (FormViewData.GetDateIns) — and the shell prints the text as it is (dayjs.utc(createdAt)). When false the shell converts createdAt to the user's time zone itself (dayjs(createdAt).tz()).
  • Data carries id, fields (per-field values, with {id, title, value} triples for related-typed fields), permissions, checksum.

Custom form-shaped widgets that emit this shape get rendered by the same React form widget.

Source reference

React type-key form
BFF assembly MediaiBox.Cms.FrontEnd.Server (before 2021: MibServer3.Web)
BFF class MediaiBox.Cms.FrontEnd.Server.Component.FormComponent
MIB3UX_COMPONENTS.COMPONENT_KEY mib_default_formcomponent
React widget source packages/core-components/src/components/form/Form.tsx
Schema / data contract Default Form Schema

Custom backend, core React. Emit the Default Form Schema + Data shape from your MapSchema / MapData and set MIB3UX_TEMPLATE_COMPONENTS.COMPONENT_VIEW_TYPE = 'form'. The widget maps each AdmField variant to a control from @agilecontent/ui (Input, Select, AsyncSelect, TreeSelect, DatePicker, RangePicker, Switch, TextArea, JsonEditor, Upload, etc.); your schema's fields[].variant is what picks the control.

See also

Recipe — split a long form into titled sections

Make a form with dozens of fields navigable.

Recipe — reading/writing a form-grouped page headlessly

Not misread a grouped form when driving it from an API/agent.