Record form field reference

recordFormFields is an ordered array inside a schedulable's definition (in the App Definition JSON) that describes the create and edit form the app shows for that record type. The apps render one field entry per array item, top to bottom, in a two-column grid.

Several form arrays share the exact same entry grammar described here:

Array Where it lives When it is used
recordFormFields on a schedulable (for example schedulables.shift) the standard create and edit form
homePageEditShiftFields on the shift schedulable the quick edit form shown on the home screen
recordFormFieldsAcceptance / recordFormFieldsRejection on an invitation schedulable the small form collected when a worker accepts or rejects
actionForms.<name>.recordFormFields on a schedulable extra fields collected by a named action (for example endShift)
child recordFormFields inside a task / break block the create and edit form for the child record grid

Everything below applies to all of them. For the {condition:{...}} object used by required, disabled, hidden, showIf and friends, see App Definition JSON reference.

Common field entry keys

Most entries describe a single input bound to one field. These keys apply across the input types:

Key Type Purpose
field string The API name the input reads and writes, for example b3s__Comments__c. A composite "start:end" pair (for example b3s__Start__c:b3s__End__c) binds two datetime fields to one control. Use "" for inputs that do not map to a field (a file upload).
formField string The child-record variant of field. Use this instead of field inside a task / break child grid's recordFormFields.
type string Which input to render (see the input types below).
labelOverride string Replaces the field's own label.
label string Explicit label for entries that are not driven by a field describe (separators, signature).
translationKey string Key looked up in the app's translations to localise the label. When present it wins over labelOverride.
required boolean or condition Makes the input mandatory. May be a plain true / false or a {condition:{allOrSome,selectors}} object evaluated against the record.
disabled boolean or condition Renders the input read-only-greyed. Boolean or condition object.
hidden boolean or condition Removes the input from the form entirely (but still writes its default). Boolean or condition object.
readOnly boolean Shows the value without allowing edits (softer than disabled).
default string Value applied on insert. Supports merge tags such as :contextId, :userId, :contactUserId, :contextDate (see the timezone and merge tags note below), or a literal ("Meals").
columns string Grid width for the entry, for example "col-span-2" to span the full form width.
props object Input-specific options passed straight to the control (see each type below).
showIf condition Shows or hides the entry based on other field values in the same form, re-evaluated as the user types. On the Clock app's actionForms, selectors can also test $clock.* facts about the clock in or out (see Clock in and out exception forms).
loader string For field-select, the name of a data loader whose records become the option list.
optionLabelField string For field-select fed by a loader, the field on each loaded record used as the option label (for example Name, b3s__Job__r.Name).
optionValueField string For field-select fed by a loader, the field on each loaded record stored as the value. Default Id. Use Name (or another path) to fill a text field from a loader, for example Reason Code (see Reason codes and cost codes).
prePopulate boolean Set false to stop the form pre-filling this input from the existing record on edit (the field starts blank).

required, disabled and hidden each accept either a boolean or a condition object. A condition lets the state depend on the record, for example disabling a signature until the status is New:

{
    "field": "b3s__Internal_Comments__c",
    "label": "Manager Signature",
    "type": "field-signature",
    "disabled": {
        "condition": {
            "allOrSome": "some",
            "selectors": [
                { "field": "b3s__Status__c", "operator": "notequals", "value": "New" }
            ]
        }
    }
}

Structural entries

Some array items draw layout, not inputs.

Separator — a labelled section heading. Give it a label (or translationKey) and usually columns: "col-span-2" so it runs across the form:

{ "isSeparator": true, "label": "Times", "columns": "col-span-2" }

Empty block — an empty grid cell used for spacing, so the next input lands in the column you want:

{ "isEmptyBlock": true }

Input types

Set type to one of the values below. Each renders a specific control; put control-specific options under props unless noted otherwise.

field-text

Single-line text box. Best for short text and text-like fields. props: maxLength (default 9999), minLength, placeholder, size.

{ "field": "b3s__Comments__c", "type": "field-text", "required": false }

field-text-area

Multi-line text box, for long text areas. props: maxLength, minLength, placeholder.

{ "field": "b3s__Submitter_Comments__c", "type": "field-text-area" }

field-number-input

Numeric box, for number, currency and percent fields. props: min, max, placeholder, size.

{ "field": "b3s__Total_Value__c", "type": "field-number-input", "required": true }

field-checkbox

