Skip to content

Form Controls & Classic Field Upgrades

React provides both a declarative <SchemaForm /> engine for Inertia/React pages and a non-destructive rwControl upgrade layer that modernizes standard ProcessWire fields inside classic Page Edit screens.

Form Contexts & <SchemaForm /> (FormSchemaSerializer)

Section titled “Form Contexts & <SchemaForm /> (FormSchemaSerializer)”

FormSchemaSerializer converts ProcessWire InputfieldWrapper forms (serializeForm()) or declarative field arrays (serializeFormDefinitions()) into JSON schemas consumed by <SchemaForm /> (dist/SchemaForm.js) with Valibot validation.

Key layout and lifecycle features include:

  • 12-column responsive grid (colSpan): Combine 12, 6+6, 4+4+4, and 8+4 widths cleanly across desktop and narrow inspector panels.
  • Surfaces & Tabs: Render inside bordered cards (surface: 'card') or flush containers (surface: 'plain'), with nested SchemaTabs, collapsible fieldsets, multi-language EN/TR field tabs, inline option popovers, deleteTab, and unsaved-changes dirtyGuard.
SchemaForm contexts combine 12-column responsive grids, nested tabs, inline settings popovers, and multi-language field tabs.

Beyond standard text, email, URL, number, toggle, select, checkbox, and textarea inputs, React ships a lazy extended control pack (dist/ReactExtraFields.js) loaded automatically whenever a form uses any of these types:

Control Type Capabilities
color Hex, RGBA alpha hex, inherit/empty state, swatch preview, and validation
tags Free-form chips with suggestions or constrained predefined stacks with max item counts
combobox Searchable single and multi-select dropdowns
country / countries ISO country pickers powered by IntlCatalog
timezone Searchable IANA timezone selector powered by IntlCatalog
currency_code ISO 4217 currency selector powered by IntlCatalog
phone International phone input with country dial code selector
unit_number / currency Numeric input with unit or currency affix and locale decimal formatting
segmented Multi-option segmented toggle control
spacing Linked or individual top/right/bottom/left spacing values
range_slider Single or dual-thumb numeric range slider
otp Fixed-length one-time passcode cell input
password / secret Masked secret token field with reveal, copy, and generator controls
markdown Split markdown editor with live formatting toolbar
rating Star or numeric score selector
signature Canvas signature capture pad
calculation Read-only live computed expression display
Extended SchemaForm controls include affixes, masked secret generators, alpha-capable color pickers, tags, and searchable comboboxes.

Date, Time, DateTime & Date Range Pickers (ReactCalendar)

Section titled “Date, Time, DateTime & Date Range Pickers (ReactCalendar)”

Calendar and time controls live in an isolated on-demand bundle (dist/ReactCalendar.js + dist/ReactCalendar.css) prefetched only when a form contains date, time, datetime, or daterange fields:

  • date: Empty, populated, and min/max bounded calendar date picker.
  • time: 24-hour, 12-hour AM/PM, step intervals, and optional seconds.
  • datetime: Combined calendar + time picker with explicit timezone badge display.
  • daterange: Dual-date range selector with duration badge and quick presets.
Date, Time, DateTime, and DateRange controls load the isolated ReactCalendar bundle on demand.

Upgrading Classic ProcessWire Fields (rwControl)

Section titled “Upgrading Classic ProcessWire Fields (rwControl)”

You can upgrade any standard ProcessWire text, integer, float, or options field in classic Page Edit without changing its Fieldtype or database storage:

  1. Open Setup > Fields and edit an existing field.
  2. Open the Input tab and locate the React Control (rwControl) fieldset.
  3. Choose an upgraded control (such as color, tags, combobox, phone, country, timezone, currency_code, unit_number, segmented, spacing, range_slider, otp, password, markdown, rating, signature, or date/time/datetime/daterange).
  4. Save the field. ProcessWire renders the React control island inside classic Page Edit while persisting standard scalar or JSON values natively.

Next steps