Common field options
Values, validation and calculation
Section titled “Values, validation and calculation”| Key | Default / meaning |
|---|---|
recipe (top level) | Calculated field value. Calculated fields are managed by the calculation engine. |
options.default | Initial value; type-dependent. Checkbox defaults to false. |
options.rules | Empty string in Bakery; pipe-separated Laravel validation rules. An explicit rules string replaces generated base validation. |
options.readonly | false; prevents ordinary field writes. |
options.ignore_when_empty | false; ignores empty input when configured. |
options.recipes | Map of option name to recipe; dynamically overrides that option when evaluated. |
String fields normally receive max:191 validation; links use max:2048. Email adds email and, unless required, nullable. Rule placeholders include ENTITY_ID and CLIENT_ID.
{"identifier":"name","type":"text","options":{"rules":"required|max:100","importable":true}}Use recipe for a persisted calculation. options.recipes changes options such as visibility, not the field value. Available functions depend on server/client evaluation: see recipe reference.
Relations and nested fields
Section titled “Relations and nested fields”options.references names the related module. options.fields contains child objects for list fields, but strings naming loaded fields for relations. options.with loads nested relations and takes precedence over depth. Without either, custom fields load no extra relations ([]); base relations use their own definition. referencedBy.module and referencedBy.field describe inverse relations.
pre_filters defaults to [] and is a server query DNF (outer OR groups, inner AND clauses):
{"identifier":"owner","type":"select","options":{"references":"users","pre_filters":[[{"column":"active","operator":"=","value":true}]]}}Import, export and access
Section titled “Import, export and access”| Option | Default / purpose |
|---|---|
importable | true; accept imports into the field. |
show_in_export | true generally; password defaults to false. |
public | false; exposes information without authentication only in supported contexts. |
registration | false; include in registration. |
history | Controls field history recording. |
typescript.type, typescript.import | Generated TypeScript type/import overrides. |
Use role field permissions for authorization. Hiding or disabling an input is presentation only.
SPA presentation and events
Section titled “SPA presentation and events”frontend_disabled disables editing in the SPA; hidden_from_frontend hides the input. custom_label, help, column_width, autofocus, show_in_resource_table, no_filter_in_entity_table, no_sorter_in_entity_table and no_title_in_entity_table control display. recipes can calculate option values.
{"identifier":"customer","type":"select","options":{"references":"customers","events":{"on_change":["customerChanged"]}}}options.events.on_change names registered workflow events. The workflow must register event/on_change, usually synchronous for immediate form responses. See actions for action/set selectors, list add and validation properties. A field group can set mark_required_fields and show_combined_fields_label; these are layout options, not field types.