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 |
Multi-Step Flows & Fieldsets
Section titled “Multi-Step Flows & Fieldsets”- Steps (
forms-step,FormStepDefinition): Define ordered steps withstepKey,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 withkey,title,description,columnSpan, andshowIf/hideIfvisibility rules. - Step Validation: Validate individual steps via
$forms->validateStep($slug, $stepIndex, $rawInput, $uploadedFiles).
Conditional Logic & Safe Calculations
Section titled “Conditional Logic & Safe Calculations”ConditionalEvaluator&ConditionBuilder: Supports=,!=,*=,!*=,^=,$=,*wildcards, numeric and ISOYYYY-MM-DDcomparisons (>,>=,<,<=,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, groupnegate, and@pw/react/fieldsConditionBuilder{ match, groups }trees.CalculationEvaluator: Computescalculationfields (e.g.,weekly_budget * 0.30) with a safe recursive arithmetic parser, finite-number guards, and zeroeval().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-filteredpages/entriesqueries.
Frontend Themes, Embeds & Redirects
Section titled “Frontend Themes, Embeds & Redirects”- Themes (
FrontendForm): Choosedefault,modern, or semanticbareHTML (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_csrfon guest embeds),/_forms/ajax/*,/_forms/embed/*.js(cross-page embed widget),/_forms/submission/delete/*, and/_forms/ab-event. - Safe Redirects & GET Prefill (
RedirectUrlBuilder): Interpolatesredirect_params({field_key},{field_key|d/m/Y},{lang},{form_slug},{submission_id}) withrawurlencode(), strict date checks, Open Redirect prevention,_self/_blankredirect_target, Direct GET mode (redirect_mode: 'get'for search/filter forms), and cache-safe query prefill (applyQueryPrefill()).