Skip to content

Visual Builder, 45 Fields & Logic

Forms ships a 12-column responsive layout system (column_span 1..12), multi-step flows, collapsible fieldsets, dynamic option resolvers, safe arithmetic calculations, and visual conditional logic.

All 45 Supported Field Types (FormFieldDefinition::SUPPORTED_TYPES)

Section titled “All 45 Supported Field Types (FormFieldDefinition::SUPPORTED_TYPES)”
Category Field Types
Inputs & Credentials (11) text, textarea, markdown, email, tel, url, password, otp, color, hidden, invisible
Numbers & Scales (8) number, range, range_slider, unit_number, currency, rating (canonical max_value 2..10), opinion_scale, calculation
Choices & Toggles (10) select, combobox, segmented, multiselect, radios, checkboxes, cards, tags, toggle, consent (with allow_other, localized options_labels, and options_source)
Date, Location & Media (8) date, datetime, time, daterange, location, file, file_dropzone, signature
Content, Review & Workflows (8) heading, rich_text, html_block, image_block, summary, repeater (typed sub-columns), ai, payment
  • Steps (forms-step, FormStepDefinition): Define ordered steps with stepKey, title, description, prevLabel, nextLabel, and conditional navigation (skipIf, submitIf, gotoStep). Check step state programmatically via $form->isMultiStep(), $form->getStep($index), and $form->stepIndexOf($fieldName).
  • Fieldsets (forms-fieldset, FormFieldsetDefinition): Group related fields inside a step with key, title, description, columnSpan, and showIf/hideIf visibility rules.
  • Step Validation: Validate individual steps via $forms->validateStep($slug, $stepIndex, $rawInput, $uploadedFiles).
Author multi-step branching, fieldsets, and 12-column responsive layouts in the Visual Builder or in YAML.
  • ConditionalEvaluator & ConditionBuilder: Supports =, !=, *=, !*=, ^=, $=, * wildcards, numeric and ISO YYYY-MM-DD comparisons (>, >=, <, <=, after, on_or_after, before, on_or_before), in, not_in, between, =empty/!=empty, is_true/is_false, {other_field} / valueSource: 'field' field-to-field comparisons, group negate, and @pw/react/fields ConditionBuilder { match, groups } trees.
  • CalculationEvaluator: Computes calculation fields (e.g., weekly_budget * 0.30) with a safe recursive arithmetic parser, finite-number guards, and zero eval().
  • DynamicOptionsResolver: Populates choice fields from built-in presets (countries, currencies, timezones, languages, months, days, days_of_week, years_range, numbers_range, time_intervals) or RBAC- and sensitivity-filtered pages / entries queries.
  • Themes (FrontendForm): Choose default, modern, or semantic bare HTML (WCAG 2.2 AA accessible). enctype="multipart/form-data" is emitted automatically only when non-GET forms contain file upload fields.
  • Frontend Endpoints (/_forms/*): Serves /_forms/token/* (session CSRF or stateless _forms_csrf on guest embeds), /_forms/ajax/*, /_forms/embed/*.js (cross-page embed widget), /_forms/submission/delete/*, and /_forms/ab-event.
  • Safe Redirects & GET Prefill (RedirectUrlBuilder): Interpolates redirect_params ({field_key}, {field_key|d/m/Y}, {lang}, {form_slug}, {submission_id}) with rawurlencode(), strict date checks, Open Redirect prevention, _self/_blank redirect_target, Direct GET mode (redirect_mode: 'get' for search/filter forms), and cache-safe query prefill (applyQueryPrefill()).

Next steps