RecType key reference
Every key a RecType YAML file and its fields accept.
The compiler refuses any key not in these tables. RecType YAML walks through a full example.
RecType keys
| Key | Default | Meaning |
|---|---|---|
schema | Always 1 | |
name | Title Case with spaces, such as Sales Order | |
module | One of the manifest's modules | |
label | A display name other than name | |
description | What the records are. Eden's catalog reads it | |
ai | true | false keeps the RecType out of the AI catalog |
autoname | hash, field:<f>, prompt, UUID, autoincrement, naming_series:, a series or format: | |
istable | false | A child RecType |
issingle | false | One record, such as a settings page |
is_submittable | false | Draft, Submitted, Cancelled |
is_tree | false | A parent Link and is_group |
track_changes | false | A Version row per save |
allow_rename | false | Writers may rename or merge records |
allow_auto_repeat | false | An Auto Repeat may copy records on a schedule |
show_name_in_global_search | false | Global search indexes the record's name |
title_field, search_fields, image_field | What Link search and cards show | |
sort_field, sort_order | The list's order. sort_order is ASC or DESC | |
quick_entry | false | New records open in a dialog |
editable_grid | true | Child rows edit in the grid |
fields | [] | The field list, in form order |
permissions | [] | Role rules: role, rights, permlevel, if_owner |
permission_types | [] | Extra rights, such as approve |
row_rules, role_rules | [] | Per-record access. See Role rules and sets |
inherit_permission | {rectype_field, name_field}, access follows another record | |
self_access | {fields, read_only} a user may touch on their own row | |
system_manager_only | false | Only a System Manager writes these records |
links, actions, states | [] | Connections, form buttons and list colours. See Form and list options |
indexes | [] | {fields, unique} database indexes |
calendar, gantt | Field maps for the Calendar and Gantt views | |
max_attachments | 0 | A cap on attached files |
has_web_view, route, is_published_field, allow_guest_to_view | Records with a public page. See Web pages | |
allow_web_form | false | Web Forms may target the RecType |
default_print_format | The Print Format the print view opens with | |
index | false | Derived rows only the app writes. See Index RecTypes |
virtual | false | Core only. An app's YAML that sets it fails the build |
Field keys
| Key | Meaning |
|---|---|
fieldname, fieldtype | Required. The column name and one of the field types |
label, description | What the form shows above and below the control |
options | Depends on the type. See below |
reqd, unique, default | default takes a YAML scalar, Today, Now or __user |
depends_on | An expression over doc that shows the field |
mandatory_depends_on, read_only_depends_on, collapsible_depends_on | Expressions that make it required, read-only, or a section collapsible |
fetch_from, fetch_if_empty | <link field>.<field>. With fetch_if_empty, only fills an empty value |
link_filters | [field, operator, value] rows on a Link's target |
ignore_user_permissions | User Permissions on the target do not restrict this Link |
allow_in_quick_entry | Shows in the quick entry dialog |
in_list_view, in_standard_filter, in_global_search | Where the field shows up |
hidden, read_only, allow_on_submit, no_copy, set_only_once | Edit rules |
permlevel | The level whose rules govern the field, 0 by default |
precision, length, non_negative | Value limits |
print_hide, print_hide_if_no_value, print_width | Print layout |
translatable | Values go through translations |
ignore_xss_filter | Stores HTML without the sanitizer |
trust | lookups or script. Puts the field under the System Manager write guard |
ai | false keeps the field out of the AI catalog |
What options holds
| Field type | options |
|---|---|
Link, Table, Table MultiSelect | The target RecType |
Select, Autocomplete | The choices, one per line |
Dynamic Link | The field that holds the target RecType |
Currency | The field that holds the currency |
Image | The Attach Image field to show |
Data | Email, Name, Phone, URL, Barcode or IBAN |
Code | The language |
Rating | The number of stars |
HTML | The markup to show |
Expressions
The *_depends_on keys and row_rules use Cardinal's expression language over doc. Quote a value that holds quotes:
- {fieldname: route, fieldtype: Data, label: Route, depends_on: 'doc.type == "Route"', mandatory_depends_on: 'doc.type == "Route"'}
- {fieldname: service_items_section, fieldtype: Section Break, label: Service Items, collapsible_depends_on: "false"}Check your files
cardinal meta checkIt compiles every app's RecTypes, permission files and website files and prints each error with its file and path, such as fields[4].options.