Fields
The Fields panel lets you add, configure, rename and delete columns within a table. Open it from Config → Fields, then select a table from the dropdown.

Adding a field
Click Add field and fill in the field form. The property names below are the labels shown in the form:
| Property | Description |
|---|---|
| Field name | Database name of the column: 2 to 63 characters: lowercase letters, digits and underscores, starting with a letter (^[a-z][a-z0-9_]{1,62}$, e.g. site_name). Required; cannot be changed afterwards except with Rename |
| Label | Display label shown to users (spaces, uppercase and special characters allowed) |
| Type | See field types below. Required |
| Database type | Column type: TEXT (strings, long texts), INTEGER (whole numbers, booleans), REAL (numbers with decimals) , DATE (a date without a time, stored as YYYY-MM-DD) or TIMESTAMP (dates and times). An empty value in a numeric (INTEGER, REAL, …), boolean, DATE or TIMESTAMP column is stored as NULL (never as an empty string, which PostgreSQL refuses) ; if the column cannot be NULL and has no default, the form asks for the field (required). Applications already configured keep their current types. Required |
| Vocabulary, Values from table, FK table | Source of the values of select, multi_select and combo_select fields, see below |
| Read-only | The field is visible and its value is sent to the server, but users cannot edit it |
| Hidden | The field is not shown to users; its value is still sent to the server and cannot be edited |
| Default value | Pre-filled value for new records. Variables: %today% (current date), %current_user% (id of the current user) |
The Validation group of the form collects everything that limits the accepted values. Each rule is checked as soon as it is filled in:
| Property | Description |
|---|---|
| Checks | One or more checks, see below. The mandatory and no-duplicates rules are set here |
| Max length | Maximum number of characters, spaces included |
| Min value / Max value | Lower and upper bound: numbers, or ISO dates on date fields. Also the range of a slider field |
| Regex pattern | Pattern the value must match, e.g. ^[A-Z]{2}\d+$ for a site code |
Below the group, two more properties:
| Property | Description |
|---|---|
| Help text | Text shown to users explaining how to fill in the field |
| Widget | Optional display widget for read mode: put a .js ES module in projects/{app}/widgets/ and it appears in the list |
Validation checks
The Checks property selects one or more checks. They run while the user types and again on the server when the record is saved.
| Check | Accepts |
|---|---|
not_empty | Mandatory field: it cannot be saved empty |
no_dupl | A value not already used in another record |
int | Whole numbers only: 10, -3 (not 10.5) |
real | Whole or decimal numbers, with a dot as the decimal separator: 10, 10.5, -0.25 (not 10,5, not 1e3) |
email | A valid email address |
valid_wkt | A geometry in Well Known Text format |
Use int for counts and identifiers, real for measurements (weights, lengths). The two are alternatives: do not combine them on the same field.
Min / Max value and Regex pattern need no check: they apply as soon as they are filled in.
Field types
| Type | Use for |
|---|---|
text | Short single-line text |
long_text | Long multi-line text (plain, preserves line breaks) |
md | Markdown text — rendered as formatted HTML in read mode; edit mode has a live preview toggle |
date | ISO date (YYYY-MM-DD) with date-picker |
boolean | Yes/No toggle |
select | Single value from a controlled vocabulary or another table |
multi_select | Multiple values from a controlled vocabulary |
combo_select | Free text + vocabulary suggestions |
slider | Integer within a min/max range |
Special characters strip
For long_text and md fields, Special characters strip shows buttons under the editor: a click inserts the character at the cursor (the field keeps the focus, and Ctrl+Z undoes it). Useful for Greek with diacritics, transliteration marks, symbols or formulas that are not on the keyboard.
The setting is a drop-down with the names of the char maps of the application; leave it empty for no strip. A short list is shown under the field; a long one hides behind a Special characters button that opens it (the buttons scroll inside the strip, so a narrow column is not filled with them). The inserted text is always in Unicode NFC form (ῆ as one character), so the same letter is always stored the same way.
Char maps
A char map is a named set of characters. They are listed in Config → Char maps (super admin), in two groups:
- Built-in — shipped with BraDypUS, read only. Today:
greek-polytonic(Greek vowels with breathings, accents and iota subscript). Press Duplicate as your own to start from one and change it. - Your own — created and edited here, a few per application at most; changing one changes every field that uses it, and deleting one leaves those fields without a strip.
A map of your own is written as text, with a live preview of the buttons under it:
| Written | Result |
|---|---|
Α Β Γ | One button per character, separated by spaces |
["α", {"label": "η̂", "value": "ῆ"}] | A JSON list; an item can have a label different from the inserted text |
{"a=": "ᾱ", "[…]": "[…]"} | A JSON map: button label → inserted text |
Names are 2–40 characters: lowercase letters, digits and hyphens, starting with a letter; they cannot be the name of a built-in map. Updating from an earlier version needs the pending minor upgrade (migration M056).
Value sources for select fields
Fields of type select, multi_select and combo_select need a source for their available values. Set exactly one of the following:
| Property | Description |
|---|---|
| Vocabulary | Name of a vocabulary list — values are managed in the Vocabularies panel |
| Values from table | A table and field whose unique values are used as autocomplete suggestions |
| FK table | A table whose records appear in the dropdown; the record id is stored, but the preview fields are shown to users |
The three are alternatives: the configuration refuses to save a field that sets more than one, and choosing one in the form clears the other two . A field saved with two of them before that (for example Values from table and FK table) keeps working as its list is offered: the one first in the table above is in force, and the form asks you to keep only one the next time you open it.
Foreign key fields
A foreign key field stores the id of a record from another table. Use type select and set FK table to the target table.
The dropdown shows the target table's preview fields; the stored value is the integer id. This is the recommended way to avoid data duplication across tables.
From text values to a foreign key
When a field that stored text (Values from table) becomes an FK table field, the records already saved still hold the text, not the id. Convert them once, after a backup and on a copy first. In SQL, for the field saggio_scavo of quad_trincee whose target table saggi_scavo shows its own saggio_scavo column (set that column as the target table's id_field):
-- 1. checks: both must come back empty
SELECT saggio_scavo, COUNT(*) FROM saggi_scavo GROUP BY saggio_scavo HAVING COUNT(*) > 1; -- duplicates
SELECT saggio_scavo, COUNT(*) FROM quad_trincee
WHERE saggio_scavo IS NOT NULL AND saggio_scavo <> ''
AND saggio_scavo NOT IN (SELECT saggio_scavo FROM saggi_scavo) GROUP BY saggio_scavo; -- no match
-- 2. conversion: only the texts with exactly one match
UPDATE quad_trincee
SET saggio_scavo = (SELECT MIN(s.id) FROM saggi_scavo s WHERE s.saggio_scavo = quad_trincee.saggio_scavo)
WHERE saggio_scavo IN (SELECT saggio_scavo FROM saggi_scavo GROUP BY saggio_scavo HAVING COUNT(*) = 1);Duplicates and texts with no match are left untouched: fix them by hand first. A record that still holds text saves as long as you do not change that field.
Reordering fields
Drag the handle (the three bars) at the left of a field to change its position; it works with mouse and touch, and the new order is saved at once. The order must include every field of the table. It is the order in which RecordView shows the fields when the table has no template (a template decides its own order), and it is reflected in export headers and record list columns. The order of the columns in the database table itself does not change. Fields of SQL views cannot be reordered.
Renaming a field
Use the Rename button. The DB column is renamed and all config references are updated.
Deleting a field
Click Delete. The DB column and all its data are permanently removed.