A single tick box for a checkbox (boolean) field. No special props.

field-select

Dropdown, used for picklist fields and for lookups rendered as a pick list. Two ways to supply options:

Additional keys:

Key Purpose
options Inline [{ label, value }] list.
optionsInPopout true renders the choices in a full-screen picker rather than an inline dropdown (better for long lists on mobile).
optionLabelField Label field when fed by a loader.
optionValueField Value field when fed by a loader (default Id).
optionExtendedDetails [{ label, targetField }] extra columns shown under each option to help pick (for example the account and position under a job).
showOptionIf A condition, evaluated per option against the current record, that filters which options are offered (for example only placements whose contact and job match the shift). Uses targetField in its selectors to compare against the option record.
autoSelectOnlyOption Set to true to fill an empty single- or multi-select when exactly one choice remains. This applies to loader options, inline options and picklists, on opening the form and when a dependency changes. If the user clears the choice, it stays empty until the available options change.
props.hideNoneOption true removes the blank "-- none --" choice.
prePopulate false leaves the select empty on edit instead of selecting the record's current value.
templateLoader Rate Basis picklists only (no loader): filters the options to the values the record's job or account allows, from a Rate Basis Template loader. Companion keys templateJobField, templateAccountField, templateJobLoader. See Rate basis templates.
{
    "field": "b3s__Work_Job__c",
    "labelOverride": "Job",
    "type": "field-select",
    "optionsInPopout": true,
    "loader": "jobs",
    "optionLabelField": "Name",
    "autoSelectOnlyOption": true,
    "optionExtendedDetails": [
        { "label": "Account", "targetField": "b3s__Account__r.Name" },
        { "label": "Position", "targetField": "b3s__Job_Group__r.Name" }
    ]
}

field-date-input

Date-only picker, for date fields. Commonly defaulted to the calendar day in context with "default": ":contextDate". props: min, max, placeholder.

{ "field": "b3s__Date_of_Expense__c", "type": "field-date-input", "default": ":contextDate" }

field-time-range-selector

Composite start-and-end control for a pair of datetime fields. Bind it with a "start:end" field such as b3s__Start__c:b3s__End__c. It shows a date, a start time and an end time, computes the duration, and stores two datetimes.

props:

Prop Purpose
hideDate true hides the date row (time-only, used inside a shift where the day is already fixed).
hideAllDayToggle true removes the all-day switch.

Entry-level keys:

Key Purpose
valueStart / valueEnd Merge tags used to seed the two edges on insert, for example :contextStart and :contextEnd (the calendar slot the user clicked).
siteTimezoneFieldPath Field path holding the site's timezone; the control displays and edits wall-clock time in that timezone (see timezones below).
enableRepeatPattern true adds a Repeat button in create mode (see below).
rateBasis { field, loader, jobField?, accountField?, jobLoader? }: when the Rate Basis value changes, sets start and end from its template and locks the times for a locked template. See Rate basis templates.
{
    "field": "b3s__Start__c:b3s__End__c",
    "type": "field-time-range-selector",
    "labelOverride": "Start/End Time",
    "required": true,
    "valueStart": ":contextStart",
    "valueEnd": ":contextEnd",
    "props": { "hideDate": false },
    "enableRepeatPattern": true
}

The Repeat button. When enableRepeatPattern is true, creating a record shows a Repeat control. The user picks weekdays and a "repeat until" date, and on save the app inserts one record per selected weekday between the chosen start and that end date. Only the start and end datetimes are re-anchored to each new day; every other field on the form is copied unchanged. Re-anchoring preserves the original wall-clock time in the record's timezone across daylight-saving changes, so a shift that starts at 09:00 local stays 09:00 local on every generated day. Assume a single repeat-enabled field per form.

field-file-upload

