Name editable fields
Format dates and give page editor fields clear names.
Before you begin: Add list controls.
Date and Time Fields
Date, time, and datetime-local inputs use Frontbacked’s shared picker. Click the field or press Enter, Space, or Alt+Down to open it. Time uses a 24-hour clock, with hours from 00 to 23. Done applies the selection; Cancel, Close, and Escape keep the previous value. You can still type directly into the input.
The picker respects min, max, and step, disabling unavailable dates and times. Second controls appear when needed. Disabled and read-only inputs stay unchanged. Month and week inputs, and fractional-second fields, keep their browser picker.
For a limit that represents a specific moment across timezones or a repeated daylight-saving hour, bind data-frontbacked-timezone to an IANA timezone and data-frontbacked-min-instant or data-frontbacked-max-instant to an ISO timestamp or Unix milliseconds. These constraints work independently of a theme’s purpose—for appointments, journeys, rentals, or other schedules.
When an allowed time falls in a repeated clock hour, the picker includes earlier or later in the input’s data-frontbacked-time-occurrence. Bind it alongside the selected value when your form needs to distinguish those occurrences. Keep validation on submission for values entered directly with the keyboard.
The picker emits normal input and change events, so existing FQL state bindings keep working. Background scrolling stays locked while it is open, including inside theme admin pages.
If you already provide your own calendar control, add data-frontbacked-native-picker="manual" to keep Frontbacked from opening its picker for that field.
Name fields in the page editor
Give site admins clear labels with optional f-name metadata. The label appears on edit buttons and in the generated page editor; it does not change the setting's key or the visitor-facing text.
Use f-name-ATTRIBUTE to name a particular f-attr-ATTRIBUTE field, such as f-name-src, f-name-alt, f-name-href, or f-name-data-package-id. f-name-text names an f-text field and f-name-list names an f-list editor. A nonblank specific name takes precedence over f-name; when neither supplies a name, Frontbacked generates one from the setting's path. Empty names use that same fallback.
Names are literal text: write f-name="Package name", without expression quotes or $settings interpolation. Names are safely displayed as text. They do not grant editing access or add validation rules. A parent's name does not rename its children's fields.
Name lists and their fields
The first list item defines the generated editor's fields, including their names and nested lists. Keep names consistent when the same field appears more than once; the first binding supplies its label. On elements with several editable bindings, use specific names so admins can distinguish them. Each binding can be opened separately.
Continue with Validate editable content.