File attachment control. The uploaded file is stored against the record, so field is usually "". props: placeholder (button text), maxFileSize (bytes), accept (allowed file types, e.g. image/* or .pdf,.jpg), multiple, source (mobile camera: environment = rear camera, user = front; requests direct camera capture on supported devices, so pair it with "accept": "image/*"). Without source, iOS and most Android browsers still offer "Take Photo" in the picker, provided accept allows images.

Like the standard Salesforce file field, each file uploads as soon as it is picked (a progress bar shows while it is in flight, and Save waits for it). On a new record the file is kept unattached and linked to the record when the form saves; when editing an existing record it is linked straight away. Removing a picked file only takes it off the form. Set "deferUpload": true in props to upload only on save instead.

"props": { "placeholder": "Take Photo", "accept": "image/*", "source": "environment" }
{
    "field": "",
    "labelOverride": "Upload",
    "translationKey": "fileUpload",
    "type": "field-file-upload",
    "props": { "placeholder": "Upload File", "maxFileSize": 6000000 }
}

field-signature

Capture a signature by drawing or typing. Stored on the bound field. props:

Prop Purpose
outputFormat Stored form of the signature, for example base64.
disableTypedSignature true forces a drawn signature (no type-to-sign fallback).
placeholder Prompt shown in the pad, for example Sign here.
{
    "field": "b3s__Internal_Comments__c",
    "label": "Manager Signature",
    "type": "field-signature",
    "props": { "outputFormat": "base64", "disableTypedSignature": false, "placeholder": "Sign here" }
}

field-toggle

An on/off switch for a boolean field. Alternative to field-checkbox where a switch reads better. props: placeholder.

field-slider

A slider for a numeric field within a range. props: min (default 0), max (default 100), step (default 1), unit (suffix shown, default %).

field-lookup

Type-ahead lookup that searches a Salesforce object server-side, for lookup / reference fields where the option list is too large to preload. Unlike field-select, results come from a live search rather than a loader. Keys go under props:

Prop Purpose
object API name of the object to search.
titleField Field shown as each result's main label.
descriptionField Field shown as the result's secondary line.
minSearchTermLength Characters required before searching (default 2).
maxSearchResults Maximum results returned (default 5).

field-record-select

Type-ahead selector similar to field-lookup, used to pick a related record. props: objectName, title (label field, default Name), subtitle, minSearchTermLength, maxSearchResults.

field-date-range-selector

Composite start-and-end control for a pair of Date fields (no times). Bind it with a "start:end" field such as b3s__Start__c:b3s__End__c; each side saves to its own field. The end picker cannot go earlier than the chosen start (and the start no later than the end), and a start after the end is rejected on save. The two pickers sit side by side and stack on narrow screens such as phones.

required makes both sides required. To require only one side, add optionalStart or optionalEnd, for example an open-ended booking that needs a start date but may run without an end. disabled and read-only apply to both sides; disableStart locks only the start (a pre-filled start the user may not change).

props:

Prop Purpose
optionalStart / optionalEnd true exempts that side from required.
disableStart true shows the start read-only (for example a placement extension, which always starts the day after the current End).
startLabel / endLabel Labels above each picker (default Start / End).
min / max Outer bounds in YYYY-MM-DD, applied to both pickers.
placeholder Placeholder for both pickers.
presets Quick-pick buttons shown above the pickers, which fill both dates in one click. See below.
weekStartDay Week start for week presets, from 0 (Monday, the default) to 6 (Sunday).
{
    "field": "b3s__Start__c:b3s__End__c",
    "type": "field-date-range-selector",
    "labelOverride": "Dates",
    "required": true,
    "props": { "optionalEnd": true }
}

Set labelOverride: a composite field has no single Salesforce label.

Quick-pick presets

Add a presets array to the date range field’s props. Each button takes a label and unit, with an optional offset and length.

Key Purpose
label Button text. A translation key is used when one exists, otherwise the text is shown as written.
unit day, week or month.
offset How many units from the current one the range starts. 0 (default) = this day / week / month, 1 = the next one, -1 = the previous one.
length Positive whole number of units the range covers (default 1).

The start is the first day of the unit (the weekStartDay for weeks, the 1st for months) and the end is the last day of the range. "Today" is the date in the app's timezone. The matching button is highlighted. The user can still change either date afterwards. Presets are hidden when the field is disabled, read-only or has disableStart, and a preset falling outside min / max is not shown. An invalid entry is skipped and logged to the browser console.

{
    "type": "field-date-range-selector",
    "field": "b3s__Start__c:b3s__End__c",
    "labelOverride": "Dates",
    "props": {
        "optionalEnd": true,
        "weekStartDay": 6,
        "presets": [
            { "label": "Today", "unit": "day" },
            { "label": "This Week", "unit": "week" },
            { "label": "Next Week", "unit": "week", "offset": 1 },
            { "label": "Next 4 Weeks", "unit": "week", "offset": 1, "length": 4 },
            { "label": "Next Month", "unit": "month", "offset": 1 }
        ]
    }
}

With weekStartDay: 6 and today a Friday 27 November 2026, This Week = Sun 22 to Sat 28 November and Next Week = Sun 29 November to Sat 5 December.

field-hours-input

Enter a duration as hours worked (a date plus start and end times, or a decimal total). Suits number or duration fields. props: totalHoursDecimal (true records a decimal total rather than start/end), placeholder.

field-onscreen-select

A large, tap-friendly option grid for a picklist, designed for kiosk and touch screens. Options come inline or from a loader as with field-select. props: maxVisibleOptions, searchPlaceholder, placeholder.

field-number-ticker

A number stepper with plus and minus buttons, good for small integer counts. props: min, max, title.

Some entries are not single inputs but embedded grids or file managers for related records.

task / break / alerts child grids

Set type to task, break or alerts to embed a grid of child records under the record being edited. The block declares which child object and relationship to use, what each row shows, permissions, and its own create and edit form.

Key Purpose
childObjectName API name of the child object, for example b3s__Break__c.
childField The lookup on the child pointing back to the parent, for example b3s__Shift__c.
parentFieldPath The parent field matched against childField, usually Id.
canCreate / canEdit / canDelete Booleans (or condition objects) controlling the row actions.
title An array of { label, fieldPath, formatter, hideIfNull, siteTimezoneFieldPath } describing the summary text for each row.
recordFormFields The child's own form array, using the same grammar as this document but with formField instead of field.
{
    "labelOverride": "Breaks",
    "type": "break",
    "columns": "col-span-2",
    "childObjectName": "b3s__Break__c",
    "parentFieldPath": "Id",
    "childField": "b3s__Shift__c",
    "canEdit": true,
    "canCreate": true,
    "canDelete": true,
    "title": [
        { "label": "Break Times", "fieldPath": "b3s__Start__c:b3s__End__c", "formatter": "startEnd", "hideIfNull": true }
    ],
    "recordFormFields": [
        {
            "formField": "b3s__Start__c:b3s__End__c",
            "labelOverride": "Break Times",
            "type": "field-time-range-selector",
            "required": true,
            "props": { "hideDate": true, "hideAllDayToggle": true }
        },
        { "formField": "b3s__Comments__c", "type": "field-text-area" }
    ]
}

record-files-manager

Set type to record-files-manager to embed a files list on the record, with upload and delete. Keys: canCreate, canDelete, plus label / translationKey and columns.

Files can be added before the record is saved: on a new record each file uploads immediately, is listed (and can be removed) in the section, and is linked to the record when the form saves. This needs the files to belong to the form's own record (no parentFieldPath); a section pointing at another record through parentFieldPath still asks you to save first.

required (true or a { "condition": ... }, same grammar as a field's required) blocks Save until the section holds at least one file (an upload still in flight also blocks it). The Vendor Portal sample ticket form ties it to the Ticket Type's Requires Evidence flag:

"required": { "condition": { "allOrSome": "all", "selectors": [
    { "field": "b3s__Ticket_Type__c", "fieldLoader": "ticketTypes", "fieldLoaderField": "b3s__Requires_Evidence__c", "operator": "equals", "value": true }
] } }
{
    "label": "Shift Files",
    "columns": "col-span-2",
    "translationKey": "record_files",
    "type": "record-files-manager",
    "canDelete": true,
    "canCreate": true
}

Timezones for date and time inputs

Datetime values always travel to and from Salesforce in UTC. What the user sees and edits is a local wall-clock time, resolved in one of two ways:

Composite "start:end" fields store two datetimes, one per side. On a field-time-range-selector, hideDate: true fixes the day (the control edits only the times, used when the parent record already sets the date) while the all-day toggle, unless removed with hideAllDayToggle, lets the user mark the whole day rather than pick specific times.

See App Definition JSON reference for the schedulable-level keys (objectType, date field paths, selectionClause) and the full condition and merge-tag grammar these forms build on.

Saving multiple records

From 12.5.0, bulk edits and repeat-pattern inserts save records together, rather than one request per record. Each request is all or nothing: one failed record rolls back the whole batch, and the form shows each distinct error once. The WFM setting Upsert Batch Size (b3s__Scheduler__c.b3s__Upsert_Batch_Size__c, default 200) splits larger sets into separate transactions, so a large operation can save earlier batches before a later batch fails. See Scheduler saving and live sync.