> ## Agent Instructions > Write for Filament/Laravel developers buying Flex Forms. > Be precise: every setting documents what it does and how it works. > Use Help Center components richly: Steps, Cards, Callouts, Tabs, CodeGroup, Mermaid, Badge for Pro. > Never invent APIs; match the real Flex Forms package behavior. # Insights pipeline Source: https://flexforms.bjanczak.com/architecture/insights-pipeline How fill events become Insights panels — beacons, today buffer, and rollups. Understanding the pipeline helps you trust the numbers and choose Redis when traffic grows. ## Flow ```mermaid theme={} flowchart LR Fill[Fill_or_embed] --> Beacon[Analytics_beacon] Beacon --> Today[Today_buffer] Today --> Events[(Raw_events)] Today --> Redis[(Optional_Redis_hashes)] Events --> Job[Daily_rollup_job] Job --> Daily[(Daily_tables)] Redis --> UI[Insights_UI] Daily --> UI ``` ## Pieces | Piece | Role | | - | - | | Beacon | Browser sends interaction batches from fill | | Today buffer | Fast path for “today” metrics | | Raw events | Source of truth for detailed / filtered queries | | Daily rollups | Pre-aggregated history for snappy ranges (one queued job per day on multi-day catch-up) | | Redis (optional) | HLL uniques + today hashes under load | ## What you configure * Form-level: nothing required — Insights works out of the box after publish + traffic * Global settings: Insights Redis mode, connection, prefix, HLL, today hashes — see [Redis scaling](/features/insights/redis-scaling) * App schedule: Flex Forms registers a nightly rollup; multi-day catch-up (`--from` / `--to`) queues one job per date so workers can parallelize and retry safely * GeoIP: CDN headers by default; optional local MaxMind. External ip-api Pro HTTPS is opt-in only (`FLEX_FORMS_GEO_IP_EXTERNAL_API` + API key) — see [Config & env](/developers/config-env) Before a launch campaign, walk through the [Redis production checklist](/guides/redis-production). Related: [Insights overview](/features/insights/overview) · [OpenAPI beacon](/developers/openapi-beacon) # License flow Source: https://flexforms.bjanczak.com/architecture/license-flow How purchase, Composer install, domain activation, and Studio unlock work. Flex Forms licensing has a clear customer path: buy → install with Composer → activate domain → build. ## End-to-end ```mermaid theme={} sequenceDiagram participant Buyer participant Checkout as Checkout participant Portal as License_portal participant Registry as composer.bjanczak.com participant App as Filament_app Buyer->>Checkout: Purchase_Flex_Forms Checkout-->>Buyer: Lemon_license_key Buyer->>Portal: Register_account Portal-->>Buyer: cmp_token_and_pk_forms Buyer->>Registry: auth_cmp_plus_composer_require Registry-->>Buyer: Package_download Buyer->>Portal: Register_hostname Buyer->>App: Paste_pk_forms App->>Portal: Domain_check Portal-->>App: Plan_and_allow ``` ## Lemon key statuses | Status | What it means for you | | - | - | | Inactive | Paid / valid, no domains activated yet — add a hostname in the portal | | Active | At least one domain is activated | | Expired / Disabled | Your license is no longer valid — renew or contact support | Removing every domain returns the key to **inactive**. You can still add domains again and Composer access remains available while the purchase is valid. ## If the subscription expires or is cancelled | Surface | What happens | | - | - | | Studio (edit / publish) | Blocked until you renew | | Public fill & new submissions | Paused | | Composer downloads (`cmp_…`) | Stopped | | Data already in your database | **Kept** — never deleted by Flex Forms | Renew or restore entitlement in the [License Portal](https://license.bjanczak.com/flex-forms/panel) / Lemon Squeezy, then re-check the domain. See [Activate license](/get-started/activate-license) and [Plans](/plans/overview). ## What you use day to day | Artifact | Purpose | | - | - | | Lemon license key | Create / relink portal account only | | Composer token `cmp_…` | Download / update from `composer.bjanczak.com` | | Public key `pk_forms_…` | Stored in Global settings for Studio unlock | | Portal domain list | Which hostnames may run the product | | Plan (Standard / Pro / …) | Feature flags such as hide branding | Follow [Installation](/get-started/installation) — repository + `cmp_…` auth + `composer require`. Follow [Activate license](/get-started/activate-license). Use Studio freely on activated hosts. If something is locked, it is almost always a hostname mismatch or a missing public key in Global settings — not a Composer problem. Related: [License Portal](/plans/license-portal) · [Plans](/plans/overview) · [Hide branding](/plans/hide-branding) · [Support](/resources/support) # How Flex Forms fits together Source: https://flexforms.bjanczak.com/architecture/overview Product architecture for builders — Studio, fill, submissions, Insights, and license checks. This page explains how the **product** works inside your Filament app. It is for teams shipping forms — not for packaging internals. Flex Forms architecture — Studio, fill, Insights, and license checks ## Big picture ```mermaid theme={} flowchart TB subgraph panel [Filament_panel] Studio[Studio_builder] Settings[Form_and_global_settings] Inbox[Submissions_inbox] InsightsUI[Insights] Contacts[Contacts] end subgraph public [Public_surface] Fill[Fill_pages] Embed[Embed_widget] ShareInsights[Shared_Insights_links] end Studio -->|publish| Fill Studio --> Embed Fill --> Inbox Fill --> InsightsUI Fill --> Contacts InsightsUI --> ShareInsights Settings --> Studio Settings --> Fill ``` ## Studio → publish → fill 1. You design pages and fields in **Studio** (draft schema). 2. **Publish** promotes the schema so public fill routes use it. 3. Respondents open the **fill link** or an **embed**; answers become **submissions**. 4. **Insights** aggregates visits, answers, and drop-offs; **Contacts** consolidates respondents. ```mermaid theme={} sequenceDiagram participant Admin participant Studio participant Fill as Public_fill participant DB as Database Admin->>Studio: Drag_fields_and_logic Admin->>Studio: Publish Fill->>DB: Submission_and_events Admin->>Studio: Read_Insights_and_inbox ``` ## Why this architecture | Surface | What you get | | - | - | | Studio | Canvas + left field settings + Logic / calculated / design — autosaves drafts | | Form hub | Insights · Submissions · Share · Integrations — ops without leaving Filament. Form settings open from Studio as a modal. | | Fill / embed | Dedicated runtime assets (not panel bloat), access gates, CAPTCHA, partials | | Insights | Beacon → today buffer → rollups; optional Redis for uniques under load | | License | Hostname + public key checked at runtime before Studio mutations and live submits | That split is intentional: **builders** stay in Studio, **operators** stay in the hub, **respondents** hit a lean fill surface, and **your DB** remains the source of truth. ## Insights path (high level) ```mermaid theme={} flowchart LR Fill[Fill_embed] --> Beacon[Analytics_beacon] Beacon --> Today[Today_buffer] Today --> Events[(Raw_events)] Today --> Redis[(Optional_Redis)] Events --> Rollup[Daily_rollup_job] Rollup --> Daily[(Daily_tables)] Redis --> UI[Insights_UI] Daily --> UI UI --> Share[Public_share_links] ``` Beacons from fill feed a today buffer (optionally Redis), then daily rollups power Answers / Visits / Drop-offs. Details: [Insights pipeline](/architecture/insights-pipeline) and [Redis scaling](/features/insights/redis-scaling). ## License gate (runtime) On each request Flex Forms checks whether this hostname is allowed for your public key. Allowed apps get the full product; denied apps cannot mutate Studio data or accept live submissions. See [Activate license](/get-started/activate-license) and [License flow](/architecture/license-flow). ## Where to go next Builder, logic, design, publish. Drop forms on any website. Push submissions to your stack. Events, FieldMapper, custom integrations, Connections, actions. Optional published configuration. # Public API Source: https://flexforms.bjanczak.com/developers/PUBLIC_API Stable Flex Forms extension points for host applications — models, plugin hooks, integrations, events, and routes. # Flex Forms public API Stable extension points for host applications integrating with Filament Flex Forms. ## Model customization * `Bjanczak\FilamentFlexForms\FlexForms` * `useFormModel()`, `useSubmissionModel()`, `useConnectionModel()`, `useDeliveryModel()` * `formModel()`, `submissionModel()`, `connectionModel()`, `deliveryModel()` ## Filament plugin * `Bjanczak\FilamentFlexForms\FilamentFlexFormsPlugin` * `registerIntegration(string|IntegrationDriver $driver)` * `discoverIntegrations(string $path)` * `registerPostSubmitAction(string $class)` * `configureFormsTable(Closure $callback)` / `getConfigureFormsTable()` * `configureSubmissionsTable(Closure $callback)` / `getConfigureSubmissionsTable()` * `modifyFormsEloquentQueryUsing(Closure $callback)` / `getModifyFormsEloquentQueryUsing()` * `modifySubmissionsEloquentQueryUsing(Closure $callback)` / `getModifySubmissionsEloquentQueryUsing()` * `modifyConnectionsEloquentQueryUsing(Closure $callback)` / `getModifyConnectionsEloquentQueryUsing()` * `resolveConnectionTenantIdUsing(Closure $callback)` / `resolveConnectionTenantId()` * `pushSubmissionMiddleware(string $class)` ## Integrations * `Bjanczak\FilamentFlexForms\Integrations\IntegrationRegistry` * `register(IntegrationDriver|string $driver)` * `registerMany(iterable $drivers)` * `discover()` * `all()`, `get(string $key)`, `has(string $key)` * `Bjanczak\FilamentFlexForms\Integrations\Contracts\IntegrationDriver` * `Bjanczak\FilamentFlexForms\Integrations\Contracts\SupportsInboundWebhooks` * `Bjanczak\FilamentFlexForms\Integrations\Contracts\SupportsScheduledSync` * Generic driver bases: * `Bjanczak\FilamentFlexForms\Integrations\Support\Generic\GenericApiIntegrationDriver` * `Bjanczak\FilamentFlexForms\Integrations\Support\Generic\GenericOAuthIntegrationDriver` (PKCE S256 by default) * `Bjanczak\FilamentFlexForms\Integrations\Support\Generic\GenericSignedWebhookDriver` * `Bjanczak\FilamentFlexForms\Integrations\Support\Generic\VerifiesFlexFormsInboundSignature` * Field mapping: * `Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldMapper` * `Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldMapping` * `Bjanczak\FilamentFlexForms\Integrations\Mapping\LegacyFieldMappingAdapter` * `Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldTransformRegistry` * OAuth helpers: * `Bjanczak\FilamentFlexForms\Integrations\Support\OAuth\OAuthTokenData` * `Bjanczak\FilamentFlexForms\Integrations\Support\OAuth\OAuthTokenManager` * `Bjanczak\FilamentFlexForms\Integrations\Support\OAuth\DeviceCodeOAuthFlow` * HTTP / auth helpers: * `Bjanczak\FilamentFlexForms\Integrations\Support\Http\GraphQlClient` * `Bjanczak\FilamentFlexForms\Integrations\Support\Saml\SamlAssertionConsumer` * `Bjanczak\FilamentFlexForms\Integrations\Support\ConnectionCredentialResolver` * `Bjanczak\FilamentFlexForms\Integrations\Support\InboundWebhookResult` * Credential mode enum: * `Bjanczak\FilamentFlexForms\Integrations\Support\CredentialMode` ## Post-submit actions * `Bjanczak\FilamentFlexForms\Contracts\PostSubmitAction` * `Bjanczak\FilamentFlexForms\Support\PostSubmit\PostSubmitActionRegistry` Form schema hook: ```php theme={} 'schema' => [ 'thank_you' => [ 'post_submit_actions' => ['your_action_key'], 'post_submit_action_configs' => [ 'your_action_key' => ['url' => 'https://example.com'], ], ], ], ``` ## Submission pipeline * `Bjanczak\FilamentFlexForms\Contracts\SubmissionMiddleware` * `Bjanczak\FilamentFlexForms\Support\Pipeline\SubmissionPipeline` ## Submission context * `Bjanczak\FilamentFlexForms\Support\SubmissionContext` ## Events * `Bjanczak\FilamentFlexForms\Events\FormSubmissionCompleted` * `Bjanczak\FilamentFlexForms\Events\FormSubmissionPartialSaved` * `Bjanczak\FilamentFlexForms\Events\FormSubmissionDeleted` * `Bjanczak\FilamentFlexForms\Events\FormCreated` * `Bjanczak\FilamentFlexForms\Events\FormUpdated` * `Bjanczak\FilamentFlexForms\Events\FormDeleted` * `Bjanczak\FilamentFlexForms\Events\FormPublished` * `Bjanczak\FilamentFlexForms\Events\FormUnpublished` * `Bjanczak\FilamentFlexForms\Events\IntegrationDispatchSucceeded` * `Bjanczak\FilamentFlexForms\Events\IntegrationDispatchFailed` * `Bjanczak\FilamentFlexForms\Events\IntegrationDeliveryReplayed` * `Bjanczak\FilamentFlexForms\Events\IntegrationInboundReceived` * `Bjanczak\FilamentFlexForms\Events\IntegrationInboundFailed` * `Bjanczak\FilamentFlexForms\Events\PostSubmitActionSucceeded` * `Bjanczak\FilamentFlexForms\Events\PostSubmitActionFailed` * `Bjanczak\FilamentFlexForms\Events\PaymentCaptured` * `Bjanczak\FilamentFlexForms\Events\PaymentFailed` * `Bjanczak\FilamentFlexForms\Events\PaymentRefunded` ## Artisan * `flex-forms:upgrade` — `Bjanczak\FilamentFlexForms\Commands\UpgradeCommand` * `flex-forms:make-integration {name} {--api} {--oauth} {--webhook} {--inbound}` — scaffold host integration drivers * `flex-forms:sync-integrations {--driver=} {--connection=}` — run scheduled remote sync for drivers implementing `SupportsScheduledSync` ## Testing helpers * `Bjanczak\FilamentFlexForms\Testing\IntegrationDriverTestCase` * `Bjanczak\FilamentFlexForms\Testing\AssertsIntegrationDriverContract` (Pest-friendly trait) ## Configuration `config/filament-flex-forms.php`: ```php theme={} 'extensibility' => [ 'submission_middleware' => [], 'integrations' => [ 'drivers' => [], 'discover' => [], 'allow_override' => false, 'redact_keys' => [], // extra delivery-context keys always redacted ], ], ``` ## OAuth / inbound routes * `GET /flex-forms/connections/oauth/redirect/{connection}` (`flex-forms.connections.oauth.redirect`, auth required) * `GET /flex-forms/connections/oauth/callback` (`flex-forms.connections.oauth.callback`; connection id in signed state) * `POST /flex-forms/integrations/{driver}/webhook` (`flex-forms.integrations.inbound.webhook`) — drivers implementing `SupportsInboundWebhooks` # Admin customization Source: https://flexforms.bjanczak.com/developers/admin-customization Customize Filament admin — navigation, Studio branding, forms table columns, and permission overrides via FilamentFlexFormsPlugin. Flex Forms registers Filament resources for the legacy forms list and submissions inbox. Most hosts customize the **plugin** (navigation + Studio chrome) and optionally the **forms table** for tenant-specific columns. ## FilamentFlexFormsPlugin Register in your panel provider: ```php theme={} use Bjanczak\FilamentFlexForms\FilamentFlexFormsPlugin; use Bjanczak\FilamentFlexForms\Support\Permissions\StudioAbility; ->plugin( FilamentFlexFormsPlugin::make() ->navigationLabel('Lead capture') ->navigationGroup('Marketing') ->navigationSort(12) ->navigationIcon('heroicon-o-clipboard-document-list') ->brandLogo('/brand/studio-square.svg') ->brandName('Acme Studio') ->authorizeAbilityUsing(function (StudioAbility $ability, $user, $form): ?bool { // Return true/false to decide, or null to fall through to Spatie/Gate return null; }) ) ``` | Method | Effect | | - | - | | `navigation()` | Show/hide sidebar entry | | `navigationLabel()` / `navigationGroup()` / `navigationSort()` / `navigationIcon()` | Sidebar presentation | | `brandLogo()` / `brandName()` | Studio left-rail home mark | | `authorizeAbilityUsing()` | Override Studio RBAC per ability | Config/env fallbacks when plugin methods are unset: [Config & env](/developers/config-env) → **Filament navigation** and **Studio branding**. Hide Flex Forms on a panel: ```php theme={} FilamentFlexFormsPlugin::make()->navigation(false) ``` ## configureFormsTable Add columns, filters, and row actions to the Filament **Forms** resource table without forking the package: ```php theme={} FilamentFlexFormsPlugin::make() ->configureFormsTable(function (\Filament\Tables\Table $table): \Filament\Tables\Table { return $table ->columns([ ...$table->getColumns(), \Filament\Tables\Columns\TextColumn::make('team.name') ->label('Team') ->toggleable(), ]) ->filters([ \Filament\Tables\Filters\SelectFilter::make('team_id') ->relationship('team', 'name'), ]); }); ``` The callback receives the default `Table` configuration — spread existing columns when you only append. Related hooks (same plugin): ```php theme={} ->configureSubmissionsTable(fn ($table) => $table->…) ->configureFormForm(fn ($schema) => $schema->…) // rare — Studio is the primary editor ``` Use `configureFormsTable` for admin-only metadata (`team_id`, `external_id`). Do not duplicate Studio builder fields here. ## Permissions Full RBAC guide: [Studio permissions](/developers/studio-permissions). Quick strict mode for SaaS: ```bash theme={} FLEX_FORMS_PERMISSIONS_STRICT=true ``` ## Multi-panel setups Register the plugin on every panel that should host Studio. License checks use **hostname**, not panel ID — register each hostname in the [License Portal](https://license.bjanczak.com/flex-forms/panel). Different panels can use different `navigationGroup()` / `brandLogo()` chains on separate `FilamentFlexFormsPlugin::make()` instances. The primary form editor is **Studio** (`/{record}/studio`), not the Filament resource form schema. Keep table customization focused on list/inbox ergonomics. **Next:** [Configuration](/get-started/configuration) · [Studio permissions](/developers/studio-permissions) · [Custom models](/developers/custom-models) # Config & env Source: https://flexforms.bjanczak.com/developers/config-env Every published config key in filament-flex-forms.php — uploads, builder limits, Insights, and license signing. Publish the config to override any default: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-config ``` This writes `config/filament-flex-forms.php`. Keys listed below can also be set via `.env` without publishing (unless noted otherwise). ## License License check, portal, and purchase URLs are **fixed in the package** (same endpoints Studio uses). They are not config or `.env` settings — changing them is not supported. `license.signing_public_key` is loaded from the bundled public Ed25519 JWK at `resources/license/signing-public-key.json`, not an env var — you should not need to touch it. ## Security When `true`, every form encrypts submission answers at rest (same as Global Settings → Security → Require encryption on all forms, but locked by env). Env: `FLEX_FORMS_FORCE_SUBMISSION_ENCRYPTION`. See [Multi-tenancy](/developers/multi-tenancy) and [General Settings](/features/settings/general). ## Localization (i18n) Host overrides for Studio / Fill JS catalogs. Full workflow (publish PHP + JSON, add languages, RTL): [Localization & RTL](/get-started/languages-rtl). Absolute or app-relative root for published JS locale JSON (`studio/{locale}.json`, `fill/{locale}.json`). Env: `FLEX_FORMS_I18N_JS_PATH`. Leave empty to use Laravel `lang_path('vendor/filament-flex-forms/js')`. ## Uploads Disk for logo/cover/social images — must be **publicly readable** so crawlers can render link previews. Env: `FLEX_FORMS_DESIGN_DISK`. Disk for respondent file uploads — kept **private**, served via signed URLs. Env: `FLEX_FORMS_SUBMISSIONS_DISK`. Root path prefix inside each disk. Compression quality for optimized images (WebP default **80**, JPEG **85**). Env: `FLEX_FORMS_WEBP_QUALITY`, `FLEX_FORMS_JPEG_QUALITY`. Long-edge limits for Studio design assets. Cover writes a normal + thumb pair; logo fits a 500×500 box; social/OG is center-cropped to 16:9 JPEG. Images are never upscaled. Public fill field images: normal max **1500px**, thumb max **350px** (WebP). Non-image uploads (PDF, video, audio, …) stay as a single original file. Storage driver for design assets **and** public fill field uploads: `disk` (default) or `spatie`. When `spatie`, Media Library is the primary store (conversions + URLs). Env: `FLEX_FORMS_MEDIA_DRIVER`. Optional Spatie disk override. When null, Flex Forms uses the purpose-aware design / submissions disks. Env: `FLEX_FORMS_SPATIE_DISK`. Prefix for Spatie media collections (e.g. `flex-forms-design-cover`). Env: `FLEX_FORMS_SPATIE_COLLECTION_PREFIX`. Generate Spatie responsive srcsets for cover/field `normal` conversions. Env: `FLEX_FORMS_SPATIE_RESPONSIVE`. Queue Spatie conversions (needs a worker). Default `false` so Studio/fill get URLs immediately. Env: `FLEX_FORMS_SPATIE_QUEUE_CONVERSIONS`. Rejects images above this resolution before processing. Per-IP upload rate limit on Studio design uploads. How long a signed private-file URL stays valid. Total upload quota per form across all submissions. **Required for multi-tenant apps.** `fn (?Authenticatable $user, FlexForm $form, string $ability): bool` — without it, any authenticated panel user can upload/view files for *any* form. When `true`, uploads/views are denied unless `uploads.authorize` is set — flip this on for SaaS hosts to fail closed instead of open. ```php title="config/filament-flex-forms.php — multi-tenant authorization" theme={} 'uploads' => [ 'authorize' => fn ($user, $form) => $user?->can('update', $form) ?? false, 'require_authorize_callback' => true, ], ``` ```bash title=".env — disks, quotas, optional Spatie" theme={} FLEX_FORMS_DESIGN_DISK=public FLEX_FORMS_SUBMISSIONS_DISK=s3 FLEX_FORMS_QUOTA_BYTES_PER_FORM=1073741824 FLEX_FORMS_SIGNED_URL_TTL=30 FLEX_FORMS_WEBP_QUALITY=80 # Optional — requires composer require spatie/laravel-medialibrary FLEX_FORMS_MEDIA_DRIVER=disk # FLEX_FORMS_MEDIA_DRIVER=spatie # FLEX_FORMS_SPATIE_DISK= # FLEX_FORMS_SPATIE_COLLECTION_PREFIX=flex-forms # FLEX_FORMS_SPATIE_RESPONSIVE=true # FLEX_FORMS_SPATIE_QUEUE_CONVERSIONS=false ``` ## Builder Maximum number of pages a form can have in Studio. Env: `FLEX_FORMS_MAX_PAGES`. ## Filament navigation Sidebar item for the Forms resource. Prefer the fluent plugin API in your panel provider; config / env are fallbacks. ```php theme={} FilamentFlexFormsPlugin::make() ->navigationIcon('heroicon-o-envelope') ->navigationLabel('Forms') ->navigationGroup('Flex Forms') ->navigationSort(10); ``` Filament sidebar group. Env: `FLEX_FORMS_NAVIGATION_GROUP`. Sidebar label. Env: `FLEX_FORMS_NAVIGATION_LABEL`. Heroicon (or other Blade icon) for the Forms item. Env: `FLEX_FORMS_NAVIGATION_ICON`. Sort order inside the group. Env: `FLEX_FORMS_NAVIGATION_SORT`. ## Studio branding Left-rail branding shown inside Studio itself (not the public fill page) — override programmatically with `FilamentFlexFormsPlugin::make()->brandLogo()->brandName()`, or via `FLEX_FORMS_STUDIO_BRAND_LOGO` / `FLEX_FORMS_STUDIO_BRAND_NAME`. ## Studio account menu The Studio left rail shows a Filament-style account avatar **below Global Settings**. Items are cloned from the current panel’s `userMenuItems()` (profile, logout, and any custom entries). Nested `children` in config extras render as nested submenus. If your panel only customizes logout with `MenuItem::make()->icon(...)` (no URL), Studio still exposes **Log out** as a POST to Filament’s logout route. Env: `FLEX_FORMS_STUDIO_USER_MENU`. Env: `FLEX_FORMS_STUDIO_USER_MENU_EMAIL`. Optional auth guard and expected Authenticatable FQCN (defaults to the Filament panel user). Env: `FLEX_FORMS_STUDIO_USER_MENU_GUARD` / `FLEX_FORMS_STUDIO_USER_MENU_MODEL`. Attribute names or `fn (Authenticatable $user)` callbacks. When null, Flex Forms uses Filament’s name/avatar helpers and the user’s `email`. Filament menu keys to hide in Studio (e.g. `['profile']`). Extra menu entries merged after Filament’s. Each item may include `key`, `label`, `url`, `method` (`get`|`post`), `icon`, `color`, `sort`, `group`, `openInNewTab`, and nested `children` for submenus. Per-user menu payload cache via FlexFormsCache (Redis when Insights Redis scaling is enabled, otherwise Laravel cache) plus an in-request memo. Invalidation is **TTL-only** — profile/menu changes are not bumped; wait for `cache_ttl` or disable cache in local/dev. Env: `FLEX_FORMS_STUDIO_USER_MENU_CACHE` / `FLEX_FORMS_STUDIO_USER_MENU_CACHE_TTL`. ## Submission emails (HTML) Publish Blade templates to customize HTML visually: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-mail ``` Fallback accent when the form design has no accent color. Env: `FLEX_FORMS_MAIL_ACCENT`. When true, respondent receipts include the answers table (also forced on when “Include answers receipt” is checked). Env: `FLEX_FORMS_MAIL_RESPONDENT_ANSWERS`. Blade view names for team alerts, respondent receipts, and plain-text fallback. ## Studio permissions (optional Spatie) Spatie is **not required**. See the full guide: [Studio permissions (RBAC)](/developers/studio-permissions). Master switch. Env: `FLEX_FORMS_PERMISSIONS_ENABLED`. When true and `spatie/laravel-permission` is installed, enforce mapped Gate names **only if** that permission exists in your DB. Env: `FLEX_FORMS_PERMISSIONS_SPATIE`. Deny when no authorize callback and no registered Spatie permission. Env: `FLEX_FORMS_PERMISSIONS_STRICT`. `fn (Authenticatable $user, StudioAbility $ability, ?FlexForm $form): ?bool` — return null to continue the chain. Maps each Studio ability (e.g. `createForm`) to a Gate / Spatie name (e.g. `Create:FlexForm`). ## Insights How long raw analytics events are kept before pruning. Hard cap on filtered raw-event cursor rows. When exceeded, the scan stops and `meta.filtered_scan_capped` is set. Global Insights with filters on ranges longer than 31 days also clamps the scan window and sets `meta.filtered_range_clamped` (separate from the row-budget flag). Env: `FLEX_FORMS_INSIGHTS_FILTERED_SCAN_MAX_ROWS`. Seconds an Insights query result is cached — see [Redis production checklist](/guides/redis-production). Force Redis scaling on/off, or leave unset to auto-detect connectivity. Env: `FLEX_FORMS_INSIGHTS_SCALING_REDIS`. Named Redis connection and key namespace. Country/city for Insights maps. Defaults: CDN headers, optional local MaxMind. External `ip-api` Pro HTTPS is **opt-in** (`enable_external_api` + `api_key`) — visitor IPs are personal data; keep off unless you have a DPA and disclose the processor. Plain HTTP is never used. Soft per-form × IP event budget for the analytics beacon (in addition to the route throttle). Env: `FLEX_FORMS_BEACON_EVENTS_PER_FORM_IP`. User-agent substrings, referrer substrings, and regexes used to exclude bots/crawlers from traffic and drop-off numbers. Class names implementing `SubmissionMiddleware`, run around submission ingest. Also push via `FilamentFlexFormsPlugin::pushSubmissionMiddleware()`. See [Events & hooks](/developers/events-hooks). Extra `IntegrationDriver` classes registered at boot. Prefer `FilamentFlexFormsPlugin::registerIntegration()` for panel-scoped apps. See [Custom integrations](/developers/custom-integrations). Absolute paths scanned for `*.php` driver classes (e.g. `app_path('FlexForms/Integrations')`). When false, host drivers cannot replace shipped keys like `mailchimp`. Extra delivery-context keys always redacted before persistence (e.g. `ssn`, `nip`). Full Redis-specific tuning (connection, prefix, HyperLogLog, today-hashes) is covered end to end in [Redis production checklist](/guides/redis-production). No — every key has a sane default and can be overridden purely with env vars. Publish only if you need PHP-level overrides like `uploads.authorize`. Any authenticated panel user can view/upload files for any form's Studio — set `uploads.authorize` and `require_authorize_callback` before going to production with more than one tenant. Step-by-step: [Multi-tenancy](/developers/multi-tenancy). **Next:** [Multi-tenancy](/developers/multi-tenancy) · [Upload disks](/developers/upload-disks) · [Extensibility overview](/developers/extensibility-overview) · [Upgrading](/get-started/upgrading) · [Redis production checklist](/guides/redis-production) · [Webhooks](/developers/webhooks) # Custom integrations Source: https://flexforms.bjanczak.com/developers/custom-integrations End-to-end cookbooks for Generic API, OAuth (PKCE), and signed webhooks — scaffold, register, map fields, test, and ship. Ship a first-party feed for your internal API or a niche SaaS tool by implementing an **integration driver**. Drivers appear under **Integrations** (global credentials / Connections) and attach per form as feeds. ## IntegrationDriver contract Every driver implements `Bjanczak\FilamentFlexForms\Integrations\Contracts\IntegrationDriver`: | Method | Purpose | | - | - | | `key()` / `name()` / `description()` / `category()` | Identity in Studio | | `globalConfigFields()` / `connectionConfigFields()` | Panel-wide vs Connection-tier credentials | | `credentialMode()` | `GlobalOnly`, `ConnectionOnly`, or `GlobalOrConnection` | | `driverSchemaVersion()` | Bump when feed/connection JSON shape changes | | `formFeedFields()` | Per-form options (list ID, mapping, endpoint) | | `normalizeGlobalConfig()` / `normalizeFormFeed()` | Sanitize saved JSON | | `isConfigured()` / `testConnection()` | Integrations rail health check | | `dispatch(..., ?FlexFormIntegrationConnection $connection = null)` | Send payload on submission | Extend `AbstractIntegrationDriver` for shared HTTP helpers, or start from: * `GenericApiIntegrationDriver` — JSON POST + bearer + SSRF guard + redacted delivery meta * `GenericOAuthIntegrationDriver` — OAuth authorize/callback with **PKCE S256** + Connections * `GenericSignedWebhookDriver` — HMAC-signed outbound webhooks ## Register drivers (3 ways) ### 1. Config (explicit) ```php title="config/filament-flex-forms.php" theme={} 'extensibility' => [ 'integrations' => [ 'drivers' => [ \App\FlexForms\Integrations\AcmeCrmDriver::class, ], 'discover' => [], 'allow_override' => false, ], ], ``` ### 2. Discovery folder ```php theme={} 'discover' => [ app_path('FlexForms/Integrations'), ], ``` ### 3. Plugin `boot()` ```php theme={} FilamentFlexFormsPlugin::make() ->registerIntegration(\App\FlexForms\Integrations\AcmeCrmDriver::class); ``` ## Artisan scaffold ```bash theme={} php artisan flex-forms:make-integration AcmeCrm --api php artisan flex-forms:make-integration AcmeHub --oauth php artisan flex-forms:make-integration AcmeHook --webhook ``` Creates: * `app/FlexForms/Integrations/{Name}Driver.php` * `tests/Feature/FlexForms/{Name}DriverTest.php` (skip with `--no-test`) The Pest stub registers the driver and extends `IntegrationDriverTestCase` (key slug, credential mode, normalize helpers). *** ## Cookbook 1 — REST list API (end-to-end) `php artisan flex-forms:make-integration AcmeList --api` Override `endpoint()` (HTTPS public URL only — SSRF guarded) and `buildPayload()` from FieldMapper output. Optionally override `testConnectionRequest()` to return a health URL so **Test connection** performs a real GET ping. Add the class to `extensibility.integrations.drivers` (or discovery). Open **Integrations**, paste the API key (encrypted at rest). For Connection-tier drivers, create a Connection instead. Enable the feed → Advanced field mapping (`email` → `email`, transforms like `trim` / `phone_e164`). Save + publish. Use **Send test** — delivery ledger shows `source=sandbox` with redacted secrets. Submit a live response and confirm a `succeeded` delivery row. Extend `IntegrationDriverTestCase` and add `Http::fake()` coverage for a 200 dispatch and a 429 retryable failure if your driver surfaces that status. ```php title="app/FlexForms/Integrations/AcmeListDriver.php" theme={} final class AcmeListDriver extends GenericApiIntegrationDriver { public function key(): string { return 'acme_list'; } public function name(): string { return 'Acme List'; } protected function endpoint($form, $submission, array $globalConfig, array $feed): string { return 'https://api.acme.example/v1/subscribers'; } protected function testConnectionRequest(array $config): ?string { return 'https://api.acme.example/health'; } protected function buildPayload(array $mapped, $form, $submission, array $feed): array { return [ 'email' => $mapped['email'] ?? null, 'tags' => $mapped['tags'] ?? [], 'source' => 'flex-forms', ]; } } ``` *** ## Cookbook 2 — OAuth CRM with PKCE (end-to-end) Flex Forms OAuth Connections use **authorization code + PKCE (S256)** by default. `php artisan flex-forms:make-integration AcmeHub --oauth` Implement `getOAuthAuthorizeUrl()`, `getTokenUrl()`, `getClientId()`, `getClientSecret()`, `getOAuthScopes()`. Keep `usesPkce()` at default `true` unless the provider rejects PKCE. In the provider console set redirect URI exactly to `https://your-domain/flex-forms/connections/oauth/callback`. **Integrations → Connections → Create → Connect**. Redirect builds `code_challenge`; callback exchanges `code` + `code_verifier` (one-time cache, bound to admin user) and returns to the Connections tab. Set `connection_id` on the feed (Studio Connections picker). Tokens refresh via `OAuthTokenManager` (mutex + `needs_reauth` on failure). **Test connection**, then **Send test**. Confirm deliveries never store raw `client_secret` / bearer tokens. Override `usesPkce(): false` only for legacy providers. Prefer fixing the provider registration over disabling PKCE. *** ## Cookbook 3 — Signed partner webhook (end-to-end) `php artisan flex-forms:make-integration AcmeHook --webhook` Store `webhook_secret` on the Connection (or global config). Outbound body is HMAC-SHA256 signed. Set `request_url` to an HTTPS public endpoint. Private / metadata hosts are rejected (SSRF guard). Map nested fields, enable the feed, **Send test**, inspect the submission ledger (`source=sandbox`, redacted context). *** ## Field mapping + transforms Host transforms: ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldMapper; FieldMapper::extend('acme_code', fn (mixed $value): mixed => strtoupper((string) $value)); ``` Built-ins include `trim`, `uppercase`, `merge_template`, `split_name`, `phone_e164`, `file_url`, and more — see [Field mapping](/developers/field-mapping). ## Isolation & safety checklist * Use `AbstractIntegrationDriver::httpClient()` (timeouts, no open redirects) * Expect delivery `context` to be redacted (`Authorization`, `api_key`, tokens) * Scope Connections in multi-tenant apps via `modifyConnectionsEloquentQueryUsing()` — [Multi-tenancy](/developers/multi-tenancy) * Run `php artisan flex-forms:upgrade` after package updates ## Platform helpers (sealed) GraphQL HTTP helpers, device-code OAuth, SAML assertion verification, inbound webhook receivers, and scheduled remote sync are first-class SDK surfaces — see [Public API](/developers/PUBLIC_API), [Inbound webhooks](/developers/inbound-webhooks), and the sections below in this cookbook. **Next:** [OAuth integrations](/developers/oauth-integrations) · [OAuth token management](/developers/oauth-token-management) · [Field mapping](/developers/field-mapping) · [Integrations catalog](/integrations/overview) # Custom models Source: https://flexforms.bjanczak.com/developers/custom-models Swap FlexForm, submission, connection, and delivery Eloquent models with FlexForms::useFormModel and related registrars. Default Flex Forms models work for single-tenant Filament apps. Multi-tenant or white-label hosts often need extra columns (`team_id`, `organization_id`), global scopes, or separate connection tables — register subclasses **early** in `AppServiceProvider::register()`. ## Registrar API ```php theme={} use Bjanczak\FilamentFlexForms\FlexForms; use App\Models\TenantFlexForm; use App\Models\TenantFlexFormSubmission; use App\Models\TenantIntegrationConnection; use App\Models\TenantIntegrationDelivery; public function register(): void { FlexForms::useFormModel(TenantFlexForm::class); FlexForms::useSubmissionModel(TenantFlexFormSubmission::class); FlexForms::useConnectionModel(TenantIntegrationConnection::class); FlexForms::useDeliveryModel(TenantIntegrationDelivery::class); } ``` Each class **must extend** the package base model: | Registrar | Base class | | - | - | | `useFormModel()` | `Bjanczak\FilamentFlexForms\Models\FlexForm` | | `useSubmissionModel()` | `Bjanczak\FilamentFlexForms\Models\FlexFormSubmission` | | `useConnectionModel()` | `Bjanczak\FilamentFlexForms\Models\FlexFormIntegrationConnection` | | `useDeliveryModel()` | `Bjanczak\FilamentFlexForms\Models\FlexFormIntegrationDelivery` | Invalid classes throw `InvalidArgumentException` at registration time. ## Example: tenant-scoped form ```php title="app/Models/TenantFlexForm.php" theme={} namespace App\Models; use Bjanczak\FilamentFlexForms\Models\FlexForm; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\BelongsTo; final class TenantFlexForm extends FlexForm { protected static function booted(): void { static::addGlobalScope('tenant', function (Builder $query): void { if ($teamId = auth()->user()?->current_team_id) { $query->where('team_id', $teamId); } }); } public function team(): BelongsTo { return $this->belongsTo(Team::class); } } ``` Add migrations for new columns on the same tables (`flex_forms`, `flex_form_submissions`, `flex_form_integration_connections`, …) — do not rename tables unless you override `$table` consistently. ## Resolving models in your code Use the registrar instead of hard-coded class names: ```php theme={} $formClass = FlexForms::formModel(); $submissionClass = FlexForms::submissionModel(); $formClass::query()->where('slug', $slug)->first(); ``` Package internals (ingestor, integration manager, policies) resolve through the same API — custom models participate everywhere once registered. ## Connections and deliveries When swapping connection/delivery models: * Keep `credentials` encrypted cast for OAuth tokens — [OAuth token management](/developers/oauth-token-management) * Scope Connections per tenant the same way as forms * Delivery rows power admin replay UI — preserve foreign keys to submissions ## Policies and authorization Register policies on your subclass if Filament resolves `$record` as the custom model: ```php theme={} Gate::policy(TenantFlexForm::class, TenantFlexFormPolicy::class); ``` Combine with [Multi-tenancy](/developers/multi-tenancy) (`uploads.authorize`, `authorizeAbilityUsing`). Call registrars before Flex Forms boots ( `register()`, not `boot()` ). Late registration leaves cached resolves pointing at default models. **Next:** [Multi-tenancy](/developers/multi-tenancy) · [OAuth integrations](/developers/oauth-integrations) · [Admin customization](/developers/admin-customization) # Embed widget API Source: https://flexforms.bjanczak.com/developers/embed-api The real data attributes, query flags, and loader script behind every Flex Forms embed. Installation and Composer auth are covered in [Installation](/get-started/installation). This page is the reference for developers wiring embeds into custom platforms, SPAs, or CMS templates beyond copy-pasting the Share snippet. ## Assets `embed.js` runs on the **host page** (your website); `embed-child.js` runs **inside the fill iframe** and reports things like content height back to the parent for auto-resize. Both are registered `loadedOnRequest()` — they never load globally in the Filament admin panel. ## Standard iframe embed The full public fill URL for the form, including the `/embed` suffix and any query flags. This is what `embed.js` reads to lazily set `src` on load. ```html title="Minimal iframe embed" theme={} ``` ```js title="Manually (re)scan the page for embeds" theme={} // Call after injecting new iframes dynamically (e.g. client-side routing) window.FlexForms.loadEmbeds(); ``` ## Query flags (iframe src)
FlagTypeEffect
hideTitle1Hides the form title inside the fill page
alignLeft1Left-aligns content instead of centering
transparentBackground1Removes the fill page's background so your page shows through
dynamicHeight1Iframe reports content height to the parent for auto-resize (default on for embeds)
formEventsForwarding1Forwards fill lifecycle events to the host page via postMessage
## Popup mode (button or link trigger) ```html title="Button trigger" theme={} ``` ```html title="Link trigger (hash-based)" theme={} Open form ```
Attribute (or hash key)Values
data-flex-form-openThe form's slug
data-flex-form-layoutmodal
data-flex-form-width200–1200 (pixels)
data-flex-form-positione.g. bottom\_right
data-flex-form-hide-title1
data-flex-form-align-left1
data-flex-form-overlay1 (dim the page behind the popup)
data-flex-form-auto-close0 (disable auto-close on submit)
data-flex-form-custom-form-urlOverride base URL (advanced/self-hosted proxies)
```html theme={} ``` Always resolve the exact host, slug, and script URL from your own app's Share tab or `FormEmbedBuilder` output — the samples above use placeholder hosts and will 404 as-is. Content on this page is for developers wiring Flex Forms into custom platforms, SPAs, and CMS templates in production Filament apps. **Next:** [Query params](/developers/query-params) · [Embed on any platform](/guides/embed-platforms) · [OpenAPI beacon](/developers/openapi-beacon) # Events & hooks Source: https://flexforms.bjanczak.com/developers/events-hooks Listen for FormSubmissionCompleted, queue listeners, submission pipeline middleware, and client-side embed events. Flex Forms dispatches Laravel events at clear lifecycle points. Use **events + listeners** (or queued listeners) for server-side reactions — not Eloquent observers on submission models. ## FormSubmissionCompleted Fired after a **full** (non-partial) submission is ingested and persisted — in the same `afterCommit` callback that queues `FinalizeSubmissionSideEffectsJob`. Partial saves dispatch `FormSubmissionPartialSaved` instead. **Ordering (important):** the event runs **before** outbound integrations and Studio post-submit actions. Those run asynchronously in the finalize job. Do **not** assume CRM delivery rows exist when your listener runs. If you need “after integrations,” listen for `IntegrationDispatchSucceeded` / `PostSubmitActionSucceeded`, or queue work that polls delivery status. The event carries: * `$event->form` — `FlexForm` instance * `$event->submission` — `FlexFormSubmission` instance * `$event->context` — typed `SubmissionContext` (`source`, `formId`, `submissionId`, optional safe `meta`) — never answers or secrets ```php theme={} $event->context->source; // e.g. "ingest" $event->context->formId; $event->context->submissionId; $event->context->toArray(); // array shape for logs ``` ### Basic listener ```php title="app/Listeners/SyncSubmissionToCrm.php" theme={} namespace App\Listeners; use Bjanczak\FilamentFlexForms\Events\FormSubmissionCompleted; final class SyncSubmissionToCrm { public function handle(FormSubmissionCompleted $event): void { // $event->submission->answers, $event->form->slug, … } } ``` Register in `AppServiceProvider` or an event service provider: ```php theme={} use Bjanczak\FilamentFlexForms\Events\FormSubmissionCompleted; use App\Listeners\SyncSubmissionToCrm; use Illuminate\Support\Facades\Event; Event::listen(FormSubmissionCompleted::class, SyncSubmissionToCrm::class); ``` Or use Laravel's attribute discovery (`#[ListensTo(FormSubmissionCompleted::class)]`) if your app uses it. ### Queued listener Offload slow work (CRM API, enrichment) to the queue: ```php theme={} use Bjanczak\FilamentFlexForms\Events\FormSubmissionCompleted; use Illuminate\Contracts\Queue\ShouldQueue; final class NotifySlackOnSubmission implements ShouldQueue { public string $queue = 'integrations'; public function handle(FormSubmissionCompleted $event): void { // … } } ``` Integrations, mail, and Insights side effects already use queues in production. Your listeners should assume a queue worker is running. ## Other server events | Event | When | | - | - | | `FormSubmissionPartialSaved` | Partial / save-later progress stored | | `FormSubmissionDeleted` | Submission removed from inbox | | `FormCreated` / `FormUpdated` / `FormDeleted` | Studio create, schema save, delete | | `FormPublished` / `FormUnpublished` | Publish state changed in Studio | | `IntegrationDispatchSucceeded` / `IntegrationDispatchFailed` | Per-feed outbound result | | `IntegrationDeliveryReplayed` | Admin replayed a failed delivery | | `PostSubmitActionSucceeded` / `PostSubmitActionFailed` | Per Studio post-submit action | | `PaymentCaptured` / `PaymentFailed` / `PaymentRefunded` | Stripe payment block lifecycle | Use these when you need observability beyond a single `FormSubmissionCompleted` hook. Submission events are **not** `ShouldBroadcast` by default. Real-time admin dashboards are out of scope for this package — broadcast from your own listener if you need WebSockets. ## Submission pipeline middleware Pipeline middleware is registered once (config + `push()`). Duplicate class names are ignored so Octane/long-lived workers do not stack the same middleware repeatedly. For logic that must run **before** answers are saved (validation, enrichment, blocking spam), implement `SubmissionMiddleware` instead of listening after the fact. ```php title="app/FlexForms/BlockDisposableEmails.php" theme={} namespace App\FlexForms; use Bjanczak\FilamentFlexForms\Contracts\SubmissionMiddleware; use Bjanczak\FilamentFlexForms\Support\Pipeline\SubmissionPipelinePayload; use Closure; final class BlockDisposableEmails implements SubmissionMiddleware { public function handle(SubmissionPipelinePayload $payload, Closure $next): SubmissionPipelinePayload { $email = $payload->answers['email'] ?? null; if (is_string($email) && str_ends_with(strtolower($email), '@mailinator.com')) { return $payload->abort('Please use a work email address.'); } return $next($payload); } } ``` Register in config: ```php theme={} 'extensibility' => [ 'submission_middleware' => [ \App\FlexForms\BlockDisposableEmails::class, ], ], ``` Or push at runtime from `AppServiceProvider`: ```php theme={} use Bjanczak\FilamentFlexForms\Support\Pipeline\SubmissionPipeline; app(SubmissionPipeline::class)->push(\App\FlexForms\BlockDisposableEmails::class); ``` Check `$payload->isAborted()` downstream; aborted submissions surface the message to the respondent. Do **not** attach Eloquent observers to `FlexFormSubmission` for ingest side effects. The ingestor owns persistence order; observers race integrations and encryption. Use events or pipeline middleware instead. ## Client-side embed events For marketing sites and SPAs, forward fill lifecycle events to the host page with `formEventsForwarding=1` on the embed URL. The parent receives `postMessage` payloads like `FlexForms.FormSubmitted`. Full attribute list and event names: [Embed widget API](/developers/embed-api). ```html theme={} ``` ```js theme={} window.addEventListener('message', (event) => { if (typeof event.data !== 'string') return; const message = JSON.parse(event.data); if (message.event === 'FlexForms.FormSubmitted') { // GTM, analytics, close modal, … } }); ``` **Next:** [Field mapping](/developers/field-mapping) · [Post-submit actions](/developers/post-submit-actions) · [Webhooks](/developers/webhooks) # Extensibility overview Source: https://flexforms.bjanczak.com/developers/extensibility-overview Map of Flex Forms extension points — events, submission pipeline, field mapping, integrations, connections, post-submit, models, and admin hooks. Flex Forms is built for Laravel hosts that need more than no-code feeds — custom CRMs, tenant-scoped models, OAuth-backed connections, and server-side logic on every submission. This page is the map. Each child page covers one extension surface with copy-paste examples. ```mermaid theme={} flowchart TB Fill[Respondent submits form] Fill --> Pipeline[Submission pipeline middleware] Pipeline --> Ingest[Persist answers] Ingest --> Event[FormSubmissionCompleted] Event --> Integrations[Integration feeds] Event --> Custom[Your listeners] Integrations --> Map[Field mapping] Integrations --> Conn[Connections OAuth tokens] Integrations --> PostSubmit[Post-submit actions] ``` ## Extension surfaces Canonical stable surface — prefer these classes over anything marked `@internal`. Listen for `FormSubmissionCompleted`, integration dispatch events, and form publish lifecycle. Prefer events over Eloquent observers. Laravel-style middleware on answers **before** persistence — validate, enrich, or abort with a message. Map form answers to integration payloads with transforms, nested paths, and static values. Register drivers for your API — config, discovery folder, or Artisan generator. Two-tier model: OAuth driver + reusable **Connections** that store tokens per account. Redirect/callback routes, refresh lifecycle, encrypted credential storage. Server-side actions after a completed submission — alongside feeds and listeners. Swap `FlexForm`, submission, connection, or delivery models for multi-tenant schemas. Navigation, Studio branding, forms table columns, and permission overrides via the plugin. ## Config entry point Publish config to register pipeline middleware and integration drivers: ```php title="config/filament-flex-forms.php" theme={} 'extensibility' => [ 'submission_middleware' => [ \App\FlexForms\EnrichSubmissionMetadata::class, ], 'integrations' => [ 'drivers' => [ \App\Integrations\AcmeCrmDriver::class, ], 'discover' => [ app_path('Integrations/FlexForms'), ], 'allow_override' => false, ], ], ``` Full env and config reference: [Config & env](/developers/config-env). ## Stability & deprecation Public extension points are listed in [`PUBLIC_API.md`](/developers/PUBLIC_API). Classes outside that list may change without a major version bump — prefer documented APIs. When we deprecate a public method or event, we keep it working for **at least one minor release** and document the replacement in Upgrading notes and the changelog. ## Related developer docs | Topic | Page | | - | - | | Embed `postMessage` events | [Embed widget API](/developers/embed-api) | | Outbound webhook payload | [Webhooks](/developers/webhooks) | | Insights pipeline | [Insights pipeline](/architecture/insights-pipeline) | | Multi-tenant recipe | [Multi-tenancy](/developers/multi-tenancy) | | RBAC | [Studio permissions](/developers/studio-permissions) | **Start here:** [Events & hooks](/developers/events-hooks) for listeners, or [Custom integrations](/developers/custom-integrations) if you are shipping a new feed driver. # Field mapping Source: https://flexforms.bjanczak.com/developers/field-mapping Map form answers to integration payloads with FieldMapping, FieldMapper, transforms, nested paths, static values, and preview. Integration feeds (CRM, webhooks, spreadsheets) rarely accept raw form field names. Flex Forms **field mapping** renames keys, applies transforms, injects static values, and supports nested target paths — the same engine powers Studio mapping UI and programmatic dispatch. ```mermaid theme={} flowchart LR Answers[Submission answers] --> Mapper[FieldMapper] Mapping[FieldMapping DTO] --> Mapper Transforms[FieldTransformRegistry] --> Mapper Mapper --> Payload[Outbound payload] ``` ## How mapping works 1. **Field mappings** — `{ "source_field": "target_key" }` pairs copy values from answers to the output. 2. **Transformations** — optional per-source transform applied before the value is written. 3. **Static values** — constants merged into the output (campaign IDs, record types, tags). 4. **Unmapped fields** — optionally include remaining answers under a prefix. Sources use dot notation for nested answers (`address.city`). Targets use dot notation for nested output (`contact.address.city`). ## Built-in transforms | Transform | Effect | | - | - | | `none` | Pass through (default) | | `trim` | Trim strings | | `uppercase` / `lowercase` | Case change | | `string` / `number` / `integer` / `boolean` | Type coercion | | `date_iso` / `date_us` / `date_eu` | Format dates (`Y-m-d`, `m/d/Y`, `d/m/Y`) | | `json` | Encode array → JSON string, or decode JSON string → array | | `comma_separated` | Join array values with commas | | `first_item` / `last_item` | Pick from array | | `count` | Count array elements | | `slug` | Laravel `Str::slug()` | | `md5` / `sha256` | Hash scalar values | | `empty_to_null` | `''` or `[]` → `null` | | `merge_template` | Replace `{{field}}` tokens from answers | | `split_name` / `join_name` | Split/join first+last name | | `phone_e164` | Digits / `+` normalization | | `file_url` / `file_name` | Prefer upload array `url` / `name` | Chain transforms with `|` (e.g. `trim|lowercase`). Register custom transforms: ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldMapper; use Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldTransformRegistry; FieldMapper::extend('acme_code', fn (mixed $value): mixed => /* … */ $value); // or app(FieldTransformRegistry::class)->extend('acme_code', fn (mixed $value): mixed => $value); ``` ## Conditions Optional `conditions` on `FieldMapping`: * **Global** (no `source`): if any fail, only `staticValues` are returned. * **Per-source** (`source` matches a mapped field): skip that row when the condition fails. Operators: `filled`, `empty`, `equals`, `not_equals`, `truthy`, `falsy`. ## FieldMapping DTO ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldMapping; $mapping = new FieldMapping( fieldMappings: [ 'email' => 'contact.email', 'full_name' => 'contact.name', 'company' => 'account.name', ], transformations: [ 'email' => 'lowercase|trim', 'full_name' => 'trim', ], staticValues: [ 'source' => 'flex-forms', 'pipeline.stage' => 'new', ], includeUnmappedFields: false, unmappedPrefix: 'extra_', ); // From feed JSON stored on the form: $mapping = FieldMapping::from($feed['mapping'] ?? []); ``` ## FieldMapper::map example ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Mapping\FieldMapper; $answers = [ 'email' => ' Jane@Example.com ', 'full_name' => 'Jane Doe', 'plan' => ['pro', 'support'], 'address' => ['city' => 'Gdansk'], ]; $mapped = app(FieldMapper::class)->map($answers, $mapping); /* [ 'contact' => ['email' => 'jane@example.com', 'name' => 'Jane Doe'], 'account' => ['name' => null], 'source' => 'flex-forms', 'pipeline' => ['stage' => 'new'], ] */ ``` ### Nested paths ```php theme={} $mapping = new FieldMapping( fieldMappings: [ 'address.city' => 'properties.city', 'address.postcode' => 'properties.zip', ], ); ``` `Arr::get` / `Arr::set` power both sides — deep paths work out of the box. ### Static values Static values are written **after** field mappings and can define nested keys: ```php theme={} staticValues: [ 'tags' => ['web-form', 'enterprise'], 'owner.id' => '005xx000001234', ], ``` ### Preview Use the same mapper for admin previews and tests: ```php theme={} $preview = app(FieldMapper::class)->preview($sampleAnswers, $mapping, $formSchema); ``` `preview()` is an alias of `map()` — pass the form schema when a transform needs block metadata from `$context['schema']`. Conditional feeds in Studio can attach mapping per branch. See [Conditional feeds](/integrations/conditional-feeds). **Next:** [Custom integrations](/developers/custom-integrations) · [Webhooks](/developers/webhooks) · [Post-submit actions](/developers/post-submit-actions) # Inbound webhooks Source: https://flexforms.bjanczak.com/developers/inbound-webhooks Accept provider → Flex Forms webhooks with signature verification, idempotency, and custom drivers. # Inbound webhooks Outbound feeds push on submit. **Inbound webhooks** let a provider call Flex Forms when something changes in their system (CRM contact update, signed relay, etc.). ## Endpoint ``` POST /flex-forms/integrations/{driver}/webhook ``` Named route: `flex-forms.integrations.inbound.webhook`. Optional query: `?connection={id}` to resolve Connection-tier credentials. ## Contract Implement `SupportsInboundWebhooks` on your `IntegrationDriver`: * `inboundRouteKey()` — must match the `{driver}` segment * `verifyInbound(Request, config, ?Connection)` — throw `RuntimeException` on bad signatures * `handleInbound(payload, Request, config, ?Connection): InboundWebhookResult` Flex Forms stores idempotency rows in `flex_form_inbound_webhook_events` keyed by `driver_key` + `provider_event_id`. ## Shipped references | Driver | Signature | Effect | | - | - | - | | **Webhooks** | `X-Flex-Forms-Signature` HMAC-SHA256 (same as outbound signed webhooks) | Accept + ledger | | **HubSpot** | `X-HubSpot-Signature` / `X-HubSpot-Signature-v3` | Sync matching `FlexFormContact` name fields + last seen by email | | **Slack** | `X-Slack-Signature` (+ `url_verification` challenge) | Accept signed events; configure **Signing Secret** on Catalog / Connection | Configure secrets under Integrations → Catalog / Connections. Other catalog drivers stay outbound-first unless you implement `SupportsInboundWebhooks` on a custom driver. ## Scaffold ```bash theme={} php artisan flex-forms:make-integration AcmeRelay --inbound ``` Uses `VerifiesFlexFormsInboundSignature` by default. ## Events * `IntegrationInboundReceived` * `IntegrationInboundFailed` Stripe payment webhooks stay on `flex-forms.stripe.webhook` (payment ledger), not this generic route. # Integration SDK helpers Source: https://flexforms.bjanczak.com/developers/integration-sdk-helpers GraphQL, device-code OAuth, and SAML helpers for custom Flex Forms drivers — not shipped ACS/IdP or product SSO. # Integration SDK helpers These classes are **helpers for custom integration drivers** you register yourself. They are not a shipped ACS, IdP, or product SSO stack, and no first-party catalog driver uses them out of the box for device-code or SAML login. Use them when you implement a driver that needs GraphQL HTTP, RFC 8628 device-code OAuth, or SAML assertion claim extraction for a Connection. ## GraphQL ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Support\Http\GraphQlClient; $client = new GraphQlClient('https://api.example.com/graphql'); $data = $client->dataOrFail( query: 'query ($id: ID!) { node(id: $id) { id } }', variables: ['id' => '1'], bearerToken: $accessToken, ); ``` Endpoint URLs are SSRF-hardened: **HTTPS public hosts only** (no private/link-local/metadata ranges). The helper uses the shared outbound HTTP client (timeouts, no open redirects). ## Device-code OAuth No first-party driver ships device-code yet. The Studio **Authorize device** button appears only when your driver implements `SupportsDeviceCodeOAuth`. ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Support\OAuth\DeviceCodeOAuthFlow; $flow = new DeviceCodeOAuthFlow($driver); $start = $flow->start('https://provider.example/device/code'); // Show $start['user_code'] + $start['verification_uri'] in Studio Connections $token = $flow->poll($start['device_code']); // throws authorization_pending until approved ``` Device and token endpoint URLs follow the same SSRF rules (HTTPS public only). Authorization-code + PKCE remains the default via `GenericOAuthIntegrationDriver`. ## SAML assertion helper `SamlAssertionConsumer` is for custom Connection auth in a driver — **not** Filament panel SSO. Keep host IdP login outside Flex Forms. **Requirements:** you must pass the IdP signing certificate PEM. The consumer verifies XML digital signatures (XML-DSig) against that PEM, then checks Audience / Recipient (and related) claims. ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\Support\Saml\SamlAssertionConsumer; $claims = (new SamlAssertionConsumer)->consume( $assertionXml, audiences: ['https://your-app.example'], recipient: 'https://your-app.example/acs', idpCertificatePem: $pem, // required — signature verified against this IdP PEM ); ``` # Multi-tenancy Source: https://flexforms.bjanczak.com/developers/multi-tenancy Recommended recipe for Filament multi-tenant hosts — authorize Studio uploads, Studio abilities, and optional forced submission encryption. Flex Forms does not ship a separate tenancy engine. On Filament multi-tenant panels you keep using **your** tenant model and policies — then wire three package hooks so one tenant never reads another tenant’s forms, files, or exports. ```mermaid theme={} flowchart TD Tenant[Filament_tenant] --> Policy[Form_policy] Policy --> Uploads[uploads.authorize] Policy --> Studio[Studio_permissions] Global[Global_Settings_or_env] --> Encrypt[Require_answer_encryption] ``` ## 1. Scope forms to the tenant Store forms under the tenant the same way you store other Filament resources (global scopes, `team_id`, Filament tenancy relationship, etc.). Studio list/edit already go through your panel auth — make sure `FlexForm` queries cannot cross tenants. ## 2. Lock uploads & signed file URLs Without `uploads.authorize`, any authenticated panel user can upload/view files for **any** form. For SaaS hosts, fail closed: ```php title="config/filament-flex-forms.php" theme={} 'uploads' => [ 'authorize' => fn ($user, $form) => $user?->can('update', $form) ?? false, 'require_authorize_callback' => true, ], ``` Env equivalent: `FLEX_FORMS_REQUIRE_AUTHORIZE=true`. Details: [Upload disks](/developers/upload-disks) · [Config & env](/developers/config-env). ## 3. Gate Studio actions Use Spatie / Shield permission names, or: ```php theme={} FilamentFlexFormsPlugin::make() ->authorizeAbilityUsing(function (StudioAbility $ability, $user, $form): ?bool { if ($form === null) { return null; } return $user?->can('update', $form) ? null : false; }); ``` Full ability map: [Studio permissions](/developers/studio-permissions). ## 4. Scope Integration Connections Connections store encrypted credentials. Scope them the same way you scope forms: ```php theme={} FilamentFlexFormsPlugin::make() ->resolveConnectionTenantIdUsing(fn () => (string) Filament::getTenant()?->getKey()) ->modifyConnectionsEloquentQueryUsing(function ($query) { $tenantId = (string) Filament::getTenant()?->getKey(); return $query->where('tenant_id', $tenantId); }); ``` `created_by` is set automatically from the authenticated panel user when a Connection is created. ## 5. Require encrypted answers (optional hard policy) For forms that collect sensitive data, enable **Encrypt submission answers** per form (Form Settings → General). For organization-wide compliance, turn on **Require encryption on all forms** under **Global Settings → Security**, or set: ```bash theme={} FLEX_FORMS_FORCE_SUBMISSION_ENCRYPTION=true ``` When either is on, every form stores answer payloads encrypted at rest (Laravel `Crypt` / `APP_KEY`) — including both answer rows and the submission `payload` JSON. Studio, exports, and emails decrypt for display. See [General Settings](/features/settings/general) and [Privacy](/resources/privacy). Rotating `APP_KEY` after encryption is enabled makes existing sealed answers unreadable. Treat key rotation like a data-migration event. ## Checklist before production * [ ] Tenant-scoped `FlexForm` queries / policies * [ ] Tenant-scoped Integration Connections (`modifyConnectionsEloquentQueryUsing`) * [ ] `uploads.authorize` + `require_authorize_callback` * [ ] Studio ability grants for multi-admin teams * [ ] Encryption policy decided (per form vs global / env) **Next:** [Config & env](/developers/config-env) · [Studio permissions](/developers/studio-permissions) · [Upload disks](/developers/upload-disks) # OAuth integrations Source: https://flexforms.bjanczak.com/developers/oauth-integrations Two-tier OAuth model — integration driver plus reusable Connections that supply auth to feeds. Some providers (CRM suites, spreadsheets, help desks) expect **OAuth 2.0** instead of a static API key pasted into Global Settings. Flex Forms uses a **two-tier** model: 1. **Integration driver** — defines scopes, token URLs, feed fields, and dispatch logic. 2. **Connection** — a saved OAuth account (tokens + metadata) admins authorize once and reuse across forms. ```mermaid theme={} flowchart TB Admin[Admin clicks Connect] Admin --> Redirect[OAuth redirect route] Redirect --> Provider[Provider consent screen] Provider --> Callback[Callback route] Callback --> Connection[(FlexFormIntegrationConnection)] Feed[Form feed] --> Driver[OAuth driver] Driver --> Connection Driver --> API[Provider API] ``` ## Why two tiers? | Layer | Stores | Reused by | | - | - | - | | **Driver** | How to talk to the API (endpoints, mapping shape, required scopes) | All Connections of that `driver_key` | | **Connection** | Encrypted tokens, account label, health status | Many form feeds pointing at the same account | Admins connect **once** under **Integrations → Connections** (hub tab), then pick that connection on each form feed — no re-pasting refresh tokens per form. ## Auth from a Connection In `dispatch()` and `testConnection()`, resolve credentials from the linked connection instead of inline global config: ```php theme={} public function dispatch( FlexForm $form, FlexFormSubmission $submission, array $globalConfig, array $feed, ): IntegrationDispatchResult { $connection = $this->connectionFromFeed($feed); // your helper $token = app(OAuthTokenManager::class)->accessToken($connection); $client = $this->httpClient(bearerToken: $token); // … } ``` Global config fields on OAuth drivers typically shrink to: * **Client ID** / **Client secret** (app registration) * Optional **default scopes** * **Connection picker** on the form feed (required) Legacy manual token fields remain supported for air-gapped installs — OAuth Connections are the recommended path. ## Driver responsibilities OAuth drivers extend the same `IntegrationDriver` contract with: * `getOAuthConfig()` — authorize URL, token URL, scopes, redirect URI, `uses_pkce` (never includes `client_secret`) * `oauthClientId()` / `oauthClientSecret()` — read credentials for token exchange / storage only * `usesPkce()` — default `true` (S256); override only for legacy providers * `exchangeOAuthCode($code, $connectionId, $codeVerifier = null)` — token exchange * Tokens refresh via `OAuthTokenManager` (mutex + `needs_reauth`) Built-in examples in the Help Center: [Google Sheets](/integrations/google-sheets), [Salesforce](/integrations/salesforce), [Help Scout](/integrations/helpscout). ## Studio UX 1. Admin registers the OAuth app (client ID/secret) under **Integrations**. 2. Clicks **Connect account** → redirect flow → new row in **Connections**. 3. On a form feed, selects **Connection: Marketing Hub ([user@company.com](mailto:user@company.com))**. 4. Field mapping and conditional rules behave like any other feed. Connections are panel-wide. Scope them to tenants in multi-tenant apps via custom connection models — see [Custom models](/developers/custom-models). **Next:** [OAuth token management](/developers/oauth-token-management) · [Custom integrations](/developers/custom-integrations) # OAuth token management Source: https://flexforms.bjanczak.com/developers/oauth-token-management OAuth redirect and callback routes, OAuthTokenManager lifecycle, refresh, and encrypted credential storage. Flex Forms owns the OAuth **redirect/callback** loop so your driver code stays focused on API calls. Tokens are stored encrypted on `flex_form_integration_connections` and refreshed automatically before dispatch when possible. ## Routes | Method | Path | Name | Purpose | | - | - | - | - | | GET | `/flex-forms/connections/oauth/redirect/{connection}` | `flex-forms.connections.oauth.redirect` | Start authorize flow for a connection | | GET | `/flex-forms/connections/oauth/callback` | `flex-forms.connections.oauth.callback` | Provider redirects here with `code` | Both routes use the `web` + `auth` middleware stack — only logged-in Filament users can connect accounts. ### Redirect `{connection}` is the `FlexFormIntegrationConnection` ID (draft or reconnect). The controller: 1. Loads the connection's `driver_key` and resolves the driver 2. Builds the provider authorize URL (scopes, encrypted OAuth state with one-time nonce, **PKCE S256** `code_challenge` when the driver enables PKCE — default on for `GenericOAuthIntegrationDriver`) 3. Redirects the admin browser to the provider Register the callback URL in your OAuth app exactly as: ``` https://your-app.test/flex-forms/connections/oauth/callback ``` Use your real production hostname in the provider console — wildcards are rarely accepted. ### Callback The callback route: 1. Validates encrypted `state` + one-time nonce (and initiating user id) 2. Exchanges `code` for tokens — includes `code_verifier` when PKCE was used on redirect 3. Persists tokens via `OAuthTokenManager` 4. Sets connection `status` to `connected`, clears `last_error` 5. Redirects back to **Integrations → Connections** (`?tab=connections` — fixed admin URL, never an open redirect) Errors (denied consent, invalid code, missing PKCE verifier) mark the connection `needs_reauth` with `last_error` text admins can read in Studio. ### PKCE `GenericOAuthIntegrationDriver` enables PKCE by default (`usesPkce(): true`): * Redirect stores a high-entropy `code_verifier` in cache with the OAuth nonce * Authorize URL includes `code_challenge` + `code_challenge_method=S256` * Token exchange posts `code_verifier` Override `usesPkce(): false` only for legacy providers that reject PKCE. ## OAuthTokenManager Central service for token lifecycle: ```php theme={} use Bjanczak\FilamentFlexForms\Integrations\OAuth\OAuthTokenManager; use Bjanczak\FilamentFlexForms\Models\FlexFormIntegrationConnection; $manager = app(OAuthTokenManager::class); // Read (auto-refresh if expired within skew window) $accessToken = $manager->accessToken($connection); // After callback $manager->storeTokens($connection, [ 'access_token' => '…', 'refresh_token' => '…', 'expires_at' => now()->addHour(), ]); // Force refresh (dispatch retry, admin "Test connection") $manager->refresh($connection); ``` Design rules: * **Never** log raw tokens * Refresh uses the driver's `oauthConfig()` token URL and client credentials from global integration config * Missing refresh token → connection marked `reconnect_required`; admin must run redirect again ## Encrypted storage `FlexFormIntegrationConnection` casts `credentials` as `encrypted:array`. At rest you store: ```json theme={} { "access_token": "…", "refresh_token": "…", "expires_at": "2026-08-12T10:00:00+00:00", "scope": "read write" } ``` Laravel uses your app `APP_KEY` — rotating `APP_KEY` without re-encrypting breaks stored credentials. Plan key rotation with a maintenance window and force reconnect. Non-secret `meta` (account ID, hub ID, workspace name) lives in the plain `meta` JSON column for Studio labels. ## Health and testing * **Test connection** on a Connection row calls `OAuthTokenManager::accessToken()` then the driver's `testConnection()` with resolved auth. * Failed refresh surfaces in `last_error` and blocks dispatch until reconnect. * Queue workers use the same manager — no separate token cache that could desync. Treat OAuth client secrets like production database passwords. Store them in global integration config (encrypted settings row) or env — not in form feed JSON. **Next:** [OAuth integrations](/developers/oauth-integrations) · [Custom integrations](/developers/custom-integrations) · [Config & env](/developers/config-env) # OpenAPI beacon Source: https://flexforms.bjanczak.com/developers/openapi-beacon The analytics beacon endpoint that powers Insights — request contract, allowed event types, and rate limits. Every fill page (direct link, embed, or popup) sends batched analytics events to a single endpoint. This is what powers [Reading Insights](/guides/reading-insights) — you generally never call it directly, but it's useful to understand if you're debugging traffic numbers or building a custom fill client. This endpoint is also published as OpenAPI — open the interactive playground to send a real request against your app. ## Request Route throttle 60 requests/minute per client, plus a per-form × IP event budget (default 120 events/minute). `web` middleware, no auth required (public fill pages are anonymous). Only **active** forms accept events. A UUID identifying the visitor's fill session. Numeric form ID. Either this or `form_slug` is required. The form's public slug, if `form_id` isn't known client-side. 1–20 event objects per batch. ### Event object One of: `visit_start`, `page_view`, `page_leave`, `field_interact`, `started_answering`, `submit`, `heartbeat`. Which page/block the event refers to. ISO timestamp within **now − 5 minutes … now + 2 minutes**. Outside that window the batch is rejected (422). Omitted timestamps use server time. 0 to 86,400,000 (24h ceiling). Parsed client hints, sent as plain strings. ISO-2 country code and city, when geo IP resolution is enabled. Standard UTM parameters captured from the visit. A hashed key used to de-duplicate a respondent across events without exposing PII. ```json title="Request body" theme={} { "form_slug": "contact-us", "session_id": "6f1e2c2a-9b3d-4e6a-8b2b-9d7c0a1e2f33", "events": [ { "event": "visit_start", "occurred_at": "2026-08-01T14:00:00Z" }, { "event": "page_view", "page_id": "page_1" }, { "event": "field_interact", "block_id": "email_field" }, { "event": "submit", "duration_ms": 42311 } ] } ``` ```bash title="curl" theme={} curl -X POST "https://your-app.test/flex-forms/analytics/beacon" \ -H "Content-Type: application/json" \ -d '{ "form_slug": "contact-us", "session_id": "6f1e2c2a-9b3d-4e6a-8b2b-9d7c0a1e2f33", "events": [{ "event": "page_view", "page_id": "page_1" }] }' ``` ## Response `true` when the batch was accepted and queued for processing. Number of events accepted from the batch. ```json theme={} { "ok": true, "queued": 4 } ``` ```json theme={} { "message": "Invalid analytics payload.", "errors": { "form_id": ["A form_id or form_slug is required."] } } ``` ```json theme={} { "message": "Form not found." } ``` ```json theme={} { "message": "Too many analytics events." } ``` Events are queued for asynchronous processing (`RecordAnalyticsEventsJob`) — a `200` response means the batch was accepted, not that Insights has been recomputed yet. Bot/crawler traffic is flagged and excluded from Insights KPIs during processing, not at ingestion time. This endpoint intentionally accepts unauthenticated requests from any public fill page. Don't rely on it as a general-purpose event pipe for your own app — it only accepts the fixed event vocabulary above, scoped to an active form. **Next:** [Reading Insights](/guides/reading-insights) · [Public Insights URLs](/developers/public-insights) · [Config & env](/developers/config-env) # Post-submit actions Source: https://flexforms.bjanczak.com/developers/post-submit-actions Run server-side logic after a completed submission — integration feeds, queued jobs, listeners, and pipeline-adjacent hooks. "Post-submit" means anything that happens **after** a respondent finishes a form (not partial save). Flex Forms runs side effects in a predictable order so you can choose the lightest hook. ```mermaid theme={} sequenceDiagram participant Fill as Fill page participant Pipe as Submission pipeline participant DB as Database participant EVT as FormSubmissionCompleted participant FX as FinalizeSubmissionSideEffectsJob participant INT as Integration feeds participant PSA as Post-submit actions Fill->>Pipe: POST answers Pipe->>DB: Persist submission DB->>EVT: afterCommit event Note over EVT: Host listeners (may queue) DB->>FX: Queue finalize job FX->>INT: Dispatch enabled feeds FX->>PSA: Ordered Studio actions (sync handle) ``` ## Choose the right hook | Approach | Best for | Runs | | - | - | - | | **Integration feed** | CRM, email, webhook, spreadsheet | Queued finalize job; retries + delivery log | | **`FormSubmissionCompleted` listener** | App-specific workflows (Slack internal, ERP) | After persist, **before** integrations; use `ShouldQueue` on the **listener** | | **Studio post-submit action** | Ordered thank-you actions | Sync `handle()` inside finalize job — do **not** implement `ShouldQueue` on the action class | | **Custom driver `dispatch()`** | Reusable productized outbound API | With other feeds; recorded in delivery table | | **Submission pipeline middleware** | Block or mutate **before** save | Synchronous during submit — not post-submit | Partial submissions (`save later`) skip full post-submit integrations unless a feed explicitly allows partials. Completed submissions always run the finalize job. `FormSubmissionCompleted` fires before integrations. If your listener needs CRM side effects to have finished, listen for `IntegrationDispatchSucceeded` instead. ## Integration feeds (built-in post-submit) Configure under **Form → Integrations** in Studio. Each feed: * Normalizes answers (optionally through [field mapping](/developers/field-mapping)) * Respects conditional feed rules — [Conditional feeds](/integrations/conditional-feeds) * Records success/failure for inbox replay No-code options: [Webhooks](/integrations/webhooks), [Zapier](/integrations/zapier), CRM catalog under [Integrations](/integrations/overview). ## Queued listener example ```php theme={} use Bjanczak\FilamentFlexForms\Events\FormSubmissionCompleted; use Illuminate\Contracts\Queue\ShouldQueue; final class CreateHelpDeskTicket implements ShouldQueue { public function handle(FormSubmissionCompleted $event): void { if ($event->form->slug !== 'support') { return; } // HelpDeskApi::createTicket(…) } } ``` Register with `Event::listen` or Laravel discovery. Use a dedicated queue name (`integrations`) in production. ## Custom post-submit driver When multiple forms share the same outbound system, implement a driver ([Custom integrations](/developers/custom-integrations)) instead of duplicating listeners: * Admins configure feeds in Studio * Deliveries appear in the integration log with replay * OAuth Connections supply auth — [OAuth integrations](/developers/oauth-integrations) ## Idempotency and retries Post-submit actions should tolerate duplicate delivery attempts: * Key external creates on `submission_id` * Use `IntegrationDispatchSucceeded` / `IntegrationDispatchFailed` for alerting, not primary business logic * Replay from the admin UI re-runs `dispatch()` with the same submission snapshot ## What not to do Avoid long synchronous HTTP in pipeline middleware when the work can wait — it blocks the respondent. Prefer feeds or queued listeners. * Do not use Eloquent observers on `FlexFormSubmission` — see [Events & hooks](/developers/events-hooks) * Do not assume `sync` queue in production — run a worker **Next:** [Events & hooks](/developers/events-hooks) · [Webhooks](/developers/webhooks) · [Field mapping](/developers/field-mapping) # Public Insights URLs Source: https://flexforms.bjanczak.com/developers/public-insights The share-token routes behind Share Insights — request shape, password auth, and the JSON response. Every [Share Insights](/guides/share-insights) link resolves to a token-scoped route that renders an HTML report by default, or JSON with `?format=json` / an `Accept: application/json` header. ## Routes
MethodPathPurpose
GET/flex-forms/insights/share/Render the shared report (HTML or JSON)
POST/flex-forms/insights/share//unlockSubmit a password to unlock a protected share for the current session
Both routes are rate-limited (60 requests/minute) and public — no auth token or cookie is required beyond the share token itself and, if set, the password. ```bash title="Fetch a JSON payload" theme={} curl "https://your-app.test/flex-forms/insights/share/TOKEN?format=json&range=30d" ``` ```bash title="Unlock a password-protected share" theme={} curl -X POST "https://your-app.test/flex-forms/insights/share/TOKEN/unlock" \ -H "Content-Type: application/json" \ -d '{"password": "the-password"}' ``` ```bash title="Or pass the password directly on a JSON GET" theme={} curl "https://your-app.test/flex-forms/insights/share/TOKEN?format=json" \ -H "X-Insights-Password: the-password" ``` A preset range key (e.g. `7d`, `30d`) or use with `from`/`to` for a custom range. Custom range start (ISO date), used together with `to`. Custom range end (ISO date). The same Insights filter shape used in the Filament panel (device, country, referrer, UTM, …). `token`, `allowed_tabs` (subset of `answers`/`visits`/`dropoffs`), `expires_at`, `password_protected`. `id` and `name` of the source form. Only the KPIs relevant to `allowed_tabs` are populated — everything else is zeroed/emptied server-side, not just hidden client-side. ```json theme={} { "kpis": { "visits": 0, "starts": 0, "submissions": 128, "conversion_rate": 0 }, "answers": [ { "field_key": "plan", "label": "Which plan?", "kind": "choice", "answers_count": 128 } ], "series": [], "breakdowns": { "devices": [], "browsers": [], "countries": [] }, "funnel": [], "share": { "token": "TOKEN", "allowed_tabs": ["answers"], "expires_at": null, "password_protected": false }, "form": { "id": 42, "name": "Customer feedback" } } ``` Passwords are never accepted via the query string — only a JSON/form body field, the `X-Insights-Password` header, or an `Authorization: Bearer` header. Failed attempts are rate-limited per token + IP and return `429` once exceeded. An invalid or expired token always returns `404` — Flex Forms does not distinguish "wrong token" from "expired token" in the response, to avoid leaking which is the case. Yes, for the browser session that unlocked it (cookie-based). A fresh `curl` request or a different session must supply the password again. Yes — the JSON shape is stable per allowed tab; poll it on an interval or fetch it server-side and cache it yourself. **Next:** [Share Insights](/guides/share-insights) · [Reading Insights](/guides/reading-insights) · [OpenAPI beacon](/developers/openapi-beacon) # Query params Source: https://flexforms.bjanczak.com/developers/query-params Prefill fields from your host page's URL on embed and popup routes, plus the reserved embed flags. Any query string parameter whose key matches a field's **name** on the form prefills that field — no configuration needed on the form itself. This works on the `embed` and `popup` routes; the plain (non-embed) fill link does not read prefill params. ```mermaid theme={} flowchart LR Url[Host_page_URL] --> Query[Query_string] --> Match{Key_matches_a_field_name} Match -->|Yes_and_not_reserved| Prefill[Field_prefilled] Match -->|Reserved_key| Skip[Used_for_embed_behavior_instead] Match -->|No_match| Ignore[Ignored] ``` ```html title="Prefill email + a UTM-style field from the host page" theme={} ``` ```js title="Building the URL from your own page's UTM params" theme={} const url = new URL('https://your-app.test/forms/demo-request/embed'); const params = new URLSearchParams(window.location.search); ['utm_source', 'utm_medium', 'utm_campaign', 'plan'].forEach((key) => { if (params.has(key)) url.searchParams.set(key, params.get(key)); }); document.querySelector('iframe[data-flex-form-src]').dataset.flexFormSrc = url.toString(); ``` The field's **name** is the internal machine name you see in Studio field settings — not its display label. Only scalar (string) values are accepted; anything else is ignored. ## Reserved keys These keys always control embed behavior and are never treated as field names, even if a field happens to share the name:
KeyPurpose
hideTitleHide the form title
alignLeftLeft-align content
transparentBackgroundTransparent iframe background
dynamicHeightAuto-resize the iframe to content height
previewRequest preview mode (requires a valid signed URL or authenticated Studio viewer; otherwise ignored / draft stays 404)
popupInternal popup-routing flag
formEventsForwardingForward fill lifecycle events via postMessage
Prefill values arrive as plain query-string text with no server-side validation against the field's own rules until the respondent submits — treat prefill as a convenience, not a trusted input channel. Never rely on it to pass secrets or values you haven't sanitized on your own page first. Want UTM values to also show up in [Insights → Visits](/guides/reading-insights) rather than just prefilling a field? Those are captured automatically from the visit's referrer/query string by the analytics beacon — no extra wiring needed. Prefill-from-query only runs for the embed and popup routes (`isEmbed` in the fill component). If you need prefill on a direct link, wrap it in a Standard embed instead. Yes — a field can be prefilled and simultaneously hidden via [Logic](/guides/logic-and-calculated), which is a common pattern for tagging submissions with a UTM source without showing it to the respondent. Yes, as long as the query value exactly matches one of the field's option values. **Next:** [Embed widget API](/developers/embed-api) · [Embed on any platform](/guides/embed-platforms) · [Logic & calculated fields](/guides/logic-and-calculated) # Studio permissions (RBAC) Source: https://flexforms.bjanczak.com/developers/studio-permissions Optional Spatie / Gate roles for every Studio action — create, edit, publish, export, Insights, Contacts, integrations, and more. Flex Forms Studio ships with enterprise RBAC. **Spatie Permission is optional** — you never have to install it. Without it (or before you seed permission rows), authenticated panel users keep full Studio access, exactly as before. Every sensitive action is enforced on the **server** (Livewire, policies, export routes). The UI only hides buttons so teammates never see actions they cannot perform. *** ## What you can gate | Area | Examples | | - | - | | Forms | View list, open Studio, create, rename, duplicate, delete, publish, design uploads | | Submissions | View inbox, delete one / bulk, export CSV | | Contacts | View directory, delete, export | | Transactions | View payment ledger, export CSV, refund | | Insights | View analytics, share links, export events | | Integrations | Open rail, change configs | | Workspace | Global Settings, Support, Global Stats | Permission names default to Filament Guardian style (`Create:FlexForm`, `Export:FlexFormSubmission`, …). Remap them in config if your Shield / custom roles use different strings. **Multi-admin hosts:** Without Spatie permission rows or an `authorize` callback, every authenticated panel user keeps full Studio access on the **server** (BC default). The Studio UI fails closed for missing permission keys in the bootstrap payload. For teams with more than one admin, configure Spatie / Shield (or `FilamentFlexFormsPlugin::authorizeAbilityUsing`) and consider `FLEX_FORMS_PERMISSIONS_STRICT=true` so missing grants deny instead of allow. *** ## Three ways to authorize Install [`spatie/laravel-permission`](https://github.com/spatie/laravel-permission) if you want it, seed the mapped permission names, and assign them to roles. Flex Forms only enforces a Spatie name **after that permission exists in your database**. Until you seed Flex Forms permissions, nothing locks out your team (safe rollout). ```bash theme={} # Optional — turn the Spatie path off entirely FLEX_FORMS_PERMISSIONS_SPATIE=false ``` Best for multi-tenant apps — decide per user / form without Spatie: ```php theme={} use Bjanczak\FilamentFlexForms\FilamentFlexFormsPlugin; use Bjanczak\FilamentFlexForms\Support\Permissions\StudioAbility; FilamentFlexFormsPlugin::make() ->authorizeAbilityUsing(function (StudioAbility $ability, $user, $form): ?bool { if ($ability === StudioAbility::ManageSettings) { return $user->isAdmin(); } // null = continue to Spatie / default allow return null; }); ``` Same idea via `config/filament-flex-forms.php`: ```php theme={} 'permissions' => [ 'authorize' => fn ($user, $ability, $form) => /* ?bool */, ], ``` *** ## Strict mode (SaaS fail-closed) When you need “deny unless explicitly allowed”: ```bash theme={} FLEX_FORMS_PERMISSIONS_STRICT=true ``` Then every ability must pass your authorize callback **or** a registered Spatie/Gate permission. Missing both → deny. Turn the whole system off (every authenticated user allowed): ```bash theme={} FLEX_FORMS_PERMISSIONS_ENABLED=false ``` *** ## Resolution order 1. Guest → deny 2. `permissions.enabled = false` → allow authenticated 3. Plugin / config `authorize` callback (non-null wins) 4. Optional Spatie/Gate name **if that permission row exists** 5. Default allow — unless `strict` Bootstrap payloads include a full `permissions` map so Studio React can hide Create, Publish, Export, and rail items in one shot — with request-level memoization so checks stay cheap. ### Transactions (Spatie / Shield names) | Studio ability | Default Gate / Spatie name | | - | - | | `viewTransactions` | `ViewAny:FlexFormTransaction` | | `exportTransactions` | `Export:FlexFormTransaction` | | `refundTransactions` | `Refund:FlexFormTransaction` | Seed those rows (or remap in `config/filament-flex-forms.php` → `permissions.map`) and assign them to roles. Until they exist in the DB, the optional Spatie path stays open (BC); with `FLEX_FORMS_PERMISSIONS_STRICT=true` missing grants deny. **Also see:** [Config & env](/developers/config-env) · [Access gates (respondent security)](/guides/access-gates) · [Installation](/get-started/installation) · [Stripe](/integrations/stripe) # Upload disks Source: https://flexforms.bjanczak.com/developers/upload-disks Two disks, two visibility models — design assets are public, submission files are private and signed. Flex Forms deliberately splits uploads across **two disks** with opposite visibility defaults, because they serve opposite purposes. ```mermaid theme={} flowchart TD Upload{What_is_uploaded} -->|Logo_cover_social| Design[design_disk_public] Upload -->|Respondent_file_field| Sub[submissions_disk_private] Design --> Crawler[Readable_by_crawlers_link_previews] Sub --> Signed[Served_via_signed_URL_only] Signed --> Ttl[Expires_after_signed_url_ttl_minutes] ```
Design assetsSubmission uploads
Config keyuploads.design\_diskuploads.submissions\_disk
Default diskpubliclocal
VisibilityPublic — crawlers need to read OG imagesPrivate — served via time-limited signed URLs
Directoryflex-forms/designflex-forms/submissions
Used forLogo, cover image, social/OG imageAny file-upload field a respondent fills in
If your app already has `public` and `local` disks configured (the Laravel default), no changes are needed. Set `FLEX_FORMS_DESIGN_DISK` and/or `FLEX_FORMS_SUBMISSIONS_DISK` to any disk name defined in `config/filesystems.php` — S3, DigitalOcean Spaces, or your own driver. `FLEX_FORMS_SIGNED_URL_TTL` (minutes, default 15) controls how long a link to a private submission file stays valid before it needs to be re-signed. `FLEX_FORMS_QUOTA_BYTES_PER_FORM` (default 500 MB) caps total storage per form across all submissions — uploads beyond the quota are rejected. Set `uploads.authorize` to a callback and `FLEX_FORMS_REQUIRE_AUTHORIZE=true` so a panel user can only view/upload files for forms they actually own — full recipe: [Multi-tenancy](/developers/multi-tenancy) · [Config & env](/developers/config-env). ```bash title=".env — S3 for both disks" theme={} FLEX_FORMS_DESIGN_DISK=s3 FLEX_FORMS_SUBMISSIONS_DISK=s3-private FLEX_FORMS_DESIGN_VISIBILITY=public FLEX_FORMS_SUBMISSIONS_VISIBILITY=private ``` ```php title="config/filesystems.php — a dedicated private disk" theme={} 'disks' => [ 's3-private' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_SUBMISSIONS_BUCKET'), 'visibility' => 'private', ], ], ``` ## Orphan cleanup Interrupted uploads (a failed atomic commit, an abandoned multi-page fill) can leave unreferenced blobs behind. A scheduled command prunes them automatically based on age:
SettingDefaultWhy
design\_orphan\_ttl\_minutes120Design uploads are quick; short grace period
submission\_orphan\_ttl\_minutes1440 (24h)A respondent may leave a multi-page fill mid-way and return later
```bash title="Runs hourly via the scheduler — no manual setup needed" theme={} php artisan flex-forms:prune-design-orphans ``` Do not point `submissions_disk` at a publicly readable bucket/ACL — respondent uploads (IDs, contracts, photos) are only meant to be reachable through the package's signed-URL controller, which enforces the TTL and, when configured, your `uploads.authorize` callback. ## Image variants Uploaded **images** are optimized automatically (never upscaled). Non-image field uploads stay as a single original file.
AssetVariantsLimits
Covernormal + thumb (WebP)normal max 1500px long edge; thumb max 400px
Logosingle (WebP)fit in a 500×500 box
Social / OGsingle (JPEG)center-crop 16:9, max 1500px long edge
Field upload — imagenormal + thumb (WebP)normal max 1500px; thumb max 350px
Field upload — othersingle originalPDF, video, audio, documents — no image pipeline
Default WebP quality is **80** (`FLEX_FORMS_WEBP_QUALITY`). Schema keys such as `cover_path` / `cover_url` always point at the **normal** file; thumbs are derived beside it. ## Optional Spatie Media Library Flex Forms stores files on disk by default. If your app already uses [spatie/laravel-medialibrary](https://github.com/spatie/laravel-medialibrary), you can make Spatie the **primary** media driver: ```bash theme={} composer require spatie/laravel-medialibrary # publish & run Spatie migrations as usual for your app ``` ```bash title=".env" theme={} FLEX_FORMS_MEDIA_DRIVER=spatie # optional: # FLEX_FORMS_SPATIE_DISK= # FLEX_FORMS_SPATIE_COLLECTION_PREFIX=flex-forms # FLEX_FORMS_SPATIE_RESPONSIVE=true # FLEX_FORMS_SPATIE_QUEUE_CONVERSIONS=false ``` When `FLEX_FORMS_MEDIA_DRIVER=spatie` **and** Media Library is installed: * Design assets and respondent uploads are stored as Spatie media (schema paths use `ffmedia:{uuid}` tokens; URLs come from Spatie conversions). * Images get native Spatie conversions (`normal` / `thumb`) with **Fit::Max** (never upscale), WebP quality from config, then the **original is deleted**. * Cover + field `normal` conversions can generate **responsive image** srcsets (`FLEX_FORMS_SPATIE_RESPONSIVE`, default on). * Social / OG images are cropped to 16:9 without upscale before attach (JPEG for crawlers). * Non-image field uploads stay a single original (no conversions). * Form delete / purpose clear **purge** Spatie media collections. If Media Library is missing or the driver is `disk`, Flex Forms keeps the built-in disk pipeline — no Global Settings UI is required. Yes, as long as visibility is handled correctly — Flex Forms writes design assets as public and submissions as private regardless of whether they share a physical disk, but using two disks makes bucket-level policies simpler to reason about. Logo fits in 500×500, cover normal ≤1500px (thumb ≤400px), social/OG ≤1500px at 16:9 JPEG, and respondent images ≤1500px (thumb ≤350px). Smaller images are never upscaled. **Next:** [Config & env](/developers/config-env) · [Design & branding](/guides/design-pro) · [Webhooks](/developers/webhooks) # Webhooks Source: https://flexforms.bjanczak.com/developers/webhooks Outbound HTTPS payload shape, headers, merge tags, and the SSRF protections on every webhook feed. The **Webhooks** integration sends a completed (or, if configured, partial) submission to any HTTPS endpoint you control — method, body format, headers, and field mapping are all configurable per form, with SSRF protection built in. ```mermaid theme={} flowchart LR Submit[Submission_completed] --> Notifier[FormSubmissionNotifier] Notifier --> Manager[IntegrationManager] Manager --> Driver[WebhooksDriver] Driver --> Guard[WebhookUrlGuard_sanitize] Guard -->|Safe| Send[HTTPS_request_sent] Guard -->|Unsafe| Fail[Dispatch_failed_no_request_sent] ``` ## Configure a feed On a form, add a **Webhooks** feed from the integrations panel. HTTPS only. Supports `{{field_name}}` merge tags for dynamic paths (e.g. `https://example.com/hooks/{{plan}}`). `POST` (default), `GET`, `PUT`, `PATCH`, or `DELETE`. `POST`/`PUT`/`PATCH` send `json` or `form` (`application/x-www-form-urlencoded`) bodies; `GET`/`DELETE` always send data as query params. One `HEADER=value` per line. Values support the same `{{field_name}}` merge tags. `Host`, `Content-Length`, and `Transfer-Encoding` are always stripped for transport safety. **All fields** sends every answer keyed by field name, optionally with submission meta (`form_id`, `form_title`, `submission_id`, `submitted_at`). **Select fields** sends only the `KEY=field_name` (or literal) pairs you list. ## Payload shape ```http title="POST — all fields, JSON" theme={} POST /hooks/inbound HTTP/1.1 Host: example.com Content-Type: application/json User-Agent: FilamentFlexForms-Webhooks/1.0 { "full_name": "Jane Doe", "email": "jane@acme.com", "plan": "enterprise", "form_id": "42", "form_title": "Demo request", "submission_id": "1091", "submitted_at": "2026-08-01T14:03:00+00:00" } ``` ```http title="POST — select fields, FORM body" theme={} POST /hooks/inbound HTTP/1.1 Content-Type: application/x-www-form-urlencoded email=jane%40acme.com&name=Jane+Doe&source=flex-forms ``` ```http title="GET — data appended to the query string" theme={} GET /hooks/inbound?email=jane%40acme.com&plan=enterprise HTTP/1.1 ```
Field type in payloadSerialized as
Text / choice / numberIts scalar value, stringified
Boolean"1" / "0"
File uploadOriginal filename (or URL/path if no name is available)
Multi-select / arrayComma-joined string of scalar values
## SSRF protection Every resolved URL — after merge-tag interpolation — is validated before a request is sent: Only `https://` is accepted, on port `443` or `8443`. Any other scheme or port is rejected. URLs containing a userinfo component (`https://user:pass@host/...`) are rejected outright. `localhost`, `*.local`, `*.localhost`, cloud metadata hosts (`metadata.google.internal`, `kubernetes.default`, …), and any hostname or literal IP that resolves to a private/reserved range (RFC1918, loopback, link-local) are rejected. A hostname's resolved A/AAAA records are checked at sanitize time — a public-looking hostname that resolves to a private IP is still blocked. Immediately before the HTTPS request, Flex Forms re-resolves and, when curl is available, pins those public IPs via `CURLOPT_RESOLVE` so the connect prefers the audited addresses. If the resolved URL fails validation, the webhook dispatch fails immediately with **"Webhook URL rejected"** — no request is ever sent to a disallowed host. This applies even when the base URL is set via a `{{merge_tag}}` that resolves to something unsafe at submit time. **Residual TOCTOU:** Pinning reduces DNS-rebinding risk but cannot eliminate a theoretical race between the second resolve and the TCP handshake if an authoritative DNS answer changes in that window. Prefer allowlisted, stable HTTPS endpoints you control. Need typed, versioned events instead of a raw generic payload? Most CRMs, spreadsheets, and Slack are available as first-class [integrations](/integrations/overview) — reach for a generic webhook when you're posting to your own backend or an automation tool without a dedicated Flex Forms integration. **Next:** [Integrations overview](/integrations/overview) · [Emails & PDF](/guides/emails-and-pdf) · [Config & env](/developers/config-env) # Address Autocomplete Block Source: https://flexforms.bjanczak.com/features/blocks/address-autocomplete Structured addresses via Mapbox search. Requires a ready [Mapbox](/integrations/mapbox) connection under left-rail **Integrations**. The **Address autocomplete** block (`address_autocomplete`) suggests places as the respondent types and stores a structured address. Related: [Map](/features/blocks/map). See the [Blocks overview](/features/blocks/overview) for the full catalog. # Audio Block Source: https://flexforms.bjanczak.com/features/blocks/audio Audio media field for uploads or playback. The **Audio player** / audio field (`audio`) handles audio media. For in-browser recording, use [Voice note](/features/blocks/voice-note). See the [Blocks overview](/features/blocks/overview) for the full catalog. # Flex Checklist Block Source: https://flexforms.bjanczak.com/features/blocks/checkbox Multi-select checklist — Studio catalog label: Flex checklist (`flex_checklist`). In Studio this block is **Flex checklist**. Answers are always a JSON array, even for a single selection. The **Flex checklist** block shows every option on screen and allows any combination — ideal for “select all that apply”. ## Business Use Cases "I agree to the Terms of Service" and "I agree to the Privacy Policy" (using exact selections). "Which dietary requirements do you have?" (e.g., Vegan, Gluten-Free, Halal). "Select your top 3 favorite tools" (enforcing a max selection of 3). *** ## Configuration & Usage Drag the **Checkboxes** block from the Component Catalog onto the Canvas. Add your options (Values and Labels). If you ask "Select your top 3 features," use the Inspector to set the **Max Selections** and **Min Selections** to exactly 3. *** ## Technical Configuration Schemas The size of the checkboxes and accompanying text. Available options are `sm`, `md`, and `lg`. An associative array mapping option keys to Heroicon names, displaying an icon next to specific checkboxes. An associative array mapping option keys to secondary description strings, adding sub-text below specific checkboxes. The list of checkbox options, defined as key-value pairs (Value and Label). An array of option keys that should be rendered as disabled (grayed out and unclickable). Strict validation rule enforcing the minimum number of checkboxes the user must tick. Strict validation rule enforcing the maximum number of checkboxes the user is allowed to tick. Strict validation rule enforcing an exact required number of selections (e.g., "Select exactly 3"). *** ## Data Payload Architecture The selected checkboxes are saved as a JSON **array** of strings representing the keys (values) of the ticked boxes. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_611", "data": { "dietary_restrictions": ["vegan", "gluten_free"], "consent_agreed": ["tos_2024"] } } ``` ```php Database Storage (PHP) theme={} [ 'dietary_restrictions' => ['vegan', 'gluten_free'], 'consent_agreed' => ['tos_2024'], ] ``` *** ## Deep Dive: Validation Control Checkboxes are prone to bad data if left unchecked. If you ask "What are your 2 favorite colors?", a user could easily click all 10 options just to get through the form faster. By using the **Exact Selections** or **Max Selections** validation rules, the form will literally lock down and physically prevent the user from clicking a 3rd box, flashing an error state until they correct their behavior. This guarantees your data matches your intent. *** ## Best Practices & FAQs If your list of Checkboxes exceeds 10 items, it creates a massive wall of text that is intimidating to users. At that scale, switch to a [Dropdown](/features/blocks/dropdown) with **Multiple** enabled to condense the interface into a searchable menu. **Next Steps:** [Dropdown](/features/blocks/dropdown) · [Multiple Choice](/features/blocks/multiple-choice) # Choice Cards Block Source: https://flexforms.bjanczak.com/features/blocks/choice-cards Single-select options as visual cards. The **Choice cards** block (`choice_cards`) shows mutually exclusive options as cards with optional icons and descriptions. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Choice Checkbox Cards Block Source: https://flexforms.bjanczak.com/features/blocks/choice-checkbox-cards Multi-select options as visual cards. The **Choice checkbox cards** block (`choice_checkbox_cards`) allows multiple selections presented as cards. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Color Swatch Block Source: https://flexforms.bjanczak.com/features/blocks/color Pick a color from swatches. The **Color swatch** block (`color`) lets respondents pick from predefined swatches. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Color Picker Block Source: https://flexforms.bjanczak.com/features/blocks/color-picker Free-form color picker control. The **Color picker** block (`flex_color_picker`) opens a full picker for custom colors. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Content Blocks Source: https://flexforms.bjanczak.com/features/blocks/content Plain text (display) and Rich text (answers) — pick the right content block. Flex Forms separates **display copy** from **answerable rich text**: Instructions and body copy on the form. Not stored as an answer. WYSIWYG answer field for formatted respondent input. # Country Selector Block Source: https://flexforms.bjanczak.com/features/blocks/country A fast, optimized country selection dropdown with native flag support and internationalization options. 💡 **UX Tip:** Enable `browser_locale_sort_first` to magically float the user's home country to the top of the list! The **Country** block is a specialized dropdown that automatically handles the list of 195+ global countries. It eliminates the need for you to manually build a massive list of options, and provides built-in search, flags, and international dialing codes out of the box. ## Business Use Cases Determine which country the user wants an item shipped to, restricting access to unsupported regions. Collect clean, standardized nationality data for your analytics dashboards. Determine if a user resides in the EU to automatically trigger GDPR compliance flows. *** ## Configuration & Usage Drag the **Country** block from the Component Catalog onto the Canvas. If most of your users are from a specific region, configure the **Default Country** (e.g., `US` or `GB`) so they don't have to scroll to find themselves. Scrolling through 195 items is tedious on mobile. Always toggle the **Searchable** switch on so users can just type "Canada". *** ## Technical Configuration Schemas The visual size of the country dropdown. Available options are `sm`, `md`, and `lg`. The visual style variant of the field. Displays the 2-letter ISO country code (e.g., "US") next to the country name in the dropdown list. Displays the international dialing prefix (e.g., "+1") next to the country name in the dropdown list. If enabled, users can search for a country by typing its name in a search bar within the dropdown list. Attempts to automatically select the default country based on the user's browser language or geolocation settings. Pins the country corresponding to the user's browser locale to the very top of the dropdown list for easy access. The ISO 3166-1 alpha-2 country code (e.g., `US`, `GB`) selected by default. An array of allowed country codes. When provided, the dropdown will only show these specific countries (whitelist). An array of country codes to hide from the dropdown (blacklist). *** ## Data Payload Architecture The Country block guarantees that no matter what the user sees on their screen (in their local language), your database receives the exact, pristine **ISO 3166-1 alpha-2** code. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_332", "data": { "shipping_country": "US", "nationality": "PL" } } ``` ```php Database Storage (PHP) theme={} [ 'shipping_country' => 'US', 'nationality' => 'PL', ] ``` *** ## Deep Dive: Data Standardization Why don't we just use a regular Dropdown and let users type their country? If you let users type, they will write "United States", "USA", "U.S.A", and "America". When you try to sync this data to HubSpot or another CRM, the integration can fail because those systems expect exactly `US`. **Integration Ready:** By outputting standardized ISO codes, the Country block maps cleanly into CRM and marketing tools that expect `US`, `PL`, `DE`, and similar codes. *** ## Best Practices & FAQs If you are building an order form but only ship to North America, use the **Countries** array to whitelist just `US`, `CA`, and `MX`. This physically prevents users from other regions from submitting an order you cannot fulfill. Flags are rendered natively by the operating system using standard emoji tables. If a flag appears as letters (like `US` instead of 🇺🇸), it means the user's operating system (like some versions of Windows) does not support flag emojis natively. **Next Steps:** [Map & Address Block](/features/blocks/map) # Credit Card Block Source: https://flexforms.bjanczak.com/features/blocks/credit-card Collect card-number style inputs for reference — not a payment gateway. **Not a payment processor.** This block only captures card-like fields into *your* submission payload. For real charges, connect [Stripe](/integrations/stripe) and add the **Stripe Payment** block (Payment Element). The **Credit card** block (`credit_card`) is an input UI for collecting card details when you need them for offline processing or a custom backend — for example last-four display in Submissions. ## Security * Treat stored values as **sensitive PII**. Prefer private disks and strict access policies. * Do **not** use this block as a substitute for a PCI-compliant payment form. * In **Submissions**, the table shows only the last four digits. Opening the answer asks you to confirm, then shows the full card number, name, and expiry. CVV is never shown in Studio. ## Configuration Drag **Credit card** from the catalog onto the canvas only if you truly need card-number capture. Collect only what your process requires. Prefer asking for last four + brand elsewhere when full PAN is unnecessary. Related: [Access & security](/features/settings/access) · [File upload](/features/blocks/file-upload) # Currency Block Source: https://flexforms.bjanczak.com/features/blocks/currency Collect money amounts with ISO currency codes and minor-unit storage. Prefer **Currency** over Number whenever the answer is money. Amounts are stored in **minor units** (e.g. cents) for clean math and CRM mapping. The **Currency** block (`currency`) collects a monetary amount. You can lock a single ISO currency or let respondents pick from an allowed list. ## Configuration Drag **Currency** from the Number category onto the canvas. Choose the default ISO code (for example `PLN`, `USD`, `EUR`) and optional min/max in major units. Enable a currency picker when respondents may choose among allowed codes. ## Storage Answers are stored as integer **minor units**, or as `{{amount, currency}}` when a picker is enabled. Submissions and CSV export format them for humans (e.g. `999,00 PLN`). Related: [Number](/features/blocks/number) · [Price range](/features/blocks/price-range) · [Flex slider](/features/blocks/flex-slider) # Date, Time & Duration Source: https://flexforms.bjanczak.com/features/blocks/date-time Three catalog blocks — Date, Time, and Duration — with Mode settings for datetime, month, year, and ranges. 💡 **UX Tip:** Prefer the **Date** block and set **Mode** instead of hunting for separate Month / Year / Date range tiles. Date & time in Studio is three catalog tiles: | Block | Modes | | - | - | | **Date** | Date · Date & time · Month · Year · Date range | | **Time** | Time · Time range | | **Duration** | Length (`HH:MM:SS`), not a clock time | ## Business Use Cases Use **Date** with Mode **Date & time**, set a minimum of today. Use **Date** Mode **Date** with a maximum of today. Use **Duration** when you need how long something lasts, not what time it starts. *** ## Configuration & Usage Drag **Date**, **Time**, or **Duration** onto the Canvas. On Date / Time, open settings and set **Mode** (e.g. Date range, Date & time, Time range). Set Minimum / Maximum, size, variant, and time options (hour cycle, seconds) when the mode includes time. *** ## Technical Configuration Schemas `date` · `date_time` · `month` · `year` · `date_range` `sm` · `md` · `lg` Visual shell variant. Earliest allowed value (ISO-style string). Latest allowed value. Shown for Date & time: `12` or `24`. `numeric` · `short` · `long` `time` · `time_range` `segmented` · `dropdown` `12` or `24` Minute snap interval for dropdown / segments. Include seconds in the duration segments. Minimum duration. Maximum duration. *** ## Data Payload Single modes store a string. Range modes store `{ "start": "…", "end": "…" }`. **Next Steps:** [Field settings](/features/studio/field-settings) · [Logic](/features/studio/logic-board) # Select Block Source: https://flexforms.bjanczak.com/features/blocks/dropdown Dropdown select — Studio catalog label: Select (`select`). Supports single or multiple chips. In Studio this block is **Select**. Enable **Searchable** for long lists and **Multiple** for chip multi-select. The **Select** block (`select`) is the compact menu for choice questions — single by default, or multiple chips when enabled. ## Business Use Cases Ask users to categorize their support ticket (e.g., Billing, Tech Support, Sales). Determine a user's job title or industry during a B2B onboarding flow. Enable **Multiple** so respondents can pick several topics or skills as chips. *** ## Configuration & Usage Drag the **Select** block from the Component Catalog onto the Canvas. On the canvas, add option rows (label per row). Each option stores a stable value under the hood. In settings, leave **Multiple** off for one answer, or turn it on for multi-select chips. If your list has more than 10 items, toggle **Searchable** so users can filter by typing. In settings, turn on **Default value** and pick an option by its label (with **Multiple**, pick one or more). *** ## Technical Configuration Schemas The visual size of the dropdown field. Available options are `sm`, `md`, and `lg`. The aesthetic style of the dropdown wrapper. Options: `bordered`, `flat`, `soft`, `faded`, `underlined`. Color of selected chips when **Multiple** is enabled. Adds a clear control so the respondent can empty the field. Allows selecting more than one option. Answers are stored as a list of values. Enables a search bar at the top of the dropdown list, allowing users to quickly filter through hundreds of options. Renders the field as non-interactive (preview / locked state). The list of choices presented to the user. Each option is a key-value pair (Value => Label). *** ## Data Payload Architecture Single-select saves one **Value**. With **Multiple** enabled, the field saves an array of values. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_419", "data": { "support_department": "dept_billing", "interests": ["php", "react", "design"] } } ``` ```php Database Storage (PHP) theme={} [ 'support_department' => 'dept_billing', 'interests' => ['php', 'react', 'design'], ] ``` *** ## Deep Dive: Labels vs. Values When configuring a Dropdown, you must define a Label and a Value for every option. * **Label:** What the human user sees on the screen (e.g., "Senior Software Engineer"). * **Value:** The raw data saved to the database (e.g., `role_eng_snr`). By separating the Label and Value, you can change the visual text at any time without breaking your database schemas, Zapier workflows, or internal reporting logic. The Value acts as an immutable primary key. **Pro Tip:** Always use lowercase, snake\_case strings for your Values to ensure maximum compatibility with external APIs. *** ## Best Practices & FAQs Leave **Multiple** off when exactly one answer is required. Turn it on when respondents should pick several options — selections appear as chips. If you have 4 or fewer options and need a single answer, use a [Multiple Choice (Radio)](/features/blocks/multiple-choice) block instead. Hiding 3 options behind a click adds unnecessary friction. Use Dropdowns when you have 5+ options, or when you need multi-select chips. **Next Steps:** [Multiple Choice](/features/blocks/multiple-choice) · [Checkboxes](/features/blocks/checkbox) # Email Block Source: https://flexforms.bjanczak.com/features/blocks/email Collect securely validated email addresses. Learn how Primary routing drives integrations and CRM synchronization. 💡 **New Feature:** You can now automatically sync the Primary Email to the global Contacts Hub! The **Email** block is the absolute cornerstone of digital identity and lead generation. It inherently enforces structural validation (ensuring the input contains an `@` symbol and a valid domain format) before allowing submission. Without a verified email, your CRM workflows, marketing automations, and transactional receipts cannot function. ## Business Use Cases Act as the primary unique identifier for account creation and password resets. Route order confirmations, digital downloads, and shipping receipts to the customer. Gate valuable content (like PDFs) behind a required email capture for newsletter drip campaigns. *** ## Configuration & Usage Deploying the Email block is straightforward, but its power lies in its deep integration with the rest of the Flex Forms ecosystem. Drag the **Email** block from the Component Catalog onto the Canvas. Define the **Label** (e.g., *"Work Email"*). You can also inject a **Placeholder** (e.g., *"[jane@company.com](mailto:jane@company.com)"*) to guide the respondent. Email blocks are typically the most critical piece of data. Toggle the **Required** switch to prevent anonymous submissions. *** ## Technical Configuration Schemas Customize the email block using the advanced configuration options in the Inspector. We have broken these down into logical categories. The main text displayed above the field. The empty state placeholder (e.g., `you@example.com`). Muted instructional text displayed below the input. Hides the main field label, keeping only the input and the placeholder visible. Useful for minimal landing pages. If enabled, the form cannot be submitted unless a valid email address is provided. Validates against your database to ensure this email hasn't been submitted previously to this form (useful for limiting "one entry per person" giveaways). Determines if the field is visible on the screen. Pre-fill the email if you already know it (e.g., via URL query parameters). *** ## Data Payload Architecture When a form containing an Email block is submitted and sent via Webhook to an external service (like Zapier or Make), the payload looks like this: ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_987654321", "form_id": "frm_123456789", "data": { "email_primary": "jane.doe@acmecorp.com" }, "metadata": { "ip_address": "192.168.1.1", "submitted_at": "2026-08-02T10:00:00Z" } } ``` ```php Database Storage (PHP) theme={} [ 'email_primary' => 'jane.doe@acmecorp.com', ] ``` *** ## Deep Dive: The "Primary Email" Concept If your form contains multiple Email blocks (e.g., *Personal Email* and *Manager's Email*), the system must know which one identifies the respondent. This is handled by the **Primary** toggle. **Automatic Promotion:** Flex Forms intelligently promotes the first Email block you add to the Canvas to be the **Primary**. ### Why Primary Matters: 1. **The Contacts Directory:** The Primary email is used as the unique identifier when creating or updating profiles in the global [Contacts Hub](/features/contacts/overview). 2. **Notification Routing:** If you configure the form to send an auto-responder or receipt, the system dispatches it to the Primary address. 3. **CRM Integration:** Third-party feeds (like Mailchimp or Zapier) prioritize the Primary email field when syncing lead data. You can manually change which block is designated as Primary within the block's field settings. *** ## Best Practices & Troubleshooting If you are emailing an existing database, you already know their email. Use [Query Parameter Prefilling](/features/share/query-params) (e.g., `?email=known@user.com`) so they don't have to type it again. You can even combine this with the **Hide Label** setting for a frictionless flow. Consider using the **Help Text** setting to gently remind users to double-check their spelling, as this address will be used for critical communications. While the Email block validates structural integrity (e.g., requires an `@` and a `.com`), it cannot verify if the inbox actually exists. For high-security environments, you should implement a double-opt-in workflow where the user must click a confirmation link sent to the provided address before granting access. **Next Steps:** [Query Parameter Prefilling](/features/share/query-params) · [The Contacts Directory](/features/contacts/overview) # File Upload Block Source: https://flexforms.bjanczak.com/features/blocks/file-upload Securely collect documents, images, and attachments directly into your cloud storage. 🚨 **Security Notice:** Never deploy a File Upload block without setting a `max_size_kb` limit. Without it, an attacker could upload gigabytes of data and spike your cloud storage bill. The **File Upload** block provides a powerful drag-and-drop interface for users to submit files. It includes robust security limits, automatic image optimization, and multi-file support, seamlessly routing files directly to your configured storage disks (like AWS S3 or Google Cloud Storage) without stressing your primary web server. ## Business Use Cases Collect resumes and cover letters by enforcing PDF-only uploads. Allow field workers to take photos of broken equipment directly via their mobile device's camera. Securely upload copies of passports or driver's licenses to a private S3 bucket. *** ## Configuration & Usage Drag the **File Upload** block from the Component Catalog onto the Canvas. Define which `disk` and `directory` the uploaded files should be saved to (e.g., `s3` in the `customer_resumes` folder). To prevent malicious uploads, always set the **Accepted Types** (e.g., just PDFs) and a strict **Max Size (KB)** limit. *** ## Technical Configuration Schemas The Laravel storage disk where the files should be saved (e.g., `s3`, `public`, `local`). The specific folder inside the disk where the files will be placed. Sets the ACL visibility on S3-compatible storage (e.g., `private` or `public-read`). If enabled, the user can select and upload multiple files at once. The maximum file size allowed for **each individual file**, specified in kilobytes (e.g., `5120` for 5MB). An array of allowed MIME types (e.g., `['application/pdf', 'image/jpeg']`). The browser will restrict the file picker to these extensions. A quick-preset that automatically restricts uploads to standard document formats (PDF, DOCX, TXT). A quick-preset that restricts uploads to image formats (JPG, PNG, WEBP). Legacy block-level toggle. Flex Forms also applies package-wide image optimization on public fill uploads (see below). Automatically resizes images that exceed this width (in pixels). Automatically resizes images that exceed this height (in pixels). *** ## How Flex Forms stores respondent files * **Images** are converted to WebP (quality 80 by default) with a **normal** variant (max 1500px long edge) and a **thumb** (max 350px). Smaller images are never upscaled; the original upload is discarded after variants exist. * **Everything else** (PDF, Word, video, audio, …) is stored as a **single original file** — no forced WebP, no thumb. * Storage uses your configured submissions disk by default. If you set `FLEX_FORMS_MEDIA_DRIVER=spatie` and install [spatie/laravel-medialibrary](https://github.com/spatie/laravel-medialibrary), Spatie becomes the **primary** store: native conversions, responsive images (optional), `ffmedia:{uuid}` path tokens, and originals deleted after conversions. Details: [Upload disks](/developers/upload-disks). *** ## Data Payload Architecture Flex Forms handles the heavy lifting of uploading the file to your cloud storage. When the form submits, it passes the *path* to the file, not the raw binary data. ```json Webhook Payload (Single File) theme={} { "submission_id": "sub_909", "data": { "resume_upload": "customer_resumes/john_doe_resume.pdf" } } ``` ```json Webhook Payload (Multiple Files) theme={} { "submission_id": "sub_909", "data": { "inspection_photos": [ "inspections/photo_1.jpg", "inspections/photo_2.jpg" ] } } ``` **Generating URLs:** To view these files, you will need to generate a URL based on your disk configuration (e.g., `https://my-s3-bucket.s3.amazonaws.com/customer_resumes/john_doe_resume.pdf`). *** ## Deep Dive: Image Optimization When asking for photos (e.g., a profile picture or an inspection photo), modern smartphones often upload 10MB to 20MB raw images. If 1,000 users upload a 15MB photo, you will rapidly burn through your cloud storage and bandwidth budget. By enabling **Optimize Images** and setting a **Max Width/Height** (e.g., 1920px), the File Upload block intercepts the massive file on the server, resizes it, and compresses it down to \~500KB *before* saving it to S3. *** ## Best Practices & FAQs Always specify a `directory` (e.g., `form_uploads/campaign_x`). If you leave it blank, all files dump into the root of your storage disk, making it a nightmare to manage later. **Next Steps:** [Signature Block](/features/blocks/signature) # Flex Slider Block Source: https://flexforms.bjanczak.com/features/blocks/flex-slider Pill-rail slider with optional two-handle range for min–max picks. The **Flex slider** (`flex_slider`) is a branded pill rail with a capsule thumb. Enable **Range (two handles)** when respondents should pick a min–max band (budget, age range, quantity band). ## Configuration Drag **Flex slider** from the Number category onto the canvas. Set min, max, step, size, step dots, track fill, and value placement in field settings. Turn on **Range (two handles)** for a pair of values instead of a single number. Related: [Slider](/features/blocks/slider) · [Number](/features/blocks/number) · [Currency](/features/blocks/currency) · [Price range](/features/blocks/price-range) # Image Block Source: https://flexforms.bjanczak.com/features/blocks/image Image upload or display depending on configuration. The **Image** block (`image`) handles image media on the form. Configure accepted types and size limits like other uploads. Related: [File upload](/features/blocks/file-upload). See the [Blocks overview](/features/blocks/overview) for the full catalog. # Textarea Block Source: https://flexforms.bjanczak.com/features/blocks/long-text Multi-line text — Studio catalog label: Textarea (`flex_textarea`). In Studio this block is **Textarea** (not “Long Text”). Enable autosize to avoid inner scrollbars. The **Textarea** block collects open-ended paragraphs — reviews, bug reports, biographies. For formatted HTML answers use [Rich text](/features/blocks/rich-text); for static instructions use [Plain text](/features/blocks/plain-text). ## Business Use Cases Collect rich, qualitative reviews and testimonials from users about your service. Provide a large canvas for users to describe the steps required to reproduce a technical bug. Ask candidates open-ended questions like "Why do you want to work here?" and enforce minimum word counts. *** ## Configuration & Usage Drag the **Long Text** block from the Component Catalog onto the Canvas. Define the prompt in the **Label**. For long text, a good **Placeholder** (e.g., *"Describe the issue in detail..."*) is highly recommended to set expectations. Toggle **Animated Autosize** in the Inspector to ensure the field grows seamlessly as the user types. *** ## Technical Configuration Schemas Fine-tune the textarea experience using these settings in the Inspector. The visual size of the textarea. Available options: `sm`, `md`, and `lg`. The initial number of rows (height) of the textarea before the user starts typing. When enabled, the textarea automatically and smoothly expands its height as the user types multiple lines. The maximum height of the textarea when `animated_autosize` is enabled (e.g., `300px`). After reaching this height, the field will start scrolling. Adds a dictation microphone button to the textarea, enabling speech-to-text. Embeds a native emoji picker button within the textarea interface. Displays a live character count below the textarea. The minimum number of characters required for a valid submission. The maximum number of characters allowed. *** ## Data Payload Architecture Long text submissions maintain their formatting via invisible newline characters (`\n`). When passing this data to other systems, ensure they support multiline strings. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_881", "data": { "bug_description": "When I click the save button, nothing happens.\n\nI have tried restarting my browser." } } ``` ```php Database Storage (PHP) theme={} [ 'bug_description' => "When I click the save button, nothing happens.\n\nI have tried restarting my browser.", ] ``` *** ## Deep Dive: Managing Constraints When asking for open-ended feedback, users can sometimes write entirely too much, or conversely, give a useless one-word answer like "good." You can forcefully curate the quality of your responses using the **Minimum Length** and **Maximum Length** settings combined with the **Character Counter**. **UX Tip:** If you set a Minimum Length of 100 characters, *always* enable the Character Counter. Users need visual feedback on how close they are to satisfying the requirement. *** ## Best Practices & FAQs If you expect a long story, set the `rows` parameter to `5` or `6`. A larger empty box psychologically encourages the user to write more. A small box implies you only want a quick sentence. If you need the user to submit text with bolding, italics, or bullet points, use the [Rich Content Block](/features/blocks/content) instead of Long Text. **Next Steps:** [Rich Content Block](/features/blocks/content) # Map & Address Block Source: https://flexforms.bjanczak.com/features/blocks/map Collect perfectly structured, geocoded locations using interactive maps and Mapbox autocomplete. ⚠️ **Requirement:** You must provide a valid Mapbox Token in the Settings panel for this block to function. The **Map & Address** block (`MapPickerField`) is a heavyweight component that completely replaces standard text fields for address collection. Users can drop a pin on a visual map, or type an address into an autocomplete search bar that automatically drops the pin at the correct location, ensuring perfectly structured geographical data. ## Business Use Cases Ensure drivers get exact coordinates (`lat/lng`) instead of misspelled street names that cause failed deliveries. Allow users to drop a pin on plots of land or rural properties that do not have standard postal addresses. Collect exact geolocation data from franchisees to build accurate internal routing and search tools. *** ## Complete Integration Guide: Mapbox API To power the autocomplete search and render the visual map tiles, you must integrate Flex Forms with Mapbox. This is a one-time setup. Go to [Mapbox.com](https://www.mapbox.com/) and create a free account. Mapbox provides an incredibly generous free tier (usually up to 100,000 requests per month). Navigate to your Mapbox Account Dashboard. Under the **Access Tokens** section, click `Create a token`. *Name it something recognizable, like `Flex_Forms_Production`.* For security, you must restrict the token so it can only be used on your domain. Under the token settings, add your app's URLs (e.g., `https://my-app.com/`) to the **URL Restrictions** list. Copy the generated Public Token (starts with `pk.`). Open **Integrations** in the Flex Forms left rail, and paste the token into the Mapbox API Key field. *** ## Technical Configuration Schemas Once integrated, you have massive control over how the map behaves and what users are allowed to search for. Use **Layout** in Studio to switch between **Search input** (`address_autocomplete`) and **Map picker** (`map_picker`). Shared search settings apply to both. `input` (address search only) or `map` (map canvas + optional search). Changing layout switches the block type while keeping shared search config. Displays a search bar above the map (map layout) or powers the autocomplete input (input layout). The `[latitude, longitude]` coordinates where the map is centered when it first loads (e.g., `[51.5074, -0.1278]` for London). Map layout only. The initial zoom level of the map (usually between 1 and 20). Map layout only. Studio defaults to `12` when you switch a block to map layout without a zoom set. `auto` uses your app locale / Mapbox default. `manual` uses the `language` code you set. Result language code when `language_mode` is `manual` (e.g., `pl`, `en`, `es`). What respondents may find: `all`, `address` (street only), `cities`, `regions`, `countries`, `admin` (admin areas without street), `poi` (general points of interest), or `custom` (raw Mapbox types). `global` searches worldwide. `countries` limits results to the ISO codes in `countries`. ISO country codes (e.g., `['US', 'CA']`) when `search_area` is `countries`. Leave empty for worldwide. Used when `search_scope` is `custom` — Mapbox place types such as `address`, `place`, `poi`, `region`. Delay in milliseconds before search runs after typing stops. Forces specific address components (e.g., `['city', 'postcode']`) when a location is present. How location data is saved: `structured` (object with configured fields) or `string` (formatted via `string_format`). *** ## Data Payload Architecture If you use a standard Long Text box to ask for an address, a user might type: "123 Apple st NY". This unstructured string is useless for routing or shipping APIs. With **store format → Structured**, the answer is a normalized object (street, city, postcode, country, and — on map layout — `lat` / `lng`). ```json Webhook Payload (store_format: structured) theme={} { "submission_id": "sub_123", "data": { "delivery_address": { "place_name": "123 Apple Street, New York, NY 10001, USA", "lat": 40.7128, "lng": -74.0060, "street": "Apple Street", "city": "New York", "postcode": "10001", "country": "US" } } } ``` ```json Webhook Payload (store_format: string) theme={} { "submission_id": "sub_123", "data": { "delivery_address": "123 Apple Street, New York, NY 10001, USA" } } ``` > Mapbox Geocoding does not filter POIs by venue category (restaurant vs cafe). Use the **Points of interest** scope for general landmarks/shops, or street/city scopes for postal addresses. *** ## Best Practices & Troubleshooting Set **What to search** to **Street addresses only**, and optionally require fields like `street` and `postcode`. Broad regions and POIs will be rejected. Raise **Search debounce** (advanced) so Mapbox is not called on every keystroke. If the map renders as a gray box, your Mapbox Token is either missing, invalid, or blocked by **URL Restrictions** in the Mapbox dashboard. Open the browser console (F12) for the exact 403 from Mapbox. **Next Steps:** [Short Text Block](/features/blocks/short-text) # Matrix Choice Block Source: https://flexforms.bjanczak.com/features/blocks/matrix A powerful grid-based question type for collecting bulk responses or evaluating items on a common scale. 💡 **Mobile Optimization:** Matrix blocks automatically transform from a desktop grid into stacked mobile cards, ensuring perfect responsiveness on phones. The **Matrix Choice** block (`MatrixChoiceField`) allows you to group multiple related questions into a single, cohesive table. It is perfect for Likert scale surveys (e.g., "Rate the following aspects of our service from 1 to 5") or bulk product selections. ## Business Use Cases "How satisfied are you with..." (Rows: Support, Product, Pricing | Cols: 1 to 5). "Select your uniform sizes." (Rows: Small, Medium, Large | Cols: Red, Blue, Green). "Rank these features by importance." (Rows: Features | Cols: Must Have, Nice to Have, Do Not Build). *** ## Configuration & Usage Drag the **Matrix Choice** block from the Component Catalog onto the Canvas. Configure the **Rows** (the subjects or items being evaluated) and the **Columns** (the scale, answers, or rating options). Decide if the user can pick only one answer per row (`Radio` mode) or multiple answers per row (`Checkbox` mode). *** ## Technical Configuration Schemas The list of items to evaluate. Each row is defined as a key-value pair (e.g., `cleanliness` => "Cleanliness of the room"). The scale or choices available for each row. Defined as a key-value pair (e.g., `5` => "Excellent", `1` => "Poor"). Defines the selection logic: * `radio`: Only one choice can be made per row. * `checkbox`: Multiple choices can be selected per row. The visual size of the matrix table. Available options are `sm`, `md`, and `lg`. The accent color used to highlight selected cells in the grid. An array mapping column keys to Heroicon names. This displays an icon inside the column header (e.g., a star icon). An array of row keys that are grayed out and unclickable. An array of specific cells that cannot be selected (e.g., `row_key:column_key`). A dynamic ruleset to lock a cell based on another answer within the matrix. *** ## Data Payload Architecture Because a Matrix is fundamentally a grid of questions, the data is saved as a JSON object where the keys are the rows, and the values are the selected columns. ```json Webhook Payload (Radio Mode) theme={} { "submission_id": "sub_719", "data": { "hotel_survey": { "room_cleanliness": "5_stars", "staff_friendliness": "4_stars", "food_quality": "3_stars" } } } ``` ```json Webhook Payload (Checkbox Mode) theme={} { "submission_id": "sub_719", "data": { "tshirt_order": { "size_large": ["color_red", "color_blue"], "size_small": ["color_green"] } } } ``` *** ## Deep Dive: Complex Cell Locking The Matrix Choice field supports complex, cell-level locking logic to prevent impossible combinations. If you are using a Matrix for an order form (Rows = Shirt Sizes, Columns = Colors), but you are out of stock for "Small Red" shirts, you can use the `disabled_cells` parameter to explicitly block the coordinate `size_small:color_red`. This prevents users from ordering inventory that doesn't exist, maintaining data integrity without having to delete the row or column entirely. *** ## Best Practices & FAQs **UX Rule:** Do not add more than 7 columns to a Matrix. Anything beyond that becomes cognitively overwhelming for the user and visually cluttered on tablets, forcing horizontal scrolling. **Next Steps:** [Rating & NPS Block](/features/blocks/rating-nps) # Flex Radiolist Block Source: https://flexforms.bjanczak.com/features/blocks/multiple-choice Single-choice radio list — Studio catalog label: Flex radiolist (`flex_radiolist`). In Studio this block is **Flex radiolist**. Prefer it over Select when you have roughly five or fewer options. The **Flex radiolist** block (`flex_radiolist`) shows every option at once for mutually exclusive answers. ## Business Use Cases "Which plan would you like?" (e.g., Basic, Pro, Enterprise) where all options need to be compared simultaneously. "Are you currently a student?" (Yes / No). "How was your experience?" (Good / Neutral / Bad) using custom icons for each choice. *** ## Configuration & Usage Drag the **Multiple Choice** block from the Component Catalog onto the Canvas. Add your options. Remember, users can only select exactly one of these choices. Use the Inspector to assign **Icons** or sub-text **Descriptions** to individual options to make them easier to understand. *** ## Technical Configuration Schemas The size of the radio buttons and accompanying text. Available options are `sm`, `md`, and `lg`. Changes the visual style of the radio list. For example, rendering them as standard circles or bordered pill buttons. The accent color used when a radio button is selected (active state). An associative array mapping option keys to Heroicon names. This renders a beautiful icon next to the corresponding radio option. An associative array mapping option keys to a secondary description string. This allows you to add smaller, muted explanatory text below specific choices. The list of radio options, defined as key-value pairs (Value and Label). An array of option keys that should be rendered as disabled (grayed out and unclickable). Useful for indicating out-of-stock items or unavailable timeslots. *** ## Data Payload Architecture Because radio buttons restrict the user to a single choice, the output payload is a simple, flat string containing the selected Value (key). ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_551", "data": { "subscription_tier": "tier_pro", "is_student": "yes" } } ``` ```php Database Storage (PHP) theme={} [ 'subscription_tier' => 'tier_pro', 'is_student' => 'yes', ] ``` *** ## Deep Dive: The Power of Context Radio buttons are often used for pricing plans or critical tier selections. A simple word like "Pro" might not be enough context for a user to make a decision. By utilizing the **Descriptions** and **Icons** parameters, you can transform a boring list of radio circles into a rich feature comparison. **UX Rule:** Radio buttons inherently require the user to evaluate all options before clicking. Adding icons and descriptions drastically reduces the cognitive load required to make that choice. *** ## Best Practices & FAQs If your Multiple Choice list exceeds 5 or 6 items, it takes up too much vertical screen real estate, especially on mobile. At that point, you should switch to a [Dropdown Block](/features/blocks/dropdown) to save space. If you offer a seminar on 3 different dates, and one date sells out, do not delete the option! Add its key to `disabled_options`. This creates scarcity and shows future users that your events are highly sought after. **Next Steps:** [Dropdown Block](/features/blocks/dropdown) · [Checkboxes Block](/features/blocks/checkbox) # Name Block Source: https://flexforms.bjanczak.com/features/blocks/name Composite first / optional middle / last name fields in one block. The **Name** block (`name`) is a Studio composite for person names. Fill renders the configured parts as text inputs; submissions store structured name parts for Contacts and CRM mapping. ## Configuration Drag **Name** from the Text category (it leads the text catalog). Toggle **Last name**, optional **Middle name**, labels, and whether last name is required. Prefer Name over separate Text inputs when you want consistent Contacts identity and CRM first/last mapping. Related: [Email](/features/blocks/email) · [Contacts](/features/contacts/overview) · [Text input](/features/blocks/short-text) # Number Block Source: https://flexforms.bjanczak.com/features/blocks/number Safely collect numeric data, enforce boundaries, and trigger proper mobile keyboards. 💡 **UX Tip:** Using the Number block automatically triggers the numeric keypad on iOS and Android devices, significantly speeding up form completion. The **Number** block (`integer` in the schema, labeled **Number** in Studio) is for mathematical and quantitative data. Prefer it over Text input when you need numeric keyboards, min/max bounds, and clean analytics. For stepping UI, use [Number stepper](/features/blocks/number-stepper). For money, use [Currency](/features/blocks/currency). ## Business Use Cases Ask for a user's age and strictly enforce a minimum limit (e.g., must be > 18). Collect salary expectations or donation amounts using float (decimal) steps. Use the built-in stepper buttons (`+` and `-`) to let users quickly adjust order quantities. *** ## Configuration & Usage Drag the **Number** block from the Component Catalog onto the Canvas. Define the **Minimum** and **Maximum** values. For example, if you are asking for "Age", set the minimum to `18` to legally restrict submissions. By default Number accepts whole numbers only. Enable **Allow decimals** when you need fractional values (e.g. weight). Adjust **Step** if you use a stepper UI. *** ## Technical Configuration Schemas The visual size of the number stepper field. Available options are `sm`, `md`, and `lg`. Customizes the heroicon used for the `+` (increment) button on the stepper. Customizes the heroicon used for the `-` (decrement) button on the stepper. The absolute minimum numeric value the user is allowed to enter (e.g., `18`). The maximum numeric value the user is allowed to enter (e.g., `100`). The incremental step for the stepper buttons. * A step of `1` enforces integers. * A step of `0.01` or `0.5` allows floats/decimals. *** ## Data Payload Architecture The Number block guarantees that the data saved is a true programmatic number type, not a string masquerading as a number. This is crucial for APIs that expect strict types. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_777", "data": { "user_age": 28, "donation_amount": 150.50 } } ``` ```php Database Storage (PHP) theme={} [ 'user_age' => 28, // Saved as integer 'donation_amount' => 150.50 // Saved as float ] ``` *** ## Deep Dive: When NOT to use the Number Block It is a common mistake to use the Number block for things that *look* like numbers but are actually *identifiers*. **Do NOT use the Number block for:** * Phone Numbers * Zip / Postal Codes * Credit Card Numbers * Social Security Numbers **The Rule of Thumb:** If you would never add, subtract, or multiply the data, it is not a Number. Use a [Short Text Block](/features/blocks/short-text) with a Custom Mask instead! *** ## Best Practices & FAQs By default the Number block accepts whole numbers only. Turn on **Allow decimals** in the block settings when you need fractional values (e.g. weight `12.5`). For money amounts, prefer the Currency block instead. If you don't want the `+` and `-` buttons appearing inside the input (e.g., for collecting Salary), simply leave the `increment_icon` and `decrement_icon` blank, and standard browsers will hide them. ## Related numeric blocks * [Number stepper](/features/blocks/number-stepper) — `+` / `-` control for quantities * [Currency](/features/blocks/currency) — money amounts with ISO currency * [Slider](/features/blocks/slider) — single-value track * [Flex slider](/features/blocks/flex-slider) — pill rail, optional two-handle range * [Price range](/features/blocks/price-range) · [Traffic split](/features/blocks/traffic-split) **Next Steps:** [Short Text Block](/features/blocks/short-text) # Number Stepper Block Source: https://flexforms.bjanczak.com/features/blocks/number-stepper Quantity input with increment and decrement controls. The **Number stepper** (`number_stepper`) is a dedicated quantity control with `+` / `-` buttons. Use it for order counts and inventory-style inputs. For a plain numeric field without steppers, prefer [Number](/features/blocks/number) (`integer`). ## Configuration Set min, max, step, and optional icons for the increment/decrement buttons. Related: [Number](/features/blocks/number) · [Currency](/features/blocks/currency) # Block Overview Source: https://flexforms.bjanczak.com/features/blocks/overview Catalog of Studio blocks — text, numbers, choices, media, and specialized fields. Blocks are the fields and content pieces you drag onto the Studio canvas. Flex Forms builds on Filament Flex Fields so every block is responsive, configurable, and export-ready. Flex Forms blocks and components — text, choice, uploads, maps, payments, and more CAPTCHA is **not** a canvas block — configure one provider under [Form Settings → Access](/features/settings/access). ## Catalog [Name](/features/blocks/name), [Email](/features/blocks/email), [Phone](/features/blocks/phone), [Text input](/features/blocks/short-text), [Textarea](/features/blocks/long-text), [URL](/features/blocks/url), [Rich text](/features/blocks/rich-text) [Plain text](/features/blocks/plain-text) for instructions — not an answer field. [Number](/features/blocks/number), [Number stepper](/features/blocks/number-stepper), [Currency](/features/blocks/currency), [Slider](/features/blocks/slider), [Flex slider](/features/blocks/flex-slider), [Price range](/features/blocks/price-range), [Traffic split](/features/blocks/traffic-split) [Select / Dropdown](/features/blocks/dropdown), [Multiple choice](/features/blocks/multiple-choice), [Checkbox / checklist](/features/blocks/checkbox), [Toggle](/features/blocks/toggle), [Segment control](/features/blocks/segment-control), [Choice cards](/features/blocks/choice-cards), [Tags](/features/blocks/tags), [Country](/features/blocks/country), [Timezone](/features/blocks/timezone) [Date / Time / Duration](/features/blocks/date-time), [Map](/features/blocks/map), [Address autocomplete](/features/blocks/address-autocomplete) (Mapbox) [File upload](/features/blocks/file-upload), [Image](/features/blocks/image), [Video](/features/blocks/video), [Audio](/features/blocks/audio), [Voice note](/features/blocks/voice-note), [Signature](/features/blocks/signature) [Matrix](/features/blocks/matrix), [Rating & NPS](/features/blocks/rating-nps), [Social links](/features/blocks/social-links), [Color](/features/blocks/color), [Credit card](/features/blocks/credit-card) (input only — not a gateway), [Stripe Payment](/features/blocks/stripe-payment). For keys, webhooks, and refunds see [Stripe](/integrations/stripe) and [Transactions](/features/transactions/overview). *** ## Field settings Click a block on the canvas to open **field settings** in the **left** dock (replacing the component catalog). Set the internal **Name**, public **Label**, validation, and type-specific options. See [Field settings](/features/studio/field-settings). *** ## Best practices Use Phone for phones, Currency for money, Email for emails — not generic Text input. Integrations and query prefills use the internal **Name**, not the visible label. See [Name & label](/get-started/name-label-fields). **Next:** [Name](/features/blocks/name) · [Currency](/features/blocks/currency) · [Voice note](/features/blocks/voice-note) · [Form settings](/features/settings/overview) # Phone Number Block Source: https://flexforms.bjanczak.com/features/blocks/phone Collect pristine international phone numbers with built-in country flags and E.164 standardization. 🚨 **Important:** SMS gateways (like Twilio or AWS SNS) will instantly reject phone numbers that are not formatted to the E.164 standard. This block guarantees E.164 compliance out of the box. The **Phone Number** block is an advanced input field that abstracts away the complexity of global phone formats. It automatically handles country dialing codes, validates number lengths based on the selected country, and standardizes the output for your CRM or SMS gateways. ## Business Use Cases Collect verified mobile numbers to send promotional blasts or event reminders. Ensure your sales team gets perfectly formatted international numbers to dial right from their CRM. Capture mobile-only numbers required for sending 2FA security codes. *** ## Configuration & Usage Drag the **Phone** block from the Component Catalog onto the Canvas. Set your **Default Country**. This determines which flag and dialing code (e.g., `+1` for US) is selected when the user opens the form. If you only do business in Europe, use the **Countries** array to whitelist specific nations, preventing users from submitting numbers from unsupported regions. *** ## Technical Configuration Schemas The visual size of the phone input. Available options are `sm`, `md`, and `lg`. The ISO 3166-1 alpha-2 country code (e.g., `US`, `PL`, `GB`) selected by default. Enables a search bar inside the country flag dropdown, allowing users to quickly find their nation. If enabled, the field enforces the `+` prefix natively in the UI. An array of allowed country codes. If defined, the user can only select a country flag from this specific list (whitelisting). An array of country codes to hide from the dropdown. Use this to block specific countries (blacklisting) while allowing the rest of the world. Strict validation constraint. If true, the field will reject landline (fixed-line) phone numbers. Strict validation constraint. If true, the field will only accept landline phone numbers. Advanced type allow-list (for example `MOBILE`, `VOIP`). When set, overrides mobile-only / fixed-line-only sugar. When true, the number must be valid specifically for the selected country (not only valid as an international number). How the national value is stored after validation: `national` (formatted) or `digits` (digits only). Default stays formatted. Optional extra stored keys such as `international` and `rfc3966`. Optional enrichment keys such as `carrier`, `geo`, `timezones`, and `type` (server-side only). *** ## Data Payload Architecture Regardless of how messy the user types their number, the Phone block strips all formatting and converts it into the globally recognized **E.164 standard**. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_902", "data": { "customer_phone": "+48123456789" } } ``` ```php Database Storage (PHP) theme={} [ 'customer_phone' => '+48123456789', ] ``` *** ## Deep Dive: E.164 Standardization Phone numbers are notoriously messy. Users might type `(555) 123-4567`, `5551234567`, or `+1 555-123-4567`. If you attempt to send an SMS via Twilio or sync this data to Salesforce, formatting inconsistencies will cause catastrophic failures. **E.164 Guarantee:** Because Flex Forms handles this normalization before the data is saved, your integrations will never fail due to a malformed phone number. *** ## Best Practices & FAQs If your workflow involves sending a 2FA code or marketing SMS after submission, you must enable **Mobile Only**. This prevents users from entering a landline number that cannot receive text messages, which would break your flow. If you allow all global countries (not whitelisting), always enable **Searchable**. Scrolling through 195+ flags on a mobile device is a terrible user experience. **Next Steps:** [Country Selector](/features/blocks/country) # Plain Text Block Source: https://flexforms.bjanczak.com/features/blocks/plain-text Display-only body copy on the form — not an answer field. The **Plain text** block (`plain_text`) is **content**, not an answer. Use it for instructions, legal blurbs, and section intros between questions. Respondents cannot type into it. For answerable formatted text, use [Rich text](/features/blocks/rich-text). ## Configuration Edit the body copy in field settings. Place Plain text blocks between question blocks on the canvas. Related: [Rich text](/features/blocks/rich-text) · [Blocks overview](/features/blocks/overview) # Price Range Block Source: https://flexforms.bjanczak.com/features/blocks/price-range Collect a numeric price band or range. The **Price range** block (`price_range`) captures a priced band for budgets and filters. For free-form money amounts, prefer [Currency](/features/blocks/currency); for visual rails, see [Flex slider](/features/blocks/flex-slider). See the [Blocks overview](/features/blocks/overview) for the full catalog. # Rating & NPS Block Source: https://flexforms.bjanczak.com/features/blocks/rating-nps Collect user satisfaction scores using interactive Star Ratings or standard Net Promoter Score scales. 💡 **UX Tip:** When using NPS, toggle **Color Coded** on. Visual cues (Red for low, Green for high) subconsciously help users process the scale faster. The **Rating & NPS** block combines two distinct visual interfaces to evaluate user sentiment. Depending on your configuration, it renders either a standard 5-star rating component or a comprehensive 0-10 Net Promoter Score (NPS) scale, making it essential for feedback forms. ## Business Use Cases Use NPS (0-10) to determine if your customers are Detractors, Passives, or Promoters. Use a 5-star rating scale to collect quick product quality feedback for an e-commerce store. After a support ticket is closed, ask the user to rate the agent's helpfulness. *** ## Configuration & Usage Drag the **Rating & NPS** block from the Component Catalog onto the Canvas. By default, it renders as a Star Rating. If you are trying to calculate customer loyalty, switch the mode to **NPS** in the Inspector. Adjust the colors and icons. For example, change the stars to "Hearts" and the color to "Red" for a more affectionate feedback loop. *** ## Technical Configuration Schemas The maximum number of stars available to select. Set to `10` for a 10-star scale. The color of the filled icons (e.g., gold/yellow for stars). Overrides the default star with a custom Heroicon (e.g., `heart`, `hand-thumb-up`). Displays the numeric equivalent of the selection next to the stars (e.g., "4 / 5"). Visual template: `pills`, `segments`, or `emojis`. Emojis always use five mood slots (images stay fixed); you can rename the five labels under each emoji. Highest number on a 0–N scale for **pills** and **segments** (slider from 5 to 10). Hidden when `variant` is `emojis`. Five captions under the emoji moods. Only shown for the **Emojis** variant. The text displayed below the lowest number (e.g., "Not likely at all"). The text displayed below the highest number (e.g., "Extremely likely"). Applies standard NPS color coding automatically (Red/Yellow/Green). Control size: `sm`, `md`, or `lg`. *** ## Data Payload Architecture Whether you use Star Ratings or NPS, the final selection is always evaluated and saved as a standard `integer`. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_299", "data": { "product_rating": 4, "brand_nps": 9 } } ``` ```php Database Storage (PHP) theme={} [ 'product_rating' => 4, 'brand_nps' => 9, ] ``` *** ## Deep Dive: Why use NPS? Net Promoter Score is a highly standardized metric used globally by companies to measure customer experience. The core question is always: *"On a scale of 0 to 10, how likely are you to recommend us to a friend?"* Because Flex Forms natively supports NPS and standardizes the output as an integer, you can instantly pipe this data into tools like Mixpanel, Salesforce, or Zendesk, which have built-in dashboards specifically looking for this exact 0-10 data structure to calculate your Promoters vs Detractors. *** ## Best Practices & FAQs **UX Best Practice:** Always utilize `min_label` and `max_label` when using NPS mode. Numbers lack context on their own. "0 = Never, 10 = Absolutely" guides the user's psychology. **Next Steps:** [Matrix Choice Block](/features/blocks/matrix) # Rich Text Block Source: https://flexforms.bjanczak.com/features/blocks/rich-text Answerable WYSIWYG text with formatting toolbar. Rich text answers may contain HTML. Sanitize before rendering submissions on public pages. The **Rich text** block (`rich_text`) lets respondents submit formatted answers (bold, lists, links) with a toolbar. For static instructions that are not answers, use [Plain text](/features/blocks/plain-text) instead. Related: [Textarea](/features/blocks/long-text) · [Plain text](/features/blocks/plain-text) # Segment Control Block Source: https://flexforms.bjanczak.com/features/blocks/segment-control Compact mutually exclusive options in a segmented control. The **Segment control** block (`segment_control`) presents a small set of mutually exclusive options in a compact control — ideal for short enums (Plan A / B / C). See the [Blocks overview](/features/blocks/overview) for the full catalog. # Text Input Block Source: https://flexforms.bjanczak.com/features/blocks/short-text Single-line text — Studio catalog label: Text input (`flex_text_input`). In Studio this block is **Text input** (not “Short Text”). It supports masking and speech dictation. The **Text input** block collects single-line answers: titles, codes, and free text. Prefer the [Name](/features/blocks/name) block for first/last name composites. ## Business Use Cases The standard input for collecting First Names, Last Names, and Company Titles. Use Custom Masking to force users to correctly type License Plates, Coupon Codes, or Serial Numbers. Use URL prefixes to guarantee users submit clean links to their LinkedIn or Twitter profiles. *** ## Configuration & Usage Drag the **Short Text** block from the Component Catalog onto your canvas. Set the **Label** and **Placeholder**. Use the Inspector to activate advanced visual modes like the **Emoji Picker** or **Speech Dictation**. If you need specific data (like a postal code or license plate), select a **Mask Preset** to format the user's input automatically as they type. *** ## Technical Configuration Schemas Unlock the full power of the short text block with these Inspector configurations. The visual size of the input field. Options: `sm`, `md`, `lg`. The UI variant styling applied to the input field. The name of a Heroicon to display at the beginning of the input field. A static string prepended to the input (e.g., `https://`). A static string appended to the input (e.g., `.com`). Enables a microphone icon inside the input, allowing users to dictate their answer using native speech-to-text. The locale code for speech dictation (e.g., `en-US` or `pl-PL`). Adds a native emoji picker button directly inside the text input. Applies an automatic formatting mask as the user types. Available presets: `date`, `time`, `phone`, `card`, `postal`, `custom`. If `mask_preset` is set to `custom`, this string defines the exact mask pattern (e.g., `99-999`). Displays a live character count below the input field. The minimum number of characters the user must type. The maximum number of characters the user is allowed to type. *** ## Data Payload Architecture Because the Short Text block collects simple strings, the resulting JSON payload is straightforward, but it automatically trims leading and trailing whitespace. ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_404", "data": { "first_name": "Alexander", "custom_license_plate": "WJ-4921" } } ``` ```php Database Storage (PHP) theme={} [ 'first_name' => 'Alexander', 'custom_license_plate' => 'WJ-4921', ] ``` *** ## Deep Dive: Input Masking Input masking solves the problem of messy data. If you ask for a license plate number without a mask, you might get `ABC 1234`, `abc1234`, or `ABC-1234`. By applying a **Custom Mask** (e.g., `AAA-9999`), the field physically prevents the user from typing anything else and automatically inserts the hyphen, ensuring your database remains perfectly clean. **Masks vs. Validation:** A mask controls *how* the user types, but it does not validate the underlying logic. For example, a date mask `99/99/9999` will accept `99/99/9999`, which is not a real date. Use the [Date & Time Block](/features/blocks/date-time) for genuine date collection. *** ## Best Practices & FAQs Enable dictation when you expect users to fill out the form on mobile devices while on the go (e.g., field workers submitting inspection reports). It drastically reduces typing friction. If you want a user to submit their website, use the **Prefix** feature to lock in `https://`. This prevents them from typing `www.` or `http://`, standardizing your data output so you don't have to clean it up later. **Next Steps:** [Long Text Block](/features/blocks/long-text) # Signature Block Source: https://flexforms.bjanczak.com/features/blocks/signature Collect hand-drawn electronic signatures from respondents on any device. 💡 **UX Tip:** Enable fullscreen so mobile users get a dedicated signing canvas without fighting page scroll. The **Signature** block gives respondents an interactive canvas (mouse, trackpad, or touch). The stroke is smoothed and stored as a compact **SVG string** in the submission payload — not as a separate upload file. Optional download (SVG / WebP) is for the respondent’s browser only; it does not write to your media disk. ## Business Use Cases Collect an embedded signature on NDAs, service agreements, or B2B contracts. Allow customers to sign a tablet upon receiving a high-value shipment. Require an electronic signature before participation. *** ## Configuration & Usage Drag the **Signature** block from the Component Catalog onto the Canvas. Adjust pen color, width, and optional guidelines to match your brand. Raise **Min Strokes** so a single accidental tap cannot pass validation. *** ## Technical Configuration Schemas HEX ink color (e.g. `#000000`). Stroke thickness. Canvas background. Leave empty for transparent SVG. Full-screen signing mode on small screens. Smooth stroke paths for a more natural look. Minimum separate strokes before the signature is accepted. Optional browser download format (`svg` or `webp`). Does **not** change what is stored in the submission. Filename prefix for the optional download. *** ## Data Payload Architecture Unlike File Upload / Voice Note, signatures are **not** staged to disk. The answer is the SVG markup string inside the submission payload (same on webhooks and in the database). ```json Webhook Payload (JSON) theme={} { "submission_id": "sub_883", "data": { "liability_signature": "..." } } ``` ```php Database Storage (PHP) theme={} [ 'liability_signature' => '...', ] ``` *** ## Best Practices & FAQs Set **Min Strokes** to at least `2` so a single tap cannot pass as a signature. Transparent SVG (empty background) overlays cleanly onto contract lines in generated PDFs. A solid background color makes overlays harder. **Next Steps:** [File Upload Block](/features/blocks/file-upload) # Slider Block Source: https://flexforms.bjanczak.com/features/blocks/slider Single-value range slider with optional track label and live value. The **Slider** (`range_slider`, labeled **Slider** in Studio) lets respondents pick a single numeric value on a track — faster than typing for ratings-like quantities that are still linear. ## Configuration Configure min, max, step, optional track label, suffix, and live value output in field settings. Related: [Flex slider](/features/blocks/flex-slider) · [Number](/features/blocks/number) · [Rating & NPS](/features/blocks/rating-nps) # Social Links Block Source: https://flexforms.bjanczak.com/features/blocks/social-links Collect social profile URLs in a structured control. The **Social links** block (`social_links`) gathers profile URLs in a structured way for CRM enrichment. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Stripe Payment Source: https://flexforms.bjanczak.com/features/blocks/stripe-payment Once-per-form Payment Element block — fixed, product options, custom, or field-driven amounts with Stripe. The **Stripe Payment** block is the only block that charges cards (and other Stripe methods) on public fill and embeds. Connect keys under **Integrations → Stripe** first. Configure amount, currency, capture, and billing **on this block** — not on Form Settings → Integrations. ## Limits * **At most one** Stripe Payment block per form * Available in the Studio catalog under **Payments** after Stripe is **Ready** * Works on fill + embed; skipped for real confirm in **Preview** (no charge, no transaction) ## What to configure See the full field-by-field guide: [Stripe Integration → Payment block settings](/integrations/stripe#payment-block-settings-studio). Quick checklist: 1. **Required** on/off (optional donations vs must-pay) 2. **Payment type** — fixed / product options / customer amount / from field 3. **Currency** + capture mode 4. **Payment methods** — Automatic (Dashboard methods) or Cards only 5. Billing / shipping / receipt email options ## Not this block | Block | Role | | - | - | | [Credit card](/features/blocks/credit-card) | Collects card-*like* text into the submission — **not** a gateway | | [Currency](/features/blocks/currency) / [Number](/features/blocks/number) | Can feed **From a form field** amounts into Stripe Payment | ## After publish Successful charges appear in **[Transactions](/features/transactions/overview)**. Refunds happen there (or via Stripe + webhook sync). **Deep dive:** [Stripe Integration](/integrations/stripe) · [Transactions](/features/transactions/overview) · [Preview & Publish](/features/studio/preview-publish) # Tags Block Source: https://flexforms.bjanczak.com/features/blocks/tags Free-form or curated tag chips. The **Tags** block (`tags`) collects one or more tags as chips — curated lists, free tags, or both depending on field settings. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Timezone Block Source: https://flexforms.bjanczak.com/features/blocks/timezone Pick a timezone from a searchable directory. The **Timezone** block (`timezone`) collects an IANA timezone identifier — useful for scheduling demos and routing by region. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Toggle Block Source: https://flexforms.bjanczak.com/features/blocks/toggle Boolean on/off switch. The **Toggle** block (`toggle`) stores a true/false answer. Prefer it over checkboxes when there is a single yes/no decision. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Traffic Split Block Source: https://flexforms.bjanczak.com/features/blocks/traffic-split Numeric split control for allocation-style answers. The **Traffic split** block (`traffic_split`) collects allocation-style numeric answers (for example share of budget or attention). Pair with logic when downstream routing depends on the split. See the [Blocks overview](/features/blocks/overview) for the full catalog. # URL Block Source: https://flexforms.bjanczak.com/features/blocks/url Validated website / link input. The **URL** block (`url`) validates that respondents enter a well-formed link. Use it for company websites, portfolio links, and social profiles when you need stricter validation than Text input. See the [Blocks overview](/features/blocks/overview) for the full catalog. # Video Block Source: https://flexforms.bjanczak.com/features/blocks/video Video media field for uploads or playback contexts. The **Video** block (`video`) collects or presents video media. Enforce max size and MIME types in field settings. Related: [File upload](/features/blocks/file-upload). See the [Blocks overview](/features/blocks/overview) for the full catalog. # Voice Note Block Source: https://flexforms.bjanczak.com/features/blocks/voice-note Let respondents record short audio answers in the browser. The **Voice note recorder** (`voice_note`) captures short spoken answers in the browser and stores them as uploads — ideal for support notes, accessibility, and mobile-first surveys. ## Configuration Drag **Voice note recorder** from the Media category onto the canvas. Configure max duration / size and accepted formats in field settings so recordings stay within your storage budget. Open Submissions to play recordings inline. Voice notes use an audio player in the inbox, not a static file icon. Recording requires microphone permission in the respondent’s browser. Always provide a text alternative (or make the field optional) for accessibility. Related: [File upload](/features/blocks/file-upload) · [Audio](/features/blocks/audio) · [Upload disks](/developers/upload-disks) # The Contacts Directory Source: https://flexforms.bjanczak.com/features/contacts/overview A centralized, automatically deduplicated CRM built directly from your form submissions. The **Contacts Directory** is a powerful, cross-form CRM that Flex Forms builds for you completely autonomously. Instead of treating every submission as an isolated event in a spreadsheet, Flex Forms intelligently scans incoming payload data, identifies the human identity behind the submission, and builds a rich, deduplicated profile mapping their entire lifecycle across all of your forms. ```mermaid theme={} flowchart LR Submit["Form submission"] --> Identify["Primary email / name field detected"] Identify --> Match{"Existing contact\nwith this email?"} Match -- "Yes" --> Update["Update last seen, bump submission count"] Match -- "No" --> Create["Create new contact profile"] Update --> Directory["Unified Contacts CRM"] Create --> Directory ``` *** ## How Contacts are Created The directory is populated entirely without manual data entry. It operates on a strict, predictable trigger: **The Primary Email**. When a form is submitted, the backend engine intercepts the payload before it is written to the database. If the form contains an [Email Block](/features/blocks/email) explicitly marked as **Primary** in the Inspector, the engine extracts that email to perform a CRM lookup. The engine queries the global Contacts Directory. If `sarah@enterprise.com` already exists in your CRM, the engine seamlessly connects this new submission to her existing profile, avoiding duplicate rows. If the form also contained a **Name** block (or Text input fields for first/last name), the engine can update the contact’s display name on the global profile. The engine increments Sarah's total **Submission Count** and updates her **Last Seen** timestamp. *** ## The Contact Schema Architecture When you open the Contacts Directory from the main navigation, you are presented with a high-level, sortable view of your most engaged leads. The schema for a Contact profile contains the following strictly managed fields: **The Identity Key (Email)** The absolute, unique identifier that binds their cross-form activity together. A single email can only exist once in the Contacts Directory. **Enriched Name** Sourced automatically if a text block on your form successfully captured name data. **Engagement Metric** The total volume of submissions this specific person has made across your *entire* form ecosystem. *(Example: If Sarah fills out your "Contact Us" form twice, and your "Webinar RSVP" form once, her count is 3).* **Joined (First Seen)** The exact timestamp of their very first interaction with any of your forms. **Last Seen** The timestamp of their most recent form submission. Sort by this column to find your most currently active leads. *** ## Technical Edge Cases & Data Hygiene **The Form-vs-Person View:** If Sarah submits 3 different forms, she will appear as 3 separate rows in 3 separate *Submissions Inboxes*. However, in the *Contacts Directory*, she appears as a **single** consolidated row providing a bird's-eye view of her engagement. **Data Deletion Disconnect:** The Contacts Directory is a living ledger designed to track human identity, while Submissions are designed to track specific events. If you manually delete a spam row from a form's Submissions Inbox, it does **not** retroactively decrement the Submission Count on the Contact profile. The Contacts Directory represents a lifetime historical record of interaction that is immune to form-level data purging. **Next Steps:** [Exporting the CRM](/features/contacts/search-export) · [Configuring Primary Emails](/features/blocks/email) # Search & Export Contacts Source: https://flexforms.bjanczak.com/features/contacts/search-export Instantly locate specific respondents and export your deduplicated CRM data to a spreadsheet. The Contacts Directory is designed to handle thousands of leads effortlessly. To make sense of massive datasets, Flex Forms provides a lightning-fast search engine and robust export capabilities. ## The Search Engine You don't need to craft complex SQL queries to find a lead. The global search bar at the top of the Contacts Directory executes a fuzzy search across multiple data vectors simultaneously. Type `jane@company.com` for an exact match, or just `@company.com` to pull up an entire corporate account roster. Type `Jane` to instantly find anyone named Jane, Janet, or any email containing the word "jane". Investigating spam? Type a partial IP prefix (e.g., `203.0.113`) to identify all contacts originating from a specific network. *** ## Sorting & Navigation Click any column header (e.g., **Last Seen** or **Submissions**) to instantly sort the directory. Click it again to reverse the order. This is incredibly useful for instantly identifying your most highly engaged "whale" leads. **Cursor Pagination:** Unlike traditional systems that slow down as you jump to "Page 400", Flex Forms uses advanced cursor-based pagination. Navigating through massive datasets using the **Next** and **Previous** buttons remains blisteringly fast, regardless of directory size. *** ## Exporting the Directory You can extract your pristine, deduplicated CRM data for use in Mailchimp, Salesforce, or external BI tools via the Export engine. Use the search bar or the **Form Filter** dropdown (which restricts the view to contacts who have submitted a *specific* form) to isolate the exact cohort you want to export. Click **Export**, choose **CSV** or **Excel (.xlsx)**, optional joined-date range, then download. The file streams directly (up to 10 000 rows) with `id`, `email`, `name`, `ip_address`, `submissions_count`, `joined_at`, and `last_seen_at`. **Performance Caps:** To protect your server from memory exhaustion, massive directories are subject to an export row cap. If your directory exceeds this limit, the export will safely truncate and display a notification. Simply use the search or form filters to export the data in smaller, manageable cohorts. Yes. If you need to purge test data or comply with GDPR "Right to be Forgotten" requests, select multiple rows using the checkboxes and click the bulk Delete action in the toolbar. Note: This deletes the *directory profile*, it does not hunt down and delete their underlying submissions in the form inboxes. A profile gets a Name when the form includes a [Name](/features/blocks/name) block (preferred) or clear first/last Text input fields. **Related Actions:** [Understanding the Directory](/features/contacts/overview) · [Exporting Raw Submissions](/features/submissions/export-csv) # Manage Form Lifecycles Source: https://flexforms.bjanczak.com/features/forms/create-rename-duplicate Master the fundamental operations: Create, Rename, Duplicate, and Delete forms safely without data loss. The **Forms Hub** provides robust lifecycle management. Every action is designed to protect your data while maximizing operational velocity. ```mermaid theme={} flowchart LR Create["Create"] --> Draft["Initialize Draft"] Draft --> Studio["Launch Studio"] Row["Existing Form"] --> Duplicate["Duplicate"] Duplicate --> Copy["Clone Schema & Assets"] Row --> Delete["Delete"] Delete --> Gone["Purge Configuration & Submissions"] ``` *** ## 1. Create a New Form Click **Create Form** in the top right of the Forms Hub (or from the Studio rail). Enter a human-readable title (e.g., `Q3 Customer Feedback`). Flex Forms instantly generates a URL-safe slug from this title. You are redirected into the visual Studio. The form is created in a **Draft (Unpublished)** state, guaranteeing no external traffic hits it prematurely. Want a branching funnel, scored quiz, or lead qualifier? Follow the logic recipes: [PulseFit](/features/studio/logic/recipes/pulsefit) · [Harbor Quiz](/features/studio/logic/recipes/harbor-quiz) · [Apex Qualifier](/features/studio/logic/recipes/apex-qualifier). *** ## 2. Rename a Form Renaming alters the internal display name and the default header shown to respondents. **It never alters the public URL slug**, ensuring your live links remain intact. Use the context menu in the Hub, or click the title directly in the Studio's top navigation bar. If editing in the Studio, the new title is captured during the next auto-save cycle. *** ## 3. Duplicate an Existing Form Duplication is the ultimate growth hack. It allows you to clone complex architectures—perfect for A/B testing, seasonal campaigns, or multi-language deployments. Select **Duplicate** from the form's row menu in the Hub. Flex Forms clones the entire schema: Pages, Blocks, Logic Rules, Calculated Fields, and Settings. Uploaded logos and cover images are physically copied to new storage paths, preventing asset breakage if the original form is deleted. The cloned form is named ` (copy)` and receives a unique slug. **It is always created as an unpublished Draft.** </Step> </Steps> <Warning> **Integration Feed Warning:** If the original form had active integrations (e.g., Zapier, Mailchimp), they are copied and enabled on the duplicate. Always review your feeds before publishing to prevent test submissions from polluting production systems. </Warning> *** ## 4. Delete a Form Deletion is absolute. It purges the configuration and cascades through your data. <Steps> <Step title="Select Forms"> Check the specific rows in the Hub and click **Delete** (or use the single-row action menu). </Step> <Step title="Acknowledge the Purge"> Confirm the destruction dialog. Submissions specifically tied to this form are removed. There is no undo. </Step> </Steps> <AccordionGroup> <Accordion title="Does deletion wipe out my Contacts?"> No. The respondents themselves are stored in the global **Contacts Directory**. Only the raw submissions linked to the deleted form are purged. </Accordion> <Accordion title="How can I pause a form instead of deleting it?"> Simply click **Unpublish** in the Studio. The URL shows Flex Forms’ branded 404, but all data and configuration remain safely stored for future use. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Understand Fill Links & Slugs](/features/forms/fill-link) · [Enter the Studio](/features/studio/overview) </Panel> # Fill Link & Slug Architecture Source: https://flexforms.bjanczak.com/features/forms/fill-link Understand how public URLs are generated, how to safely modify slugs, and the mechanics of the publish state. The **Fill Link** is the public-facing URL your respondents use to access your form. It is dynamically constructed from your global configuration, your form's specific slug, and its current publish state. ## URL Anatomy ```text theme={} https://your-app.com/forms/contact-sales └──┬─┘ └───┬───────┘ prefix slug ``` <CardGroup> <Card title="The Prefix" icon="folder-tree"> Determined in **Global Settings**. (e.g., `/forms/`, `/s/`). Changes here affect *all* forms. </Card> <Card title="The Slug" icon="tag"> Determined per form. Auto-generated from the title, but fully customizable in the Share settings. </Card> <Card title="The Gate" icon="lock"> The URL only resolves to the form if it is actively **Published**. Drafts and unknown slugs show Flex Forms’ branded **404** page (HTTP 404) — not your Laravel app’s default error screen. </Card> </CardGroup> *** ## Safe Slug Modification You can customize a form's slug to match marketing campaigns or SEO requirements. <Steps> <Step title="Access Share Settings"> From the Forms Hub, click **Share** on your target form. </Step> <Step title="Edit the Slug"> Locate the **Public URL Slug** field. You may use lowercase letters, numbers, and hyphens. Invalid characters are stripped automatically. </Step> <Step title="Save and Validate"> Click **Update Slug**. Flex Forms automatically checks the database to ensure the slug is globally unique across your installation. </Step> </Steps> <Warning> **Breaking Change Alert:** Changing a slug instantly breaks all existing URLs. There are no automatic redirects. Update your external marketing links, QR codes, and embeds immediately after saving. The old slug is released back into the pool. </Warning> *** ## The Publish State Gate ```mermaid theme={} flowchart LR URL[Fill URL Requested] --> Gate{Is Form Published?} Gate -->|Yes| Live[Renders the Form UI] Gate -->|No| CheckAdmin{Signed or Studio preview?} CheckAdmin -->|Yes| RenderPreview[Renders Preview Mode] CheckAdmin -->|No| NotFound[Branded Flex Forms 404] ``` New forms and duplicated forms always start in a **Draft** (unpublished) state. * The standard Fill Link returns Flex Forms’ branded 404 page (status `404`) to external traffic — including wrong slugs and unpublished forms. * You can safely review the form using the **Preview** button in the Studio (temporary signed URL — not a public `?preview=1` bypass). When you click **Publish**, the gate opens and the slug becomes active. *** ## Link Distribution Channels Once live, your Fill Link powers multiple distribution methods: <AccordionGroup> <Accordion title="Direct URL Sharing"> Copy the link and distribute it via SMS, email campaigns, or social media. Configure your Open Graph tags in the Share menu for beautiful link previews. </Accordion> <Accordion title="Web Embeds"> Power Standard, Popup, or Full-Page embeds. The underlying Javascript securely loads the form via this specific slug. [Learn about Embeds](/features/share/embed-modes). </Accordion> <Accordion title="URL Prefilling (embed / popup only)"> Pass dynamic data via query parameters on **embed** or **popup** URLs (e.g., `/forms/contact/embed?email=jane@co.com`). The plain fill link does not prefill. [Learn about Prefilling](/features/share/query-params). </Accordion> </AccordionGroup> <Panel> **Deep Dive:** [Managing Form Lifecycles](/features/forms/create-rename-duplicate) · [The Share Dashboard](/features/share/overview) </Panel> # The Forms Hub Source: https://flexforms.bjanczak.com/features/forms/overview Your centralized dashboard for managing, creating, duplicating, and archiving your form fleet. The **Forms Hub** is the nerve center of your Flex Forms ecosystem. It provides a bird's-eye view of every form in your workspace, allowing you to seamlessly manage lifecycles from a single table. ## Hub Capabilities <CardGroup> <Card title="Create New" icon="plus"> Instantly spin up a new draft form and jump straight into the visual Studio. </Card> <Card title="Rename & Organize" icon="cursor-text"> Update internal display titles without affecting your live production URLs. </Card> <Card title="Duplicate Schemas" icon="copy"> Clone complex architectures (logic, blocks, and design) into a new slug for rapid A/B testing. </Card> <Card title="Publish & Unpublish" icon="globe"> Take a draft live or pull a fill link offline from the row **⋯** menu — no need to open Studio. </Card> <Card title="Account menu" icon="user"> Under Global Settings, open your avatar for **profile**, **log out**, and any Filament panel user-menu links your host app registered. </Card> <Card title="Manage Lifecycles" icon="trash-2"> Safely delete obsolete forms. Flex Forms manages the underlying data cleanup according to your compliance rules. </Card> </CardGroup> *** ## Architectural Workflow ```mermaid theme={} flowchart TD List[Forms Hub Table] --> Create[Create New Form] List --> Open[Enter Studio] List --> Share[Access Share Links] List --> Insights[View Analytics] List --> Subs[Process Submissions] Create --> Open ``` <Steps> <Step title="Navigate to Forms"> Locate **Forms** in your Filament sidebar under the Flex Forms navigation group. </Step> <Step title="Interact with the Fleet"> Click a row to edit its schema in the Studio, or use the action buttons (Insights, Share, Submissions) to dive into the data. </Step> <Step title="Execute Actions"> Use the context menu (three dots) on any row to Rename, Duplicate, or Delete that specific form. </Step> </Steps> *** ## Mastering the Fill Link Every form generates a unique, SEO-friendly **public slug**. Altering this slug breaks existing links, so plan your routing carefully. For a deep dive into URL architecture, review the [Fill Link & Slug documentation](/features/forms/fill-link). <Panel> **Next Steps:** [Lifecycle Actions in Depth](/features/forms/create-rename-duplicate) · [Enter the Studio](/features/studio/overview) </Panel> # Answers, Visits & Drop-offs Source: https://flexforms.bjanczak.com/features/insights/answers-visits-dropoffs Master the three core analytical panels: question-by-question distributions, traffic KPIs, and the abandonment funnel. The Insights Dashboard is segmented into three specialized tabs. Understanding how to read these panels is critical for optimizing your form's conversion rate and extracting actionable data. ## 1. The Answers Panel The **Answers** tab is designed for qualitative and quantitative research. It generates a visual card for every block on your form, displaying exactly how respondents answered. <Steps> <Step title="Choice Distributions"> For Choice blocks (Dropdowns, Radios, Checkboxes), the panel renders beautiful bar charts showing the percentage breakdown of each selected option. </Step> <Step title="Textual Analysis"> For Text and Number blocks, it calculates summary statistics (e.g., Average, Min, Max) and provides a randomized sample of recent raw text entries for quick sentiment analysis. </Step> </Steps> <Callout type="info"> **Intelligent Grouping:** If a Dropdown block has 100 possible options, rendering a 100-bar chart would ruin the UX. The engine intelligently caps the chart at the top most-selected options, grouping the rest into an "Other" category to maintain readability. </Callout> *** ## 2. The Visits Panel The **Visits** tab provides high-level traffic metrics and demographic breakdowns, independent of whether the visitor actually filled anything out. ### Core KPIs * **Visits:** Total number of times the form was loaded. * **Submissions:** Total number of completed entries. * **Conversion %:** The holy grail metric (Submissions ÷ Visits). * **Duration:** The average time it takes a user to complete the form. Below the KPIs, the engine renders demographic cards detailing the traffic's **Device Types**, **Browsers**, **Referrers**, and **Geographic Origins** (Country/City). <Tip> **Trend Indicators:** Every KPI displays a small delta arrow (e.g., `<span style="color: green">↑ 12%</span>`). This automatically compares the current date range against the immediately preceding period of equal length, allowing you to spot traffic trends instantly. </Tip> *** ## 3. The Drop-offs Panel The **Drop-offs** tab is a diagnostic tool used to fix leaky funnels. It visualizes the exact moment users abandon your form. <Steps> <Step title="The Global Funnel"> The top summary shows total Visitors vs. total Form Starts vs. total Completes. </Step> <Step title="The Step-by-Step Breakdown"> Below the summary, every single question is visualized as a bar, showing how many people viewed it, answered it, and dropped off on it. </Step> <Step title="Actionable Optimization"> Look for the question with the highest red "Drop Rate" percentage. This is your friction point. To increase conversions, consider rewriting the question, making it optional, or moving it to the end of the form. </Step> </Steps> <Panel> **Next Steps:** [Segmenting with Filters](/features/insights/filters-live) · [Sharing the Dashboard](/features/insights/public-share) </Panel> # Filters & date ranges Source: https://flexforms.bjanczak.com/features/insights/filters-live Slice Insights by date range and traffic cohorts from the Filters side panel. A global dashboard is useful, but the real power of Insights lies in segmentation. Filters let you isolate specific cohorts of traffic to see how different demographics behave. ## Date ranges Every Insights tab is scoped to the active date range in the toolbar. <Steps> <Step title="Quick presets"> Pick common ranges such as **Today** or **Last 7 days**. </Step> <Step title="Custom campaigns"> Choose **Custom range**, then set the start and end dates in the date range control. The calendar opens in a popover so the toolbar does not push the layout down. </Step> </Steps> *** ## Cohort filters (Visits, Drop-offs & Global Stats) On form **Insights** (**Visits** / **Drop-offs**) and workspace **Global Stats**, open **Filters** next to the date range (same control pattern as Contacts). A panel slides in from the right with the traffic dimensions for the current range. <CardGroup> <Card title="Demographic slicing" icon="users-viewfinder"> Filter by **Device**, **Country**, **City**, **Browser**, or **OS**. *Example: Are mobile users dropping off faster than desktop?* </Card> <Card title="Attribution" icon="bullseye"> Filter by **Referrer** or `utm_source` / `utm_medium` / `utm_campaign`. *Example: Which campaign converts better?* </Card> </CardGroup> Active filters appear as chips under the toolbar so you can clear one dimension at a time, or clear all from the drawer footer. *** ## Export & share From the Insights header (before **Edit**): * **Export events CSV** — download raw events for the current range and filters * **Share insights** — create password-optional public dashboard links <Panel> **Next:** [Answers, Visits & Drop-offs](/features/insights/answers-visits-dropoffs) · [Public share](/features/insights/public-share) </Panel> # The Insights Engine Source: https://flexforms.bjanczak.com/features/insights/overview Transform raw form data into actionable decisions. Visualize traffic, answer distributions, and pinpoint exact conversion drop-offs. The **Insights Dashboard** is a built-in, real-time analytics suite. Instead of forcing you to export CSVs to third-party BI tools, Flex Forms automatically processes fill events, traffic volume, and abandonment rates into beautiful, presentation-ready visualizations. <img alt="Flex Forms analytics and security — Insights, gates, CAPTCHA, encryption, and retention" /> ```mermaid theme={} flowchart LR Fill[Fill_events] --> Buffer[Today_buffer] Buffer --> Rollups[Daily_rollups] Rollups --> UI[Insights_UI] UI --> Share[Public_share_links] ``` *** ## The Three Pillars of Insights The dashboard is divided into three distinct panels, each answering a different strategic question about your form's performance. <Tabs> <Tab title="Answers (What they said)"> Provides visual distributions (bar charts, pie charts) for every individual question on your form. Essential for visualizing survey results or quiz scores at a glance. </Tab> <Tab title="Visits (Who they are)"> Aggregates traffic volume, conversion rates, geographic origins, and device types. Crucial for understanding campaign performance. </Tab> <Tab title="Drop-offs (Where they left)"> Generates a step-by-step funnel visualization, showing exactly which question caused respondents to abandon the form. Critical for optimizing completion rates. </Tab> </Tabs> *** ## The Analytical Workflow <Steps> <Step title="Access the Dashboard"> From your Form Hub, click the **Insights** tab to load the real-time engine. </Step> <Step title="Define the Temporal Range"> Use the Date Picker in the toolbar to isolate specific timeframes (e.g., *"Last 7 Days"*, or a custom range matching a specific marketing campaign). </Step> <Step title="Segment the Data"> Apply [Live Filters](/features/insights/filters-live) to narrow the data down to a specific cohort (e.g., *"Show me only Mobile users from the United Kingdom"*). </Step> <Step title="Distribute Findings"> Create a secure [Public Share Link](/features/insights/public-share) to distribute a read-only version of the dashboard to external clients or stakeholders. </Step> </Steps> *** ## Enterprise-Grade Scaling If you are running a high-traffic campaign (e.g., a viral giveaway or a global product launch), Flex Forms automatically leverages **Redis** to ensure the Insights dashboard remains perfectly responsive, even when thousands of users are submitting concurrently. <Panel> **Deep Dives:** [Understanding the 3 Panels](/features/insights/answers-visits-dropoffs) · [Redis Scaling Architecture](/features/insights/redis-scaling) </Panel> # Public Share Links Source: https://flexforms.bjanczak.com/features/insights/public-share Generate secure, read-only dashboard links to present form performance to external stakeholders and clients. Form performance shouldn't be locked inside your admin panel. **Public Share Links** allow you to generate a secure, read-only version of the Insights Dashboard that can be distributed to marketing teams, executives, or external clients—without requiring them to have a Filament login. ## Generating a Share Link <Steps> <Step title="Access the Share Hub"> Click the **Share Insights** button located in the top toolbar of the dashboard. </Step> <Step title="Select Data Scopes"> You have granular control over what the stakeholder can see. Check or uncheck the **Answers**, **Visits**, and **Drop-offs** tabs. *(Example: You might want a client to see traffic Visits, but hide the raw Answers to protect respondent privacy).* </Step> <Step title="Apply Security (Optional)"> Enter a password in the security field to lock the dashboard. The client will be prompted to enter this password before the data loads. </Step> <Step title="Generate the URL"> Click **Create Share**. The system generates a unique, cryptographic URL and copies it to your clipboard. </Step> </Steps> *** ## The Stakeholder Experience When a stakeholder opens the link, they are presented with a beautiful, branded, read-only environment. While they **cannot** edit the form or view raw PII in the Submissions Inbox, they **can** manipulate the Date Ranges and Filters within the shared dashboard, allowing them to interactively explore the data you permitted them to see. *** ## Managing Active Links You retain complete control over all distributed links. Below the creation panel, you will see a list of every active share link currently in circulation. <CardGroup> <Card title="Audit Active Links" icon="list-check"> See exactly which links are active, whether they are password protected, and which tabs they expose. </Card> <Card title="Instant Revocation" icon="ban"> Click **Revoke** to immediately destroy the link. Anyone attempting to visit the URL will instantly receive an "Expired" message. </Card> </CardGroup> <Callout type="warning"> **Automatic Expiration:** For security, all public share links automatically expire 30 days after creation. If a client needs permanent access, you must generate a new link for them. </Callout> <Panel> **Next Steps:** [Understanding the Dashboard Panels](/features/insights/answers-visits-dropoffs) </Panel> # Redis Scaling Architecture Source: https://flexforms.bjanczak.com/features/insights/redis-scaling Understand how Flex Forms autonomously leverages Redis to ensure real-time analytics during massive traffic spikes. The Insights Dashboard is engineered to remain instantaneous, whether you are receiving 10 submissions a day or 10,000 submissions a minute. To achieve this, Flex Forms can hook into your Laravel **Redis** instance for Insights acceleration when available. Defaults usually stay on **Auto** in [Global Settings → Insights](/get-started/global-settings); you can force On/Off there or via environment — see [Redis production](/guides/redis-production). Insights Redis **no longer owns** the shared Flex Forms plugin cache (`FlexFormsCache`) by default. TodayBuffer / HyperLogLog still use Insights Redis when Insights mode resolves to **On**. To restore shared Redis for Studio menus, integration catalogs, fill resolvers, and similar plugin keys, set `FLEX_FORMS_CACHE_REDIS_MODE=follow_insights` (or `on`). ## How Autonomous Scaling Works When the Flex Forms engine boots, it checks Global Settings and your environment. If Insights Redis mode allows it and a reachable Redis connection exists, heavy analytical workloads (TodayBuffer, HLL uniques) move off the primary SQL database onto Redis. Plugin cache stays on the default Laravel cache store unless you opt in with `FLEX_FORMS_CACHE_REDIS_MODE`. <Table> <thead> <tr> <th>Analytical Workload</th> <th>Standard Mode (SQL)</th> <th>Redis Accelerated Mode</th> </tr> </thead> <tbody> <tr> <td>**Unique Visitor Counting**</td> <td>Computed via expensive `COUNT(DISTINCT)` queries on raw events.</td> <td>Utilizes Redis *HyperLogLog* probabilistic counters for instant, memory-efficient cardinality.</td> </tr> <tr> <td>**Live "Today" Metrics**</td> <td>Recomputes the entire day's raw events on every dashboard load.</td> <td>Maintains live, constantly updated integer increments in Redis Hashes.</td> </tr> </tbody> </Table> *** ## Infrastructure Considerations <Steps> <Step title="Low-to-Medium Traffic"> If your form receives standard traffic (a few hundred hits a day), the Standard SQL Mode is perfectly fine. The dashboard will feel instant, and Redis is not strictly required. </Step> <Step title="Viral or High-Traffic Launches"> If you anticipate a massive traffic spike (e.g., a SuperBowl ad or a massive influencer campaign), you **must** ensure Redis is active. Attempting to run massive live analytics entirely on a SQL database can cause locks and degrade the respondent's form-filling experience. </Step> </Steps> <Callout type="info"> **Data Durability:** Redis is used purely for *acceleration*. Flex Forms always writes the permanent, durable rollups to your primary SQL database. If your Redis instance crashes or is flushed, you do not lose any historical insights data. The system simply falls back to SQL mode seamlessly. </Callout> <Panel> **Technical Implementation:** Pass this document to your DevOps team and review the [Redis Production Checklist](/guides/redis-production). </Panel> # Access & Security Gates Source: https://flexforms.bjanczak.com/features/settings/access Password, CAPTCHA, close form, entry caps, scheduling, duplicates, and closed messages — every Access control in Settings. Open **Studio → Form settings (gear) → Access**. Gates are enforced server-side on fill — not only in the browser. ```mermaid theme={} flowchart TD Req[Fill_request] --> Closed{close_form?} Closed -->|Yes| MsgClosed[Closed_message] Closed -->|No| Sched{Inside_schedule?} Sched -->|No| MsgWait[Waiting_or_expired] Sched -->|Yes| Cap{Entry_cap?} Cap -->|Hit| MsgCap[Max_entries_message] Cap -->|OK| Pw{Password?} Pw -->|Yes| Unlock[Password_gate] Pw -->|No| Captcha{CAPTCHA?} Unlock --> Captcha Captcha -->|Fail| Block[Reject] Captcha -->|OK| Form[Render_form] Form --> Dup{Duplicate_rule?} Dup -->|Hit| RejectSubmit[Reject_submit] Dup -->|OK| Accept[Accept_submission] ``` ## Controls (1:1 with Settings UI) ### Password <ParamField type="toggle"> Require a password before the schema is shown. Stored hashed — enter a new password only to replace an existing one. </ParamField> ### CAPTCHA (one provider) Visible only when [reCAPTCHA](/integrations/recaptcha) and/or [Turnstile](/integrations/turnstile) are connected under left-rail **Integrations**. <ParamField type="select"> `none` | `recaptcha` | `turnstile`. Exactly **one** provider per form — never both. Not a Studio canvas block. </ParamField> ### Close form <ParamField type="toggle"> Immediate kill switch — no new responses. </ParamField> ### Max entries <ParamField type="toggle"> Cap volume with `max_submissions` + frequency (total / day / week / month / per user options from the UI) and a custom `max_submissions_message`. </ParamField> ### Scheduling <ParamField type="toggle"> Timezone, weekday checkboxes, start/end datetimes, waiting message, expired message. </ParamField> ### Closed message <ParamField type="toggle"> Custom copy when the form is manually closed (separate from schedule / cap messages). </ParamField> ### Duplicate prevention <ParamField type="toggle"> Identify repeats by IP or by a chosen form field (e.g. primary email). Second submit is rejected server-side. Prefer a field (email) when possible. IP mode needs correct [trusted proxies](/get-started/installation#trusted-proxies-production) behind a CDN/load balancer; private/reserved IPs are ignored so a misconfigured proxy cannot lock the form for all visitors. </ParamField> <Panel> Guide: [Access gates](/guides/access-gates) · Integrations: [reCAPTCHA](/integrations/recaptcha) · [Turnstile](/integrations/turnstile) </Panel> # Behavior & UX Source: https://flexforms.bjanczak.com/features/settings/behavior Auto-jump, save-for-later, and Submit / Next / Back button labels in Form Settings → Behavior. Open **Studio → Form settings (gear) → Behavior**. Save with the Settings bar when dirty. ```mermaid theme={} flowchart TD Answer[Respondent_answers] --> Logic{Logic_jump?} Logic -->|Yes_and_auto_jump| Instant[Instant_page_transition] Logic -->|Yes_manual| NextBtn[Wait_for_Next] Answer --> Local{Save_for_later?} Local -->|On| LS[Browser_localStorage] Local -->|Off| Ephemeral[Lost_on_tab_close] Submit[Submit_click] --> Label[Custom_submit_label] NextBtn --> NextLabel[Custom_next_label] ``` ## Controls (1:1 with Studio) <ParamField type="toggle"> When a [Logic Board](/features/studio/logic-board) rule jumps to another page, skip the manual **Next** click and transition immediately after the answer syncs. Best on single-question pages; on dense pages it can feel abrupt. **Next** and **Back** stay available as fallback; **Submit** still appears only on the last page. </ParamField> <ParamField type="toggle"> Writes progress to the respondent’s **browser `localStorage`**. Closing the tab and returning restores answers. Data never hits your server — for server-side abandoned leads use [Partial submissions](/features/settings/general). </ParamField> <ParamField type="string"> Final button label on the last page (e.g. `Get my quote`, `Register`). You can also edit it from the gear icon next to Submit on the builder canvas. </ParamField> <ParamField type="string"> Multi-page **Next** button label. Edit from Form Settings → Behavior or the gear icon beside Next on the canvas (when the form has more than one page). </ParamField> <ParamField type="string"> Multi-page **Back** button label. Same editing surfaces as Next. </ParamField> <Panel> Related: [Logic Board](/features/studio/logic-board) · [Partials guide](/guides/partials-save-later) · [General](/features/settings/general) </Panel> # Automated Emails & PDFs Source: https://flexforms.bjanczak.com/features/settings/emails-pdf Deploy instant auto-responders, team alerts, and branded HTML receipts directly from the form engine. The **Emails** engine automates communication the moment a form is completed. It handles two pathways: notifying your internal team, and thanking the respondent — both as polished, client-safe HTML emails (with a plain-text fallback). ## 1. Internal Team Alerts (Self Notifications) Never miss a hot lead or an urgent support ticket. <Steps> <Step title="Enable Internal Alerts"> In Form Settings → Email notifications, toggle **Notify me** on. </Step> <Step title="Define Routing"> Specify one or multiple addresses (e.g. `sales@acme.com, ceo@acme.com`). </Step> <Step title="Customize the Payload"> Set the **Subject** and **Message**. Flex Forms dispatches a branded HTML team alert (hero artwork plus your message and submission answers). Optional merge tags: `{form_title}`, `{form_name}`, `{submission_id}`, `{submitted_at}`. </Step> </Steps> *** ## 2. Auto-Responders (Respondent Notifications) Confirm submissions instantly. <Steps> <Step title="Enable Auto-Responders"> Toggle **Notify respondent** on. </Step> <Step title="Bind the Target Address"> Choose which [Email Block](/features/blocks/email) holds the respondent address, and/or enter a fixed **To** address. </Step> <Step title="Craft the Message"> Write a confirmation (e.g. *"Thanks — we will review within 24 hours."*). Toggle **Attach PDF of answers** to include their answers in the HTML receipt **and** attach a PDF file of the answers. </Step> </Steps> *** ## 3. Customize the HTML templates Every notification uses publishable Blade views — edit the HTML visually however you like without forking the package: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-mail ``` This writes files under `resources/views/vendor/filament-flex-forms/mail/`: | File | Purpose | | - | - | | `submission-admin.blade.php` | Team alert layout | | `submission-respondent.blade.php` | Respondent receipt | | `submission-text.blade.php` | Plain-text fallback | | `partials/*` | Shared chrome + answers table | Accent color defaults to your form design accent (or `FLEX_FORMS_MAIL_ACCENT`). Team alerts use the optional **email logo** from Global Settings → Mail when uploaded; otherwise the **site name** from Appearance is shown as text in the header and footer. Emails are **queued** so respondents are not blocked waiting on SMTP. Ensure your Laravel queue worker is running in production. <Callout type="warning"> These emails use your Laravel mail driver (SMTP, Postmark, SES, …). You do not need Mailchimp or Zapier for basic receipts. </Callout> <Panel> **Next Steps:** [Integrations](/features/settings/integrations) · [Config & env](/developers/config-env) </Panel> # General Settings Source: https://flexforms.bjanczak.com/features/settings/general Form title, slug, language, wizard stepper, redirects, partials, branding, and data retention — matching the Studio form settings modal. Open **Studio → Form settings (gear) → General**. Changes apply after you click **Save** in the modal footer. ```mermaid theme={} flowchart LR Studio[Studio_form_settings] --> General[General_section] General --> Identity[Title_slug_language] General --> UX[Wizard_redirect] General --> Lifecycle[Partials_retention_branding] Identity --> Fill[Public_fill] UX --> Fill Lifecycle --> Inbox[Inbox_and_purge_jobs] ``` ## Identity & localization <ParamField type="string"> Form title — used as the public heading and in Studio lists. </ParamField> <ParamField type="string"> Public URL segment (e.g. `/forms/enterprise-contact`). Use **Update slug** to commit. Changing a live slug breaks existing links and embeds. </ParamField> <ParamField type="select"> Fill UI language (Submit, errors, upload hints). Selecting Arabic or Hebrew also sets **text direction** to RTL automatically. Customize or add locales via [Localization & RTL](/get-started/languages-rtl). </ParamField> <ParamField type="select"> `ltr` or `rtl`. Shown when direction control is enabled for the form language set. </ParamField> *** ## Redirect & wizard <ParamField type="toggle"> When on, respondents leave the thank-you screen and hard-redirect to `redirect_url` after submit. </ParamField> <ParamField type="string"> Destination URL when redirect is enabled. </ParamField> <ParamField type="select"> Multi-page chrome (only when the form has **more than one page**): * `tiles` — discrete step tiles * `bar` — continuous progress bar through the wizard * `none` — hide the stepper With **Jump to page** / branching, both styles use the **visited path** for progress. In tiles mode, unvisited branch pages are hidden so respondents only see the path they are on. See [Wizard Stepper](/get-started/progress-bar-wizard). </ParamField> <ParamField type="string"> Accent color for active wizard rails / bar when stepper is not `none`. </ParamField> *** ## Partials, branding, retention, encryption <ParamField type="toggle"> Persist incomplete answers server-side so abandoned fills appear in the Inbox. Distinct from [Save for later](/features/settings/behavior) (browser `localStorage` only). </ParamField> <ParamField type="toggle"> Encrypts the full answer payload at rest (Laravel `Crypt` / your `APP_KEY`) — both `flex_form_submission_answers` rows **and** the submission `payload` JSON column. Use when the form collects sensitive data. Studio, exports, integrations, and notification emails still show decrypted values to authorized users / configured destinations. </ParamField> <Tip> Organization-wide policy: **Global Settings → Security → Require encryption on all forms**, or `FLEX_FORMS_FORCE_SUBMISSION_ENCRYPTION=true`. Either option locks this toggle on for every form — see [Multi-tenancy](/developers/multi-tenancy). </Tip> <ParamField type="toggle"> Show the “Powered by Flex Forms” footer on the public fill page. A Pro badge next to the label explains that hiding branding is available on **Pro** and above; otherwise the toggle stays locked on. </ParamField> <ParamField type="toggle"> Automatically purge submissions after a retention window. </ParamField> <ParamField type="number"> How long to keep submissions when retention is on (paired with `data_retention_unit`). </ParamField> <ParamField type="select"> `day`, `week`, `month`, or `year`. </ParamField> # Form-Level Integrations Settings Source: https://flexforms.bjanczak.com/features/settings/integrations Connect a form to Mailchimp, HubSpot, webhooks, and more — map fields and route submissions from the form hub Integrations tab. Your form data shouldn't sit in a silo. Flex Forms routes completed submissions into your marketing and sales tools as soon as a respondent finishes. <Banner type="info"> This page covers **per-form** feeds. API keys and OAuth live under **Integrations** in the Flex Forms left rail — not inside [Global Settings](/get-started/global-settings). See the [Integrations catalog](/integrations/overview). **Stripe** is different: connect keys under the left-rail Integrations page, then configure every payment option on the **Stripe Payment** block in Studio — Stripe does not appear on this form Integrations tab. See [Stripe](/integrations/stripe). </Banner> ## Two tiers <CardGroup> <Card title="1. Catalog + Connections" icon="lock"> Admins open **Integrations** in the left rail. Use the **Catalog** tab to enable providers and paste global API keys. Use the **Connections** tab for reusable OAuth / named accounts (for example multiple Salesforce orgs). Credentials stay encrypted for the whole panel. </Card> <Card title="2. Form-level feed" icon="sliders"> On each form, open the hub **Integrations** tab to enable feeds, pick a Connection when required, choose lists/pipelines, and map blocks to CRM fields. </Card> </CardGroup> *** ## Configure a form feed <Steps> <Step title="Open the form hub"> From the Flex Forms list, open the form. Use the top hub tabs (Insights, Submissions, Share, **Integrations**). </Step> <Step title="Open Integrations"> Select the **Integrations** hub tab. You will see every provider that is already connected globally. </Step> <Step title="Enable the feed"> Turn on the provider you need (for example HubSpot). If it is missing entirely, an administrator still needs to add credentials under the left-rail **Integrations** page. </Step> <Step title="Choose destination and map fields"> Pick the list, audience, or pipeline. Map each form block to the provider’s property keys (API names, not display labels). </Step> <Step title="Save and test"> Save, then submit a real test on the fill URL to confirm the payload arrives correctly. </Step> </Steps> *** ## Enterprise options <AccordionGroup> <Accordion title="Primary email required"> Many CRMs reject contacts without an email. If a feed needs identity, add an [Email](/features/blocks/email) block and mark it primary before enabling the feed. </Accordion> <Accordion title="Conditional routing"> Use [Conditional integrations](/integrations/conditional-feeds) so only matching submissions leave Flex Forms (for example Department = Sales → HubSpot). </Accordion> <Accordion title="Custom webhooks"> For tools without a native driver, use [Webhooks](/integrations/webhooks) to `POST` the full submission JSON to your endpoint. </Accordion> </AccordionGroup> # Form Settings Source: https://flexforms.bjanczak.com/features/settings/overview Configure access gates, automated emails, behavior, and general options for each form from the Studio settings modal. While the Studio canvas controls *what* data is collected, **Form Settings** control who can access the form, what happens after submit, and how the fill experience behaves. Every form has its own settings. Configuring a locked internal request form never changes your public marketing surveys. Open settings from the Studio gear icon (Form settings modal). Settings open in a **modal** with sections on the left: General, Access & Scheduling, Language, Notifications, and Behavior. There is no Settings tab on the form hub — hub tabs are Insights, Submissions, Share, and Integrations. ```mermaid theme={} flowchart TD Settings["Form settings modal"] --> General["General"] Settings --> Access["Access & Scheduling"] Settings --> Language["Language"] Settings --> Emails["Notifications"] Settings --> Behavior["Behavior"] ``` Third-party CRM and webhook feeds are **not** inside Settings — use the hub **Integrations** tab. See [Form-level integrations](/features/settings/integrations). *** ## Sections <CardGroup> <Card title="General Settings" icon="sliders-horizontal" href="/features/settings/general"> URL slug, redirects, branding, and data retention. </Card> <Card title="Language" icon="languages" href="/features/settings/general"> Fill UI language and text direction for respondents. </Card> <Card title="Behavior & UX" icon="workflow" href="/features/settings/behavior"> Auto-jump, partials / save-for-later, and fill experience toggles. </Card> <Card title="Access & Security Gates" icon="lock" href="/features/settings/access"> Passwords, entry caps, schedules, duplicate prevention, and CAPTCHA. </Card> <Card title="Automated Emails & PDFs" icon="mail" href="/features/settings/emails-pdf"> Respondent receipts and team alerts, with optional PDF attachments. </Card> <Card title="Integrations (hub tab)" icon="plug" href="/features/settings/integrations"> Mailchimp, HubSpot, Zapier, webhooks, and conditional feeds — configured on the form hub Integrations tab. </Card> </CardGroup> <Callout type="info"> **Save explicitly:** Form Settings use **Save** in the modal footer when something is dirty. Studio canvas autosave is separate — changing Settings does not apply until you save. </Callout> <Panel> **Next:** [General Settings](/features/settings/general) · [Access](/features/settings/access) · [Integrations](/features/settings/integrations) </Panel> # Website Embedding Source: https://flexforms.bjanczak.com/features/share/embed-modes Deploy your forms directly into your own website using zero-code HTML snippets. You don't need to send users away to a standalone URL. Flex Forms generates robust, copy-and-paste HTML snippets allowing you to embed the form directly into your WordPress, Webflow, Shopify, or custom-built website in seconds. ## The Three Embed Modes Depending on your UX goals, you can choose between three distinct embed architectures directly from the Share screen. <Tabs> <Tab title="Standard (Inline Iframe)"> The most common approach. The form renders directly within the flow of your existing webpage, exactly like an embedded YouTube video. <Steps> <Step title="Configure Height"> Define a base pixel height. We strongly recommend leaving **Dynamic Height** enabled. This allows the form to automatically communicate with your website to stretch or shrink its height as the user navigates between pages or triggers conditional logic, eliminating ugly internal scrollbars. </Step> <Step title="Paste the Snippet"> Copy the generated `<iframe>` and the tiny `<script>` tag, and paste them into your website's HTML body. </Step> </Steps> </Tab> <Tab title="Popup (Modal Overlay)"> The form remains hidden until the user clicks a specific button or hyperlink on your website, at which point it opens in a sleek modal overlay. <Steps> <Step title="Select the Trigger"> Choose whether you want the snippet to generate a styled `<button>` or a simple text `<a href="...">` link. </Step> <Step title="Define Positioning"> Choose where the popup appears (Centered, Bottom Right, Top Left, etc.) and define its max-width. </Step> <Step title="Add Polish (Optional)"> Enable the **Dimmed Overlay** to blur the background website, and consider enabling an **Emoji Teaser** (e.g., a bouncing 👋) to draw attention to the trigger button. </Step> </Steps> </Tab> <Tab title="Full Page Document"> This mode generates a complete, standalone `<html>` document containing nothing but your form. This is highly specialized. Use this if you are a developer building a dedicated routing architecture or if you need to serve the form from a completely isolated environment that you control entirely. </Tab> </Tabs> *** ## Universal Embed Options Regardless of which mode you choose, you can toggle several cosmetic overrides before copying the code: <CardGroup> <Card title="Hide Title" icon="eye-slash"> If you embed the form on a webpage that already has a massive `<h1>` header saying "Contact Us", you don't want the embedded form to repeat it. This hides the form's internal title. </Card> <Card title="Transparent Background" icon="droplet"> Strips the form's configured background color, allowing your website's native background (e.g., a gradient or an image) to show through the iframe seamlessly. </Card> <Card title="Track Form Events" icon="satellite-dish"> For advanced marketers. This instructs the iframe to broadcast standard `postMessage` events (like `form_started` or `form_submitted`) to your parent website, allowing you to hook them into Google Tag Manager or Meta Pixels. </Card> </CardGroup> <Warning> **The Loader Script:** Every snippet contains a small `<script>`. If you are embedding *multiple* forms on the exact same webpage, you only need to include this script tag once. Flex Forms will automatically detect it and manage all iframes on the page. </Warning> <Panel> **Next Steps:** [Injecting Data into Embeds via Query Parameters](/features/share/query-params) </Panel> # Share & Embed Source: https://flexforms.bjanczak.com/features/share/overview Distribute your form to the world. Configure social media previews and generate zero-code embed snippets for your website. The **Share** screen is the distribution hub for your form. While the [Access Settings](/features/settings/access) dictate *who* can view your form, the Share screen dictates *how* it looks when it is distributed across the internet. ## Social Previews (Open Graph) When you paste a link into Slack, iMessage, LinkedIn, or Twitter, those platforms automatically generate a "Preview Card". If you do not configure your Social Preview, those platforms will display a blank, generic card. You can customize this directly in the Share panel to ensure your form looks professional and trustworthy. <Steps> <Step title="Define the Title"> The primary headline of the preview card. Keep it under **120 characters**. (e.g., *"Register for the 2024 Developer Summit"*). </Step> <Step title="Write the Description"> A brief subtitle that appears below the headline. Keep it under **300 characters** to prevent truncation. </Step> <Step title="Upload the Thumbnail"> Upload a high-resolution image to serve as the card's visual anchor. </Step> </Steps> <Tip> **Optimal Image Dimensions:** For the crispest, uncropped result across all platforms, upload an image that is exactly **1200 × 630 pixels** (a standard 1.91:1 ratio). </Tip> *** ## Publishing Pathways Once your form is published and your social preview is set, you have two primary ways to distribute it to respondents. <CardGroup> <Card title="The Direct Link" icon="link" href="/features/forms/fill-link"> The simplest method. Share the raw URL directly via email campaigns, SMS, or QR codes. The form operates as a standalone landing page. </Card> <Card title="Website Embedding" icon="code" href="/features/share/embed-modes"> Keep respondents on your own domain. Generate an HTML snippet to embed the form directly into your existing website seamlessly. </Card> </CardGroup> <Warning> **Branding Context:** The Social Preview only affects how the *link* looks when shared on third-party platforms. It does **not** change the internal header image or the background color of the form itself. To modify the form's actual visual design, use the [Studio Customization Panel](/features/studio/customize). </Warning> <Panel> **Deep Dive:** [Mastering Website Embeds](/features/share/embed-modes) </Panel> # URL Parameter Prefilling Source: https://flexforms.bjanczak.com/features/share/query-params Prefill fields from query parameters on Standard embed and Popup routes — not on the plain fill link. If you already know a respondent's email address or name (because they are clicking a link from your CRM or email newsletter), you should never force them to type it again. Flex Forms **prefills** inputs automatically when query parameters match a field's internal name — **on embed and popup routes only**. The plain (non-embed) fill link does not read prefill params. ## How Prefilling Works <Steps> <Step title="Locate the Internal Name"> Open the [Field Settings](/features/studio/field-settings) for the block you want to prefill. Look for the **Internal Name** at the very top of the panel (e.g., `email_address`). This is the programmatic key. </Step> <Step title="Use an embed or popup URL"> Prefill only runs when the form is loaded as an **embed** or **popup** (not the standalone fill link). Append `?` followed by the Internal Name, an `=`, and the value. *Example:* `https://yoursite.com/forms/contact/embed?email_address=jane@example.com` </Step> <Step title="Chain Multiple Parameters"> You can prefill multiple fields simultaneously by separating them with an `&`. *Example:* `...?email_address=jane@example.com&company=AcmeCorp` </Step> </Steps> <Callout type="info"> **Validation Still Applies:** Prefilling a field does not bypass security. If you prefill an Email block with the string `"not_an_email"`, the block will still throw a validation error when the user attempts to submit, exactly as if they had typed it manually. </Callout> <Warning> Prefill does **not** run on the plain fill link (`/forms/your-slug`). If you need prefill on a shared URL, use a [Standard embed](/features/share/embed-modes) (or Popup) and put the query string on the embed/popup URL. </Warning> *** ## Silent Prefilling If you want to track UTM parameters (e.g., `?utm_source=twitter`) or internal CRM Account IDs without exposing them to the respondent: 1. Add a text (or other scalar) block whose internal **Name** matches the query key (e.g. `utm_source`). 2. Open field settings and use **Hide** so the field is hidden from respondents. Query values still prefill that field and appear in the submission — respondents never see the input. *** ## Reserved System Parameters Flex Forms uses a few specific Query Parameters internally to control how embedded forms render. **Do not** name any of your blocks with these exact strings, as it will cause conflicts. <Table> <thead> <tr> <th>Reserved Key</th> <th>System Function</th> </tr> </thead> <tbody> <tr> <td>`hideTitle`</td> <td>Instructs the embed to hide the form's main header.</td> </tr> <tr> <td>`alignLeft`</td> <td>Overrides centering to flush the form to the left margin.</td> </tr> <tr> <td>`transparentBackground`</td> <td>Removes the form's canvas background color.</td> </tr> <tr> <td>`dynamicHeight`</td> <td>Auto-resize the iframe to content height.</td> </tr> <tr> <td>`preview`</td> <td>Request preview mode (requires a valid signed URL or authenticated Studio viewer).</td> </tr> <tr> <td>`popup`</td> <td>Internal popup-routing flag.</td> </tr> <tr> <td>`formEventsForwarding`</td> <td>Forward fill lifecycle events via `postMessage`.</td> </tr> </tbody> </Table> <AccordionGroup> <Accordion title="Why doesn't prefill work on the plain fill link?"> Prefill-from-query only runs for the embed and popup routes. If you need prefill on a direct link, wrap it in a Standard embed instead. </Accordion> <Accordion title="Can I prefill complex blocks?"> No. Prefilling is designed for standard scalar data (Short Text, Long Text, Numbers, Emails, Phones, Dates, and Choice Blocks). You cannot prefill complex binary arrays like File Uploads, Signatures, or full Matrix Grids via URL parameters. </Accordion> <Accordion title="Does prefilling lock the field?"> No. A prefilled field behaves exactly like a typed field. The respondent is free to delete your prefilled value and type something else before submitting. If you want to prevent them from changing it, you must use the [Logic Board](/features/studio/logic-board) to mark the field as **Read-Only**. </Accordion> </AccordionGroup> <Panel> **Related:** [Developer query params](/developers/query-params) · [Field settings](/features/studio/field-settings) · [Embed modes](/features/share/embed-modes) </Panel> # Calculated fields Source: https://flexforms.bjanczak.com/features/studio/calculated-fields Create Calculated fields, set an initial value, then use Conditional logic → Calculate (Add / Subtract / Multiply / Divide / Assign / Formula) for quizzes, pricing, and scores. **Calculated fields** run automatic math (or text assembly) inside your form — quiz scores, live pricing, lead scores, or concatenated names — based on respondents’ answers. Respondents do **not** answer a Calculated field, and **public Fill never renders** the field UI. Values still update for logic, submissions, payment price targets, and thank-you merge tags such as `{score}`. You always see the block in Studio. For the Then action details, see also [Calculate](/features/studio/logic/actions/calculate). *** ## Examples | Use case | Pattern | | - | - | | **Quiz scoring** | Calculated **Score** starts at `0`. Each correct answer: **When** answer **is** … → **Calculate** Score **Add** `10`. Show Score on thank-you. | | **Pricing calculator** | Inputs for quantity / plan → Calculated **Total** with Formula or chained Multiply/Add → feed **Stripe / payment** price when supported. | | **Lead score** | Assign points per answer; branch or sync the score later. | | **Full name (text)** | Result type **Text** → Formula or Assign concatenating `{first}` + `{last}`. | | **Conditional redirect** | Calculate a status/score, then **When** Score … → [Jump to page](/features/studio/logic/actions/jump-to-page). | *** ## Create a Calculated field In Build mode, open the **Logic** catalog and drag **Calculated** onto the canvas. <Tip> Put the Calculated field **above** the questions that *update* it (e.g. Score at the top), or at least where you can find it later. Updates come from **Conditional logic → Calculate**, not from the initial value alone. </Tip> <Steps> <Step title="Name the field"> In the **Σ** pill, type a clear name (e.g. `Score`, `Total`). You will pick this name again in Calculate actions. </Step> <Step title="Choose Number or Text"> **Number** — arithmetic (Add / Subtract / Multiply / Divide / Formula math).\ **Text** — labels, status strings, concatenation (Assign / Formula text). </Step> <Step title="Set the initial value"> After **=**, set the starting point: * Type a literal (e.g. `0` for a quiz score) * Leave blank * Or open the chevron and pick another field Same control as Value elsewhere: **type** or **pick from the list**. </Step> </Steps> The block ships with **When [Always](/features/studio/logic/operators/always) → Calculate** so the initial expression stays applied. Scoring and conditional updates usually add **more** Calculate actions on [If / Else](/features/studio/logic/if-else-block) or the [Logic Board](/features/studio/logic-board). *** ## Insert conditional logic and Calculate Add an **If / Else** (or open Logic Board) near the questions that should change the score. 1. **When** — e.g. flamingo question **is** `Tiny shrimps` 2. **Then** → **Calculate** 3. Pick the target (**Σ Score**) 4. Pick an operation, then a Value (type or pick a field) ### Numeric operations | Operation | Meaning | | - | - | | **Add** | Score ← Score + value | | **Subtract** | Score ← Score − value | | **Multiply** | Score ← Score × value | | **Divide** | Score ← Score ÷ value | ### Textual operations | Operation | Meaning | | - | - | | **Assign** | Set the field to a literal or another field’s answer (labels, CRM status, category name) | | **Formula** (text result type) | Build strings with `{blockId}` tokens (e.g. full name, reference codes) | ### Formulas **Formula** writes one expression instead of chaining many Add steps. Use `{blockId}` tokens (picker / `@` in the formula editor), `+ − * /`, and parentheses. | Use case | Example expression | | - | - | | Total with quantity | `{price} * {quantity}` | | Price after discount | `({price} * {quantity}) - {discount}` | | Quiz total (if each Q stores points) | `{q1} + {q2} + {q3}` | | Full name (text) | `{first_name} + " " + {last_name}` | <Warning> Tokens are **block IDs** (`{…}`), not question titles. Always insert fields with the picker / `@` so IDs stay correct. </Warning> *** ## Worked example: scored quiz Matches the common quiz pattern: one Score field + Add points when the answer is correct. <Steps> <Step title="Add Calculated Score"> **Σ Score** → **Number** → **=** `0` </Step> <Step title="Add questions"> Multiple choice (or similar) for each quiz item. </Step> <Step title="Add logic per correct answer"> **When** question **is** *(correct option)* → **Then Calculate** **Σ Score** **Add** `10`\ Repeat for each question / point value. </Step> <Step title="Show or branch on Score"> Thank-you message with `{score}`, or **When Score ≥ 70** → Jump to Pass page. Fill never shows the Score field itself. </Step> </Steps> See also the [Quiz recipe](/guides/quiz-recipe). *** ## Number vs text engine behavior | Result type | Behavior | | - | - | | **Number** | Safe arithmetic after token replace. If **any** token is blank or non-numeric, the **whole** result is empty (`{qty} + 1` is not `1` when qty is unanswered). | | **Text** | Token replace only — no math. Blank tokens become `""`. | Divide / modulo by zero → empty result (no crash). *** ## How to use the result | Goal | How | | - | - | | See values in admin | **Submissions** — Calculated columns show with **Σ**. Empty → `–`. | | Show to respondents | Thank-you merge tags (`{score}`, `{total}`) — Fill never renders Calculated fields on form steps. | | Dynamic payment amount | Point Stripe / payment **price** at the Calculated field when the block supports it. | | Route by score | **When** Score … → [Jump to page](/features/studio/logic/actions/jump-to-page). | | Emails / CSV | Included when present in the submission payload. | *** ## FAQ <AccordionGroup> <Accordion title="What’s the difference between Add/Subtract and Formula?"> **Add / Subtract / Multiply / Divide / Assign** apply **one** step when the When matches (perfect for quiz “+10”). **Formula** is one expression with many operations and field tokens. </Accordion> <Accordion title="Do respondents see Calculated and Logic blocks?"> **Logic** blocks are editor-only. **Calculated** fields never appear on public Fill steps — respondents only see the value if you put a merge tag on thank you (or map it to payment price). </Accordion> <Accordion title="My score always stays 0"> 1. Confirm **Initial value** is `0` (or blank) and rules **Add** points on correct answers. 2. Confirm **When** matches the real option value. 3. Confirm Calculate targets **Σ Score**, not another field. 4. Prefer **Calculate before Jump** on the same screen — a Jump can skip later Calculates. 5. Test on **Fill / published**, not only the canvas. </Accordion> <Accordion title="The form jumps to the wrong page"> Logic runs in order. If an earlier rule **Jumps**, later Calculates on that path may never run. Place scoring Calculates **before** Jump actions. </Accordion> <Accordion title="Can I calculate dates?"> Date arithmetic is not supported yet — same limitation as typical form calculators. </Accordion> </AccordionGroup> *** ## Common mistakes | Mistake | Fix | | - | - | | Typing labels inside `{…}` | Use the field picker / `@` → `{blockId}` | | Expecting math on **Text** result type | Switch to **Number**, or use Formula only for strings | | Only setting Initial value, no Calculate on answers | Quiz points need **When → Calculate Add** | | Jump before Calculate | Reorder so score updates first | <Panel> [Calculate action](/features/studio/logic/actions/calculate) · [Always](/features/studio/logic/operators/always) · [Logic overview](/features/studio/logic/overview) · [Logic Board](/features/studio/logic-board) · [Quiz recipe](/guides/quiz-recipe) · [Logic guide](/guides/logic-and-calculated) </Panel> # Design Source: https://flexforms.bjanczak.com/features/studio/customize Apply your corporate identity. Control typography, layout, color palettes, and inject custom CSS — on every plan. The **Design** panel lets you make every form feel like a native extension of your brand — available on **all plans** (Standard, Pro, and Enterprise). Open it from the canvas brand chrome (**Design**, next to logo and cover) — it is not in the Studio top bar. ## Core Design Engine <Steps> <Step title="Global Theme"> Toggle between **Light** and **Dark** modes to set the foundational UI palette. </Step> <Step title="Typography Injection"> Search the entire Google Fonts library directly within the Studio. The selected font is dynamically loaded for both your preview and live respondents. </Step> <Step title="Background & Typography Colors"> Define the exact hex codes for the page background and primary reading text to ensure optimal contrast. </Step> <Step title="Call-to-Action Styling"> Customize the **Submit/Next** button background and text colors to drive conversions. </Step> <Step title="The Accent Color"> The Accent is the interactive heartbeat of your form. It dictates the color of hyperlinks, active input borders, progress bars, and selected choices. </Step> </Steps> <Tip> **Brand Consistency:** If you are building internally, consider using your primary corporate brand color (e.g., `#0070D7`) as the Accent color to make the form feel instantly familiar. </Tip> *** ## Advanced layout controls The Advanced section unlocks structural control over the fill layout — included on every plan. <Tabs> <Tab title="Layout Architecture"> Override defaults by defining exact pixel values for **Content Width** and **Text Size**. Upload high-resolution **Logo** and **Cover Images**, with granular control over logo rounding, scaling, and cover image positioning. </Tab> <Tab title="Input Engineering"> Force inputs to be full-width or a fixed pixel size. Manipulate input heights, interior backgrounds, placeholder hex codes, border colors, and corner rounding for a bespoke aesthetic. </Tab> <Tab title="Button Schematics"> Control button alignment (Left/Center/Right), override standard heights, adjust horizontal padding, and define custom border radii separate from inputs. </Tab> </Tabs> *** ## Custom CSS Injection For pixel-perfect requirements that transcend visual controls, the Design panel includes a raw `<style>` code editor — included on every plan. ```css theme={} /* Example: Tighter letter spacing for a more branded fill look */ .ff-fill { letter-spacing: 0.02em; -webkit-font-smoothing: antialiased; } /* Example: Add a subtle shadow to inputs */ .ff-fill input[type="text"] { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); } ``` <Warning> **Security & Scoping:** Custom CSS is strictly sanitized before database storage to strip malicious scripts or `@import` rules. To prevent your CSS from bleeding into and breaking the Filament Admin UI during preview, always scope your custom selectors with `.ff-fill`. </Warning> *** ## Frequently Asked Questions <AccordionGroup> <Accordion title="Do Design settings apply globally to all my forms?"> No. Design settings are strictly scoped **per form**. This allows you to build a dark-themed, highly-customized marketing quiz while maintaining a clean, standard layout for internal HR requests. </Accordion> <Accordion title="How do I remove the 'Powered by Flex Forms' watermark?"> Removing the branding watermark is a separate, server-validated capability. Navigate to **Form Settings → General** and disable **Show Branding**. *(Requires a Pro or Enterprise license).* </Accordion> </AccordionGroup> <Panel> **Deep Dives:** [Design & branding](/guides/design-pro) · [General Settings](/features/settings/general) </Panel> # Drag & Drop and Pagination Source: https://flexforms.bjanczak.com/features/studio/dnd-pages Master the canvas. Learn how to reorder blocks, manage pagination, and construct complex multi-page wizards. The Studio Canvas is highly reactive. It allows you to rapidly restructure the flow of your data collection by dragging blocks and splitting long forms into intelligent, multi-page wizards. ## Working with Blocks <Steps> <Step title="Insert Blocks"> Click a block in the catalog to append it to the end of the current page, or drag it directly to a specific position on the canvas. </Step> <Step title="Reorder"> Hover over any block on the canvas to reveal its drag handle (the grip icon). Click, hold, and drag to reposition it. </Step> <Step title="Cross-Page Movement"> You can drag a block from one page and drop it into the canvas area of a completely different page. </Step> </Steps> *** ## Mastering Pagination A form always begins as a single page (`Step 1`). For extensive data collection, splitting the form across multiple pages drastically improves completion rates. ```mermaid theme={} flowchart LR P1["Step 1: Contact"] -->|Next| P2["Step 2: Company"] P2 -->|Next| P3["Step 3: Needs"] P3 -->|Submit| Done["Thank You Screen"] ``` <Steps> <Step title="Append a Page"> Scroll to the bottom of your canvas and click the **Add Page** button. </Step> <Step title="Configure Page Metadata"> Click the gear icon on the new page's header. Here, you can define a custom Title (which appears in the progress stepper) and select an Icon. </Step> <Step title="Reorganize Pages"> Once you have multiple pages, you can reorder them by dragging the page header's grip handle. </Step> </Steps> <Callout type="info"> **Capacity Limits:** By default, forms are limited to a maximum of 10 pages to ensure optimal frontend performance. This limit can be overridden by your developers in `config/filament-flex-forms.php`. </Callout> *** ## Configuring the Progress Stepper When utilizing multiple pages, you must configure how progress is communicated to the respondent. Navigate to **Form Settings → General** to select a Stepper Style: | Stepper Style | Visual Experience | | - | - | | **Tiles + Labels** | Richer navigation. Displays numbered tiles, custom titles, and icons across the top of the form. | | **Progress Bar Only** | Minimalist. A sleek horizontal bar that advances mathematically with each page turn. | | **Silent (No Stepper)** | The form advances pages without any visual progress indicator. | <Tip> You can define a specific **Wizard Primary Color** for the active step, entirely independent of your form's global brand color. </Tip> *** ## Logic & Structural Integrity <AccordionGroup> <Accordion title="Does reordering pages break my Logic Rules?"> No. The Flex Forms Logic Engine references pages via stable, internal cryptographic IDs—not their sequential position. You can safely drag Page 4 to become Page 2 without breaking your "Jump to Page" rules. </Accordion> <Accordion title="What happens if I delete a page targeted by a Logic Rule?"> The Logic Board acts defensively. If it detects a missing target, it flags the broken rule with a warning ("This page was deleted — pick another page") preventing you from publishing a broken flow. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Field Configuration Panel](/features/studio/field-settings) · [Mastering the Logic Board](/features/studio/logic-board) </Panel> # The Inspector (Field Settings) Source: https://flexforms.bjanczak.com/features/studio/field-settings Fine-tune your data collection. Configure labels, validation masks, default values, and structural metadata for every block. Clicking any block on the Canvas instantly opens the **Inspector Panel** on the left, temporarily replacing the Component Catalog. This panel provides granular control over the selected block's behavior, validation, and data structure. ## Core Identity & Naming At the top of the Inspector is the most critical setting: the Field Name. <ParamField type="string"> **The Label (Public)** Edited directly in the settings list. This is the human-readable question the respondent sees (e.g., *"What is your email?"*). </ParamField> <ParamField type="string"> **The Name (System Key)** Click the pencil icon in the toolbar above the field settings. This is the immutable internal key (e.g., `primary_email`) used for CSV column headers, Webhook payloads, Logic evaluations, and API integration mapping. *Note: Spaces are strictly converted to underscores (`_`) to maintain programming compatibility.* </ParamField> <Warning> **Data Integrity Warning:** Changing a field's internal **Name** after you have begun collecting live submissions will fragment your data. Historical CSV exports and Submissions will retain the old key, while new submissions will use the new key. **Only change the Name during the initial Draft phase.** </Warning> *** ## Universal Configuration Options While specific controls depend on the block type, almost every field offers these foundational settings: <ParamField type="toggle"> **Required Enforcement** Toggle this to prevent form submission until the field contains a valid answer. Required fields are visually flagged with a red asterisk (`*`) on the Canvas. </ParamField> <ParamField type="toggle"> **Hide Label** Removes the public-facing question text while keeping the field completely functional. Excellent for ultra-minimalist landing pages relying purely on placeholders. </ParamField> <ParamField type="string"> **Placeholder Text** Faded hint text residing *inside* the empty input box (e.g., `john@doe.com`). It vanishes the moment the user types their first character. </ParamField> <ParamField type="string"> **Help Text** Instructional micro-copy rendered permanently *below* the input. Use this to explain *why* you are asking for data (e.g., *"We will never spam you."*). </ParamField> <ParamField type="string|array"> **Default Value Injection** Pre-fills the field for every respondent. On choice blocks (Select, Radio, Checklists, …) you pick from the option **labels** — Flex Forms stores the matching option values automatically. *(Note: To pre-fill dynamically per user via the URL instead of statically, see [Query Parameter Prefilling](/features/share/query-params)).* </ParamField> <ParamField type="integer"> **Min/Max Character Constraints** Available on text blocks. Define strict character limits. Enabling **Character Counter** provides the respondent with a real-time `X / Y` visual counter as they type. </ParamField> *** ## Advanced Type-Specific Controls Flex Forms intelligently adapts the Inspector to expose controls relevant only to the selected block architecture. <Tabs> <Tab title="Input Masks (Formatting)"> <ParamField type="select"> Enforce strict data formatting on text inputs. Select a preset (Date `99/99/9999`, Phone `(999) 999-9999`, Credit Card). </ParamField> <ParamField type="string"> Select **Custom** to inject your own regex-style mask pattern (e.g., `AAAA-9999`) to ensure pristine data hygiene. </ParamField> </Tab> <Tab title="Affixes (Prefix/Suffix)"> <ParamField type="string"> Attach visual or functional text to the *beginning* of an input (e.g., `https://`). </ParamField> <ParamField type="string"> Attach functional text to the *end* of an input (e.g., `.com`, `kg`, `USD`). You can also inject SVG icons directly into these slots. </ParamField> </Tab> <Tab title="Speech Dictation"> <ParamField type="toggle"> Enable native browser microphone APIs on Text and Textarea blocks. Allows respondents to dictate complex answers. </ParamField> <ParamField type="select"> You can strictly force a recognition language (e.g., `en-US`) or leave it set to auto-detect. </ParamField> </Tab> <Tab title="Primary Email Routing"> <ParamField type="toggle"> If your form contains multiple email fields, you must designate one as the **Primary**. Flex Forms uses this specific field to trigger Respondent Notification emails, run CRM duplication checks, and populate integration feeds. </ParamField> </Tab> </Tabs> *** ## Block Action Utilities At the absolute bottom of the Inspector (or via keyboard shortcuts), you have access to rapid utility actions: <Steps> <Step title="Duplicate Block"> Click the **Duplicate** icon. This instantly clones the block directly underneath itself. *Crucial Detail: It also clones any Field-Level Logic rules attached to the block, saving you massive amounts of time when building repetitive arrays.* </Step> <Step title="Remove (Delete) Block"> Click the red **Trash** icon to purge the block from the Canvas. *Warning: If this block was targeted by Logic rules elsewhere in the form, those rules will automatically flag themselves with a "Missing Target" error.* </Step> </Steps> <Panel> **Next Steps:** [Logic Board Routing](/features/studio/logic-board) · [Explore all Component Blocks](/features/blocks/overview) </Panel> # The Logic Board Source: https://flexforms.bjanczak.com/features/studio/logic-board Full-screen Flow, Rules, and Simulator inside the Studio Workflow hub. Logic lives in the Studio **Workflow** hub — a full-screen workspace with three surfaces: **Flow**, **Rules**, and **Simulator**. Open it from the center top bar (**Workflow**), ⌘/Ctrl+Shift+L, a field’s advanced logic control, or a jump edge on the Flow map. Use **Branch** on choice fields for per-answer follow-ups and jumps. Use **Rules** for **routing, gates, and advanced When → Then**. New to the model? Read [How logic works](/features/studio/logic/overview) first. *** ## What you see | Region | Purpose | | - | - | | **Workflow surfaces** | Tabs: **Flow · Rules · Simulator** | | **Flow** | Full-screen page map (zoom / pan / fit). Solid edges = jumps; dashed = default next | | **Rules** | Form-wide When → Then editor, search, conflicts, field anchors, FAQ | | **Simulator** | Answers + sticky Run → **path outcome** (with jump reasons), then Field state / Branches | | **Flow health** | Chip on the **right** of the Workflow header (tooltip + conflict count). Critical issues also alert on Rules and **block Publish** | | **Back to Content** | Appears when you opened Rules from Content / a field — returns you to the canvas | ### Flow surface Open **Workflow → Flow** for the map of pages and jumps. Click a jump edge to open that rule on **Rules**. **Orphan** and **cycle** states match Flow health. Click a page card to jump back to **Content** on that page. ### Rules surface Search and compact stats, short health/conflict alerts when needed, the full `schema.logic` editor, field anchors on the right, and a short FAQ. Escape (or **Back to Content**) returns you when you arrived from Content. ### Simulator surface Dry-run the respondent path: 1. Fill **answers** by page (left). Mock controls follow the same field families as Rules (text, number, choice, date, yes/no, presence). Presence fields (file, signature, …) use **empty / filled**. 2. Optionally save **scenarios** (chips in the toolbar) — loading a scenario re-runs automatically. 3. **Run** (or ⌘/Ctrl+Enter). Outcome (right) shows the **path** first: each step is Start, Next, or Jump (with the rule). Click a page to open **Content**, or a jump to open **Rules**. 4. Under the path, open **Field state** or **Branches** for details. Use **Highlight on Flow** to see visited pages on the map. With no rules yet, Simulator still works (linear path) and shows a soft advisory with a link to Rules. Coverage chips summarize terminal / pages / jumps. Flow-health issues from the run list with links into Rules. *** ## Add your first rule <Steps> <Step title="Open Workflow → Rules"> In Studio, open **Workflow** (or press ⌘/Ctrl+Shift+L). Select the **Rules** surface. </Step> <Step title="Add a rule"> Click **Add rule**. A new When → Then card appears. </Step> <Step title="Configure When"> 1. Pick the source field. 2. Choose an [operator](/features/studio/logic/operators/overview) (Studio filters by field type). 3. Set the value (literal, choice chip, or another field). 4. Use **All** / **Any** for multiple clauses or nested groups. </Step> <Step title="Configure Then"> Add one or more [actions](/features/studio/logic/actions/overview): * [Jump to page](/features/studio/logic/actions/jump-to-page) — pair with [auto-jump](/features/settings/behavior) for choice UX * [Show](/features/studio/logic/actions/show-blocks) / [Hide](/features/studio/logic/actions/hide-blocks) — hide **clears** answers * [Require](/features/studio/logic/actions/require-answer) / [Make optional](/features/studio/logic/actions/make-optional) * [Calculate](/features/studio/logic/actions/calculate) * [Hide submit](/features/studio/logic/actions/hide-submit) </Step> <Step title="Reorder if needed"> Drag rules when you have more than one. Top → bottom is evaluation order. </Step> <Step title="Check Flow + flow health"> Resolve conflict chips and **flow health** criticals before publish. The **Flow** surface shows jumps, linear next, cycles, and missing jump targets. Linear quiz pages do not need a Publish confirm; unreachable terminals after another terminal (no jump in) still require acknowledge. </Step> <Step title="Test on Simulator or Preview"> Use **Simulator** with mock answers, or Preview (draft) / public fill (published). </Step> </Steps> *** ## Branch vs Rules | Layer | Where | Best for | | - | - | - | | **Branch** | Choice field chrome (when that field is selected) | Per-answer show follow-up / go to page + **Otherwise** | | **Rules** | Workflow → Rules; also under a field when its rules are too advanced for Branch | Complex When, hide Submit, multi-action stacks, form-wide gates | | **Calculated** | Catalog → Logic | Live totals / scores | Every Branch compile and every Rules edit lives in the **same** `schema.logic` store. Later matching rules that touch the same target **win**. *** ## Field anchors list The side list shows fields that already have attached rules. * Click a row to **jump to that block** on the Content canvas. * Edit Branch on the field, or open advanced When / Then via **Add condition**. * Empty state explains Branch and Add condition. *** ## Diagnostics you must clear Rules shows: * Rules enabled / total * How many fields carry conditions * Total rules in evaluation order * **Unique** conflict count Conflict copy uses **field labels** when available. <Warning> Treat conflicts and **critical flow health** issues as **release blockers**. Publish is refused when the flow has jump cycles, incomplete jump targets, unreachable non-terminals, or no reachable terminal page. </Warning> *** ## Cascade scrub Delete a field, page, or option that logic referenced → Studio **scrubs** those references automatically and shows a toast with the cleaned count (or stays quiet when nothing needed cleaning). You should not need to hunt orphan jumps by hand. # Calculate Source: https://flexforms.bjanczak.com/features/studio/logic/actions/calculate Then action: Write a formula result into a target field. **Calculate** evaluates a **formula** and writes the result into a target field — live totals, quiz scores, formatted labels, or concatenated text. Use on **Calculated** blocks (**When [Always](/features/studio/logic/operators/always) → Calculate**) or conditional rules when formulas should run only sometimes. *** ## When to choose this | Goal | Use **Calculate** | Use something else instead | | - | - | - | | Live numeric total or score | ✓ | — | | Text template from answers | ✓ (text result mode / Formula) | — | | Show/hide UI | ✗ | **[Show blocks](/features/studio/logic/actions/show-blocks)** | | Copy or nudge a number without typing a full formula | ✓ (Assign / Add / Subtract / …) | — | | Run only on submit | ✗ | Calculate updates on every fill recalc | *** ## Exact behavior * Target receives computed value on **every logic recompute** when parent **When** matches. * Result feeds **later rules in the same pass** — calculate Score, then **When Score ≥ 80** can match immediately after. * **Number mode:** arithmetic with `+ - * / %`, parentheses, `{blockId}` tokens, and whitelist functions **`min()`**, **`max()`**, **`round()`**, **`concat()`**. Blank or non-numeric tokens make the **whole numeric result empty** — `{qty} + 1` does **not** become `1` when qty is unanswered. Unknown functions fail closed (empty result). * **Text mode:** string interpolation — tokens replaced; use `+` between tokens/literals **or** `concat({first}, " ", {last})` to assemble labels. * Invalid expression characters or divide-by-zero → empty result, no crash. * Target must exist on canvas; unknown target ignored. <Warning> Field tokens are **block IDs** (`{blockId}`), not display labels. Use the **Value** field picker or the Formula inserter so IDs stay correct. </Warning> *** ## What changes on fill | Situation | Result | | - | - | | Source token blank (number mode) | Whole result empty | | Source token blank (text mode) | Token becomes empty string | | Target hidden | Formula may still update; display hidden | | **When** false | Calculate does not run for that rule — prior value may persist until another Calculate runs | | Calculated block default | **Always → Calculate** keeps updating | *** ## Configure in Studio <Steps> <Step title="Add or pick target field"> Integer, currency, rating, Calculated block, etc. — set **result type** (number vs text) in block settings when relevant. </Step> <Step title="Add Calculated block OR Then → Calculate"> Calculated blocks ship with **When Always → Calculate**; other rules add Calculate manually. </Step> <Step title="Select target"> Pick from the list of **Calculated** (Σ) and number fields on the form — you do not type a field name. Add a Calculated block first if the list is empty. </Step> <Step title="Choose an operation"> **Add**, **Subtract**, **Multiply**, **Divide**, **Assign**, or **Formula**. * **Assign** — set the target to a number or another field’s answer. * **Add / Subtract / Multiply / Divide** — apply that op using a number **or** another field (same **Value** control). * **Formula** — opens **Edit formula**. Type math, click `+ − × ÷ ( )`, or type **`@`** to mention only **supported** fields (numbers, ratings, choices, calculated). </Step> <Step title="Set Value"> One control: **type a literal** or open the dropdown and pick an **input field**. No separate “Answer of…” / “Insert field…” for simple ops. </Step> <Step title="Choose number vs text on target"> Number mode evaluates math; text mode concatenates only (use **Formula** for templates). </Step> <Step title="Add downstream When (optional)"> Separate rule reading calculated field — e.g. **When Total greater than** `1000`. </Step> <Step title="Test on Fill"> Change inputs — watch target update live. </Step> </Steps> *** ## Worked examples ### Order total (Formula) > **When Always** → **Calculate** **Order total** **Formula** `{quantity} * {unit_price}` ### Add a surcharge > **When** Plan **equals** `Pro` → **Calculate** **Final price** **Multiply** `1.2`\ > (or **Formula** `{base_price} * 1.2`) ### Assign from another field > **When** Use company address **checked** → **Calculate** **Shipping city** **Assign** *(pick)* **Billing city** ### Quiz score (Add points) > Calculated **Σ Score** = `0` on the canvas.\ > **When** Q1 **is** *(correct)* → **Calculate** **Σ Score** **Add** `10`\ > **When** Q2 **is** *(correct)* → **Calculate** **Σ Score** **Add** `10`\ > Then: **When Score ≥** `70` → [Jump to page](/features/studio/logic/actions/jump-to-page) `Pass`. ### Quiz score (Formula sum) > **When Always** → **Calculate** **Score** **Formula** `{q1} + {q2} + {q3}`\ > (when each question already stores a numeric point value) ### Personalized greeting (Formula, text) > **When Always** → **Calculate** **Heading** **Formula** `Thanks, {first_name}!` *** ## Test on fill <Steps> <Step title="Fill all numeric tokens"> Target shows expected result. </Step> <Step title="Clear one token"> Number result empties — not partial math with zero substitution. </Step> <Step title="Text mode with missing name"> Template shows with blank where token was. </Step> <Step title="Downstream When on calculated field"> Fires in same recalc pass after Calculate runs (rule order matters on board). </Step> <Step title="Conditional Calculate"> Formula updates only when **When** true for that rule. </Step> </Steps> *** ## Common mistakes * Typing field labels instead of picking fields or inserting `{blockId}` tokens. * Expecting math in **text** result type. * Referencing later-page fields before answered — blank tokens empty numeric result. * Removing **Always** from Calculated block without replacement trigger. *** ## Troubleshooting <AccordionGroup> <Accordion title="Result always empty"> Wrong token ids, blank inputs in number mode, or invalid characters in expression. </Accordion> <Accordion title="Result wrong but non-empty"> Check operator precedence — use parentheses in **Formula**. Verify Value points to the intended field. </Accordion> <Accordion title="Downstream rule does not see new value"> Place Calculate rule **before** When-on-target in Logic Board order. </Accordion> <Accordion title="Text shows {token} literally"> Target in text mode but tokens malformed — pick fields from Value / Formula inserter, not hand-typed braces with labels. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Calculated fields](/features/studio/calculated-fields) · [Always operator](/features/studio/logic/operators/always) · [How logic works](/features/studio/logic/overview) </Panel> # Clear value Source: https://flexforms.bjanczak.com/features/studio/logic/actions/clear-value Then action: Wipe the answer from a target field. **Clear value** blanks a target field’s answer when **When** matches. On fill, the field is cleared from the live answer bag so stale data does not submit. *** ## Related * Write instead: [Set value](/features/studio/logic/actions/set-value) [All actions](/features/studio/logic/actions/overview) · [How logic works](/features/studio/logic/overview) # Disable blocks Source: https://flexforms.bjanczak.com/features/studio/logic/actions/disable-blocks Then action: Lock target fields so respondents cannot edit them. **Disable blocks** marks target fields as disabled (read-only) when **When** matches. Disabled fields are **never required** — even if a Require action also fires. *** ## Related * Unlock: [Enable blocks](/features/studio/logic/actions/enable-blocks) * Hide entirely: [Hide blocks](/features/studio/logic/actions/hide-blocks) [All actions](/features/studio/logic/actions/overview) · [How logic works](/features/studio/logic/overview) # Enable blocks Source: https://flexforms.bjanczak.com/features/studio/logic/actions/enable-blocks Then action: Unlock previously disabled fields for editing. **Enable blocks** clears the disabled flag on target fields when **When** matches. Use after a default **Disable** rule when a later condition should unlock the field. *** ## Related * Lock: [Disable blocks](/features/studio/logic/actions/disable-blocks) [All actions](/features/studio/logic/actions/overview) · [How logic works](/features/studio/logic/overview) # Hide blocks Source: https://flexforms.bjanczak.com/features/studio/logic/actions/hide-blocks Then action: Remove fields from the fill form and clear their answers. **Hide blocks** removes selected fields from the fill experience while **When** matches — respondents cannot see or edit them, and **stored answers are cleared** so hidden data never submits. Use it to strip irrelevant sections, collapse optional paths, and enforce “out of scope” UX. *** ## When to choose this | Goal | Use **Hide blocks** | Use something else instead | | - | - | - | | Remove irrelevant fields | ✓ | — | | Reveal fields | ✗ | **[Show blocks](/features/studio/logic/actions/show-blocks)** | | Optional without hiding | ✗ | **[Make optional](/features/studio/logic/actions/make-optional)** | | Block submit entirely | ✗ | **[Hide submit](/features/studio/logic/actions/hide-submit)** | | Skip whole pages | ✗ | **[Jump to page](/features/studio/logic/actions/jump-to-page)** (fields may stay blank on skipped pages) | *** ## Exact behavior * Targets become **not visible** on fill. * **Answers on hidden fields are cleared** on recalculation — prevents stale smuggling on submit. * Hidden fields are **never required** — engine clears required flag even if [Require answer](/features/studio/logic/actions/require-answer) ran earlier. * **Last matching rule wins** vs **Show blocks** on the same target. * Default-hidden blocks (`hidden` in block settings) start hidden; **Show** can override while its rule matches. <Warning> Hiding clears data. If **When** toggles back, users re-enter answers — Show does not restore previous values. </Warning> *** ## What changes on fill | Situation | Result | | - | - | | Rule stops matching | Field may become visible again (empty) if Show or default visibility applies | | Hide after user answered | Answer cleared from submission payload | | Hide + Require same field | Hide wins for visibility; required forced off while hidden | | Field on future page | Hidden in schema even before page visited | *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Build When"> e.g. Plan **is not** `Enterprise`, Company **is empty**, Country **is none of** `US`. </Step> <Step title="Add Then → Hide blocks"> Select blocks to remove from fill. </Step> <Step title="Avoid Show conflicts"> Do not Hide and Show same target without mutually exclusive **When** clauses. </Step> <Step title="Pair with user messaging (optional)"> Static copy explaining why sections are absent — Hide alone gives no explanation. </Step> <Step title="Test toggle on Fill"> Fill field → trigger Hide → confirm data cleared in submission preview if available. </Step> </Steps> *** ## Worked examples ### Hide enterprise SSO > **When** Plan **is not** `Enterprise` → **Hide blocks** `SSO details, Audit log` ### No company → no invoice block > **When** Company **is empty** → **Hide blocks** `Invoice address, Tax ID` ### Domestic-only shipping > **When** Country **equals** `US` → **Hide blocks** `International customs form` Often paired with inverse Show on international path. ### Cleanup “Other” follow-up > **When** Industry **is not** `Other` → **Hide blocks** `Please specify industry` Clears free text if they switch away from Other. *** ## Test on fill <Steps> <Step title="Trigger Hide"> Targets disappear from form. </Step> <Step title="Had data before hide"> Re-show (When false) — fields empty. </Step> <Step title="Submit with hidden required fields"> Submit succeeds — hidden fields cannot block. </Step> <Step title="Toggle When repeatedly"> No ghost data in submission. </Step> </Steps> *** ## Common mistakes * Hiding without inverse **Show** when users can return to qualifying answers — field stays hidden until Show rule matches. * Expecting hidden values in integrations — cleared answers omit from payload. * Hide vs Make optional — optional visible fields still show; Hide removes entirely. *** ## Troubleshooting <AccordionGroup> <Accordion title="Field still visible"> Later Show rule won, or **When** false. Check rule order. </Accordion> <Accordion title="Submit still blocked"> Different visible required field empty — not the hidden one. </Accordion> <Accordion title="Old answer in submission"> Should not happen after hide recalc — retest Fill fresh; inspect integration mapping. </Accordion> <Accordion title="Hide + Require on same rule"> Require ineffective while hidden — by design. Show first on another rule if needed. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Show blocks](/features/studio/logic/actions/show-blocks) · [Make optional](/features/studio/logic/actions/make-optional) · [Is empty operator](/features/studio/logic/operators/empty) · [How logic works](/features/studio/logic/overview) </Panel> # Hide submit Source: https://flexforms.bjanczak.com/features/studio/logic/actions/hide-submit Then action: Legacy eligibility flag. Fill always keeps Next/Submit visible. **Hide submit** sets a form-level eligibility flag while **When** matches. On public Fill, **Next** and **Submit** stay **visible** — progress is blocked only by **required** answers on the current step (validation on click). Prefer **[Require answer](/features/studio/logic/actions/require-answer)** for missing fields, a warning **[Show blocks](/features/studio/logic/actions/show-blocks)** message, or **[Jump to page](/features/studio/logic/actions/jump-to-page)** to a clear ending — not removing navigation. *** ## When to choose this | Goal | Prefer instead | | - | - | | Missing required answer | **[Require answer](/features/studio/logic/actions/require-answer)** | | Explain low eligibility | **[Show blocks](/features/studio/logic/actions/show-blocks)** with a message | | Send ineligible users elsewhere | **[Jump to page](/features/studio/logic/actions/jump-to-page)** | | Legacy “hide the button” flows | Keep existing rules; Fill no longer hides Next/Submit | *** ## Exact behavior * Sets form-level `hide_submit: true` while the matching rule’s action value is true (default true). * Studio Rules simulator can still show that the flag matched. * Fill **does not** hide or hard-block Next/Submit based on this flag. * Empty **required** fields on the current page still fail validation when the respondent clicks Next or Submit. * Does not clear answers or hide fields by itself. <Warning> Do not rely on Hide submit to trap respondents. Use required fields, messaging, or a jump to a terminal page. </Warning> *** ## What changes on fill | Situation | Result | | - | - | | Hide submit matches | Next/Submit remain visible and clickable | | Required field empty on this step | Next/Submit stay visible; click shows validation errors | | No required fields on this step | Next/Submit proceed | | Jump to a terminal page | That page shows Submit (not Next) | *** ## Configure in Studio <Steps> <Step title="Prefer Require / Show / Jump"> For new forms, gate with required answers or route ineligible people with Jump + copy. </Step> <Step title="If you already use Hide submit"> Keep explanation blocks so respondents understand eligibility — navigation buttons will still appear. </Step> <Step title="Test on Fill"> Confirm Next/Submit always render; only missing required answers block progress. </Step> </Steps> *** ## Worked examples ### Unsigned waiver (prefer Require) > **When** Liability waiver **is not signed** → **Require answer** on the waiver (or keep the field required) Canvas copy: “Sign the waiver above to submit.” ### Age ineligible (prefer Jump) > **When** Age **less than** `18` → **Jump to page** `Not eligible` with a clear message ### Failed quiz threshold > **When** Score **less than** `50` → **Jump to page** `Retake` with instructions *** ## Common mistakes * Expecting Hide submit to remove the button — Fill always keeps Next/Submit. * Using Hide submit instead of **Require** for a single missing field. * Jumping to a non-terminal page and wondering why Next appears instead of Submit — mark ending pages as terminal. *** ## Troubleshooting <AccordionGroup> <Accordion title="Submit still visible when Hide submit matches"> Expected. Fill keeps Next/Submit visible; use Require or Jump for real gates. </Accordion> <Accordion title="Cannot continue on a step"> Check required fields on that page (including logic **Require answer**). </Accordion> <Accordion title="Next instead of Submit on an ending"> Mark the page as terminal in Studio, or ensure the path lands on a terminal page. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Require answer](/features/studio/logic/actions/require-answer) · [Jump to page](/features/studio/logic/actions/jump-to-page) · [How logic works](/features/studio/logic/overview) </Panel> # Jump to page Source: https://flexforms.bjanczak.com/features/studio/logic/actions/jump-to-page Then action: Skip the normal Next flow and go to a specific page. **Jump to page** sends the respondent **directly to another page** in your multi-page form — skipping intermediate pages when **When** matches. Use for quiz outcomes, triage routing, “skip details” paths, and winner/loser branches. Requires a [multi-page form](/guides/multi-page-stepper). *** ## When to choose this | Goal | Use **Jump to page** | Use something else instead | | - | - | - | | Skip irrelevant pages | ✓ | — | | Show/hide fields on same page | ✗ | **[Show blocks](/features/studio/logic/actions/show-blocks)** / **[Hide blocks](/features/studio/logic/actions/hide-blocks)** | | Prevent submit | ✗ | **[Hide submit](/features/studio/logic/actions/hide-submit)** | | Auto-advance on single choice | ✗ | **Auto-jump** in [Behavior settings](/features/settings/behavior) (works with jump target) | | Single-page form | ✗ | Split into pages first | *** ## Exact behavior * Sets active **jump target** to selected page ID while rule matches. * Normal **Next** order bypassed for that navigation step. * Only **valid page IDs** apply — deleted pages are **cascade-scrubbed**; Studio / flow health warn on incomplete jumps. * **Multiple jump rules:** **last matching jump wins**. * Skipped pages: fields there may stay **unanswered** — operators reading those fields stay false until visited. * **Terminal** pages are submit steps — Map shows the badge; path validation uses the visited path. *** ## What changes on fill | Situation | Result | | - | - | | **Auto-jump** enabled | Instant page change when **When** true (answer syncs live; **Next** remains as fallback) | | Rule stops matching | Next navigation may return to default order on subsequent steps | | Jump + Hide submit | Independent effects | | Invalid/deleted page id | Jump ignored — scrub / flow health flag it | *** ## Configure in Studio <Steps> <Step title="Create multiple pages"> Drag blocks into Page columns in the **Pages** sidebar ([multi-page guide](/guides/multi-page-stepper)). Mark terminal/submit pages as needed. </Step> <Step title="Prefer Branch for per-answer jumps"> On a choice field → **Branch** → **Go to page** for that answer. Set **Otherwise** for the default path. </Step> <Step title="Or open Rules for advanced When"> Top bar → **Logic** → **Rules**. Jump routing for score thresholds and complex groups lives here. </Step> <Step title="Build When (Rules path)"> Score thresholds, country lists, yes/no skips — use [operators](/features/studio/logic/operators/overview) appropriate to field types. </Step> <Step title="Add Then → Jump to page"> Pick destination page by name from dropdown. </Step> <Step title="Optional: enable Auto-jump"> **Form Settings → Behavior** — instant transition when rule matches ([Behavior settings](/features/settings/behavior)). </Step> <Step title="Check Map + Simulator"> **Flow** shows jump edges and terminals. **Simulator** walks the path with mock answers. Resolve flow health criticals before publish. </Step> </Steps> *** ## Worked examples ### Quiz winner > **When** Score **greater than** `80` → **Jump to page** `Winner` Score from [Calculate](/features/studio/logic/actions/calculate) target. ### International path > **When** Country **is none of** `US, CA` → **Jump to page** `International shipping` Remember blank country does not match **Is none of** — add **Is empty** path if needed. ### Skip optional details > **Branch** on “Skip details” → Yes → **Go to page** `Summary`\ > Or Rules: **When** “Skip details” **equals** `Yes` → **Jump to page** `Summary` ### Low score remediation > **When** Score **less than** `50` → **Jump to page** `Retake instructions` *** ## Test on fill <Steps> <Step title="Trigger jump branch"> Confirm landing page — intermediate pages skipped. </Step> <Step title="Non-jump / Otherwise branch"> Normal Next order (or Otherwise jump) through remaining pages. </Step> <Step title="Auto-jump if enabled"> Page changes without Next click when answer selected. </Step> <Step title="Fields on skipped pages"> Remain blank — later **When** reading them stays false. Submit validates the **visited** path. </Step> <Step title="Multiple jump rules"> Verify exclusive **When** or accept last-wins behavior. Confirm in **Simulator**. </Step> </Steps> *** ## Common mistakes * Jump target deleted but rule left incomplete — clear flow health before publish. * Expecting answers on skipped pages for later rules. * Multiple jumps without clear exclusivity — confusing last-wins outcome. * Single-page form — jump has no effect. * Forgetting **Otherwise** on Branch so unmatched answers fall through unexpectedly. *** ## Troubleshooting <AccordionGroup> <Accordion title="Jump does nothing"> Invalid page id, **When** false, or single-page form. Check Map edges and Simulator. </Accordion> <Accordion title="Wrong destination"> Multiple jump rules — last match wins; reorder or narrow **When**. </Accordion> <Accordion title="Validation on skipped page blocks user"> Should not — path-aware validation is the visited path only. Check visible required fields on pages you reached. </Accordion> <Accordion title="Auto-jump too aggressive"> Disable Auto-jump or narrow **When** so users confirm before routing. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Workflow → Rules](/features/studio/logic-board) · [Multi-page stepper](/guides/multi-page-stepper) · [Behavior settings](/features/settings/behavior) · [How logic works](/features/studio/logic/overview) </Panel> # Make optional Source: https://flexforms.bjanczak.com/features/studio/logic/actions/make-optional Then action: Remove the required flag from chosen fields. **Make optional** removes the **required** flag from selected fields while **When** matches — the opposite of [Require answer](/features/studio/logic/actions/require-answer). Use it to relax defaults when a section does not apply: optional invoice details when billing same as shipping, or skip phone when callback not requested. *** ## When to choose this | Goal | Use **Make optional** | Use something else instead | | - | - | - | | Conditionally relax required fields | ✓ | — | | Make field mandatory | ✗ | **[Require answer](/features/studio/logic/actions/require-answer)** | | Remove field from form | ✗ | **[Hide blocks](/features/studio/logic/actions/hide-blocks)** | | Default optional already | Skip action | Set block default instead | Studio stores this action as **unrequire\_answer** internally — the UI label is **Make optional**. *** ## Exact behavior * Sets `required: false` on targets while **When** is true. * **Last matching rule wins** vs **Require answer** on the same target. * Hidden fields are never required anyway — **Make optional** mainly affects visible fields. * When **When** becomes false, required state may revert toward block default and other rules. *** ## What changes on fill | Situation | Result | | - | - | | Block default Required on | **Make optional** clears asterisk while rule matches | | Later **Require** rule matches | Required restored if that rule wins last | | Field hidden | Required already off — action has little visible effect | | Submit validation | Optional fields skipped even on current page | *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** — identify fields that should stop being mandatory under some **When**. </Step> <Step title="Build When"> e.g. “Same as shipping” **equals** `Yes`, Phone **is empty**, Plan **equals** `Free`. </Step> <Step title="Add Then → Make optional"> Select fields to relax — VAT, Phone, Company legal name, etc. </Step> <Step title="Check rule order"> If a global **Require** exists, ensure **Make optional** evaluates later when both could match. </Step> <Step title="Test submit on Fill"> Confirm optional fields no longer block Next/Submit when rule active. </Step> </Steps> *** ## Worked examples ### Same as shipping > **When** “Billing same as shipping” **equals** `Yes` → **Make optional** `Billing address, Billing city` Fields stay visible but skippable. ### No callback > **When** “Call me back” **equals** `No` → **Make optional** `Phone, Best time to call` Pair with **Hide blocks** if you prefer removing fields entirely. ### Free tier > **When** Plan **equals** `Free` → **Make optional** `Tax ID, Purchase order` ### Optional attachment path > **When** “I have documentation” **equals** `No` → **Make optional** `Upload supporting file` *** ## Test on fill <Steps> <Step title="Default required visible"> Asterisk present before rule. </Step> <Step title="Trigger When"> Asterisk removed on targets. </Step> <Step title="Submit without optional fields"> Succeeds if no other blockers. </Step> <Step title="Revert When"> Required may return per block default / other rules. </Step> </Steps> *** ## Common mistakes * **Make optional** when **Hide** is clearer — hidden fields already non-blocking. * Rule order: global **Require** after **Make optional** re-mandates fields. * Expecting optional to clear validation errors from other rules on same field. *** ## Troubleshooting <AccordionGroup> <Accordion title="Still required after Make optional"> Later **Require** rule won — reorder or narrow **When**. </Accordion> <Accordion title="Optional but field hidden"> Redundant with Hide — consider Hide for cleaner UX. </Accordion> <Accordion title="Submit still fails"> Different required field still empty on current page. </Accordion> <Accordion title="Block default optional"> Action unnecessary unless another rule adds Require — simplify logic. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Require answer](/features/studio/logic/actions/require-answer) · [Hide blocks](/features/studio/logic/actions/hide-blocks) · [How logic works](/features/studio/logic/overview) </Panel> # Actions (Then) Source: https://flexforms.bjanczak.com/features/studio/logic/actions/overview Index of every Then action — show, hide, require, jump, calculate, hide submit — and how they interact on fill. Actions are what happens **after** **When** is true. You can stack several actions on one rule — show a follow-up **and** require it **and** jump to a page, all from the same match. This page is the map. Each action has its own Studio tutorial linked below. *** ## How to add Then actions in Studio <Steps> <Step title="Build When first"> Open **Logic** → **Rules**, **Branch** / **Add condition** on a field, or a **Calculated** block. Complete at least one **When** clause (or **Always** on Calculated blocks). </Step> <Step title="Expand Then"> Below **When**, click **Add action** (or use the pre-filled **Then** on Calculated blocks). </Step> <Step title="Pick an action type"> Choose from Show / Hide blocks, Require / Make optional, Disable / Enable blocks, Set / Clear value, Jump to page, Calculate, or Hide submit. </Step> <Step title="Configure targets"> Select block(s) from the canvas list, pick a destination page, or build a formula — depending on action. </Step> <Step title="Resolve conflicts"> Fix Studio conflict hints (Show ↔ Hide on same target) before publish. </Step> <Step title="Preview on Fill"> Walk the form — toggle answers and confirm actions apply and revert live. </Step> </Steps> *** ## Action catalog | Action | What respondents see | Deep dive | | - | - | - | | [Show blocks](/features/studio/logic/actions/show-blocks) | Hidden fields become visible | Targets specific canvas blocks | | [Hide blocks](/features/studio/logic/actions/hide-blocks) | Fields disappear; answers cleared | Cannot submit hidden data | | [Require answer](/features/studio/logic/actions/require-answer) | Fields become mandatory | Ignored while hidden or disabled | | [Make optional](/features/studio/logic/actions/make-optional) | Required flag removed | Opposite of require | | [Disable blocks](/features/studio/logic/actions/disable-blocks) | Fields lock (read-only) | Never required while disabled | | [Enable blocks](/features/studio/logic/actions/enable-blocks) | Fields unlock for editing | Opposite of disable | | [Set value](/features/studio/logic/actions/set-value) | Answer written automatically | Literal or another field’s answer | | [Clear value](/features/studio/logic/actions/clear-value) | Answer wiped | Target field blanked | | [Jump to page](/features/studio/logic/actions/jump-to-page) | Skip to another page | Last jump wins | | [Calculate](/features/studio/logic/actions/calculate) | Formula written to target | Feeds later rules | | [Hide submit](/features/studio/logic/actions/hide-submit) | Legacy flag (Fill still shows Next/Submit) | Prefer Require / Jump | *** ## Evaluation order 1. **Form Logic Board** rules (top → bottom) 2. Field-anchored rules and **Calculated** Always→Calculate in evaluation / canvas order 3. **Hidden or disabled fields forced not required** (invariant — you cannot require what they cannot edit) 4. On fill, **hidden answers are cleared** so stale data never submits 5. **Set value** / **Clear value** write into the live answer bag (and calculated feed) before jumps run <Warning> **Last matching rule wins** for the same target. If two enabled rules both match and both change visibility, required state, or jump destination, the **later** rule in evaluation order wins. </Warning> *** ## Common action interactions | Combination | Behavior | | - | - | | **Hide** then **Require** on same field | Hide wins if it runs last; hidden fields are never required anyway | | **Show** + **Require** | Recommended pattern: show follow-up, then require it | | **Calculate** then **When Score ≥ 80** | Calculated values feed forward in the same pass — later rules read fresh totals | | **Hide submit** + message block | Prefer Require / Jump; Hide submit no longer removes buttons | | **Jump to page** + skipped required fields | Submit validation uses the **visited path** (pages the respondent actually opened) plus currently visible required fields — fields only on unvisited branch pages do not block | *** ## Where to add actions | Location | Best for | | - | - | | **Logic Board** | Form-wide routing, eligibility gates, quiz jumps | | **Branch** / **Add condition** on a field | Local follow-ups tied to one question | | **Calculated** block | Live formula field (Always → Calculate) | | **Calculated** block | **Always → Calculate** live formulas | <Note> Keep **Rules** for cross-form routing. Put field-specific Show/Require pairs on **Branch** / **Add condition** so Rules stays readable. </Note> *** ## Test on fill (action checklist) <Steps> <Step title="Trigger When true"> Confirm each **Then** action visible effect (fields shown, required asterisk, jump, missing submit). </Step> <Step title="Trigger When false"> Actions should revert unless another rule keeps them active. </Step> <Step title="Submit attempt"> Required visible fields block submit; hidden fields never block. </Step> <Step title="Multi-page jump"> Skipped pages stay unvisited — answers there remain blank for operators. </Step> <Step title="Calculate targets"> Change inputs — computed fields and downstream When rules update live. </Step> </Steps> *** ## Common mistakes * Stacking Show and Hide on the same target without exclusive **When** clauses — last rule wins unpredictably. * **Require** without **Show** on a hidden follow-up — users cannot answer. * **Hide submit** expecting the button to disappear — Fill always keeps Next/Submit; use Require or Jump. * **Jump** to deleted page — Studio warns; fix before publish. * Removing **Always → Calculate** from Calculated blocks — formulas stop updating. *** ## Troubleshooting <AccordionGroup> <Accordion title="Action never applies"> **When** false — incomplete clause, blank source field, or fail-closed comparison value. </Accordion> <Accordion title="Action stuck on after answer change"> Another rule still matches, or a later rule won — inspect Logic Board order. </Accordion> <Accordion title="Submit fails mysteriously"> Visible required field empty — not hidden ones. Check current page validation. </Accordion> <Accordion title="Studio conflict hint"> Show ↔ Hide fight on same block — reorder rules or narrow **When** until hint clears. </Accordion> </AccordionGroup> <Panel> [How logic works](/features/studio/logic/overview) · [Operators](/features/studio/logic/operators/overview) · [Field conditions](/features/studio/logic/field-conditions) · [Logic Board](/features/studio/logic-board) </Panel> # Require answer Source: https://flexforms.bjanczak.com/features/studio/logic/actions/require-answer Then action: Make the chosen fields mandatory on fill. **Require answer** marks selected fields **mandatory** while **When** matches — respondents must fill them before progressing or submitting (if visible on the current page). Use with [Show blocks](/features/studio/logic/actions/show-blocks) for conditional required follow-ups. *** ## When to choose this | Goal | Use **Require answer** | Use something else instead | | - | - | - | | Conditional mandatory fields | ✓ | — | | Remove mandatory flag | ✗ | **[Make optional](/features/studio/logic/actions/make-optional)** | | Hide field entirely | ✗ | **[Hide blocks](/features/studio/logic/actions/hide-blocks)** | | Block all submissions | ✗ | **[Hide submit](/features/studio/logic/actions/hide-submit)** | Block-level **Required** toggle sets the default; logic **Require** overrides while rule matches (subject to last-wins ordering). *** ## Exact behavior * Sets `required: true` on targets while **When** is true. * **Hidden fields are never required** — engine forces required off if field not visible (Hide, other page, or default hidden). * Validation runs on **current visible page** before Next — future-page required fields do not block yet. * **Last matching rule wins** vs **Make optional** on same target. * Does not Show fields — pair with **Show blocks** if follow-up starts hidden. <Callout type="warning"> **Intelligent validation:** Required fields hidden by logic or on future pages are ignored until visible — users are not blocked by questions they cannot see. </Callout> *** ## What changes on fill | Situation | Result | | - | - | | Field hidden | Required ignored | | **When** false | May revert to block default required state | | **Make optional** later in order | Optional wins if that rule matches last | | Multi-page | Required on Page 3 does not block Page 1 Next | *** ## Configure in Studio <Steps> <Step title="Open a rule"> Prefer **Branch** or **Add condition** on the parent field for local follow-ups. </Step> <Step title="Build When"> Condition that should trigger mandatory follow-up. </Step> <Step title="Show follow-up (if hidden)"> Add **Show blocks** on same or earlier rule if targets start hidden. </Step> <Step title="Add Require answer"> Select follow-up block(s). </Step> <Step title="Preview validation on Fill"> Try Next/Submit without filling — should block with field error when visible. </Step> </Steps> *** ## Worked examples ### “Other” specification > **When** Plan **equals** `Other` → **Show blocks** `Please specify` + **Require answer** `Please specify` ### Call-back phone > **When** “Call me back” **equals** `Yes` → **Show blocks** `Phone` + **Require answer** `Phone` ### Enterprise compliance > **When** Plan **equals** `Enterprise` → **Require answer** `DPA contact email` Assumes field already visible on canvas. ### Urgent notes > **When** Notes **contains** `urgent` → **Require answer** `Phone` *** ## Test on fill <Steps> <Step title="Trigger When"> Asterisk / required indicator appears on targets. </Step> <Step title="Leave required empty on current page"> Next or Submit blocked with validation message. </Step> <Step title="Fill required field"> Progress allowed. </Step> <Step title="Revert When"> Required indicator may disappear — field may revert to default optional. </Step> <Step title="Hide required field"> Submit not blocked by that field. </Step> </Steps> *** ## Common mistakes * **Require** on hidden follow-up without **Show**. * **Require** on Page 2 field while testing Page 1 submit — may not block until that page visible. * Fighting **Make optional** rules — fix order or exclusive **When**. *** ## Troubleshooting <AccordionGroup> <Accordion title="Required but no asterisk"> Field hidden or **When** false — check Show/Hide state. </Accordion> <Accordion title="Submit fails unexpectedly"> Another visible required field on current page — not necessarily your logic target. </Accordion> <Accordion title="Required when should be optional"> Later **Require** rule still matches, or block default is required — add **Make optional** rule. </Accordion> <Accordion title="Follow-up visible but not required"> **Require** action missing or overridden — add action or reorder rules. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Make optional](/features/studio/logic/actions/make-optional) · [Show blocks](/features/studio/logic/actions/show-blocks) · [Field conditions](/features/studio/logic/field-conditions) · [How logic works](/features/studio/logic/overview) </Panel> # Set value Source: https://flexforms.bjanczak.com/features/studio/logic/actions/set-value Then action: Write a literal or another field’s answer into a target field. **Set value** writes an answer into a target field when **When** matches. * Value can be a typed literal or **Answer of…** another field (`@ref`). * Writes feed later rules in the same evaluation pass (like Calculate). * On fill, the value appears in the respondent’s live answers. *** ## Related * Wipe instead: [Clear value](/features/studio/logic/actions/clear-value) * Numeric formulas: [Calculate](/features/studio/logic/actions/calculate) [All actions](/features/studio/logic/actions/overview) · [How logic works](/features/studio/logic/overview) # Show blocks Source: https://flexforms.bjanczak.com/features/studio/logic/actions/show-blocks Then action: Make the chosen fields visible again. **Show blocks** turns selected fields **on** — they become visible on the fill form while the parent rule’s **When** clause matches. Use it for follow-up questions, conditional sections, and progressive disclosure paired with [Require answer](/features/studio/logic/actions/require-answer). *** ## When to choose this | Goal | Use **Show blocks** | Use something else instead | | - | - | - | | Reveal hidden follow-up fields | ✓ | — | | Hide irrelevant sections | ✗ | **[Hide blocks](/features/studio/logic/actions/hide-blocks)** | | Make field mandatory | ✗ | **[Require answer](/features/studio/logic/actions/require-answer)** (often paired) | | Skip pages | ✗ | **[Jump to page](/features/studio/logic/actions/jump-to-page)** | | Compute a value | ✗ | **[Calculate](/features/studio/logic/actions/calculate)** | Default visibility comes from each block’s own settings. **Show** overrides a prior **Hide** only if this rule matches **last** among conflicting rules. *** ## Exact behavior * Target blocks switch to **visible** on fill while **When** is true. * Previously hidden answers may reappear **empty** if [Hide blocks](/features/studio/logic/actions/hide-blocks) cleared them earlier — Show does not restore old values. * Showing alone does **not** make a field required — add **Require answer** if needed. * Fields on **other pages** become visible in schema but only appear when that page is active. * Calculated targets can be shown like any other block; formulas keep updating. *** ## What changes on fill | Situation | Result | | - | - | | **When** becomes false | Show effect may revert if no other rule keeps field visible | | Later rule **Hide** same target | Hide wins if it evaluates last | | **Require** on hidden field | Required cleared until visible (engine invariant) | | Block marked hidden in settings | Show sets visible true while rule matches | *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** — complete **When** first. </Step> <Step title="Add Then action"> Click **Add action** → **Show blocks**. </Step> <Step title="Select target blocks"> Pick one or more blocks by canvas label — VAT field, “Please specify”, SSO section, etc. </Step> <Step title="Optional: Require shown fields"> Add second action **Require answer** on the same targets in the same rule. </Step> <Step title="Check conflict hints"> Resolve Show ↔ Hide warnings on the same target. </Step> <Step title="Preview on Fill"> Trigger **When** true/false and confirm visibility toggles live. </Step> </Steps> *** ## Worked examples ### Enterprise plan details > **When** Plan **equals** `Enterprise` → **Show blocks** `SSO details, Audit log` Pair with **Require** on mandatory enterprise fields. ### “Other” free text > **When** Industry **equals** `Other` → **Show blocks** `Please specify industry` + **Require answer** `Please specify industry` ### Progressive disclosure > **When** Company **is not empty** → **Show blocks** `VAT ID, Billing address` ### Quiz feedback section > **When** Score **greater than or equal** `70` → **Show blocks** `Pass certificate download` Score may come from a [Calculate](/features/studio/logic/actions/calculate) target. *** ## Test on fill <Steps> <Step title="Before When true"> Target blocks hidden (or not yet shown). </Step> <Step title="Satisfy When"> Targets appear immediately. </Step> <Step title="Revert When"> Targets hide unless another Show rule applies. </Step> <Step title="Required asterisk"> Only if **Require answer** added — Show alone does not add it. </Step> <Step title="Re-show after Hide cleared data"> Fields visible but empty — user must re-enter. </Step> </Steps> *** ## Common mistakes * Showing without **Require** when follow-up is mandatory. * Two rules fighting — one Show, one Hide on same target; reorder or narrow **When**. * Expecting Show to restore answers cleared by Hide. * Showing blocks on a page users never reach — combine with **Jump to page** if needed. *** ## Troubleshooting <AccordionGroup> <Accordion title="Follow-up never appears"> **When** false — check operator, blank source, option value spelling. Later Hide rule may override. </Accordion> <Accordion title="Follow-up appears but submit fails"> Add **Require** if needed; check other visible required fields on current page. </Accordion> <Accordion title="Field flashes then hides"> Competing rules — last wins. Use exclusive **When** clauses or reorder Logic Board. </Accordion> <Accordion title="Shown field on wrong page"> Visibility is global in schema; user must navigate to that page to see it — expected multi-page behavior. </Accordion> </AccordionGroup> <Panel> [All actions](/features/studio/logic/actions/overview) · [Hide blocks](/features/studio/logic/actions/hide-blocks) · [Require answer](/features/studio/logic/actions/require-answer) · [Field conditions](/features/studio/logic/field-conditions) · [How logic works](/features/studio/logic/overview) </Panel> # Branch & field conditions Source: https://flexforms.bjanczak.com/features/studio/logic/field-conditions Per-answer Branch, Otherwise, and advanced Add condition When → Then on a canvas field. **Branch** and **Add condition** mean: this *question* owns follow-up behavior. You do **not** drag an If / Else card from the Logic sidebar. Stay on a normal field (Select, Multiple choice, …) and either: * use **Branch** (choice answers → show follow-ups / go to page), or * use **Add condition** (or **Edit as When → Then**) for the full When → Then editor **under the same field** For the big picture (Branch vs Rules vs Calculated), see [How logic works](/features/studio/logic/overview). *** ## When to use Branch vs Rules | Use Branch / Add condition | Use something else | | - | - | | Show “Please specify” when choice is **Other** | [Rules](/features/studio/logic-board) for hide Submit / complex gates | | Per-answer **Go to page** + **Otherwise** default | [Calculated](/features/studio/calculated-fields) for live math / scores | | Require phone only when “Call me” is checked | Same — Branch or Add condition on the parent | Prefer **Branch** for \~90% of “if they pick X, show Y / jump” cases. ### Non-choice fields (Show if) **Branch** is for choice / select / radio answers. On **text, number, email**, and other non-choice fields, use **Show this field if…** on the **target** field: 1. Select the field that should appear conditionally. 2. In the field chrome, click the workflow icon (**Show if…**). 3. Pick the **source** field, operator, and value. 4. Studio compiles a **Show blocks** rule (inverted attachment — logic lives as a Rules entry that reveals this field). Need full **When → Then** under the same field? Click the icon again for **Edit as When → Then**, or use the link under the card. Switch back with **Use Show if…**. Selecting a field alone does **not** open logic — only the chrome workflow icon does. > **When** Company **is not empty** → **Show blocks** Invoice address\ > **When** Budget **greater than or equal** `1000` → **Show** + **Require** Phone Same engine as Branch — only the Studio chrome differs. *** ## Branch on a choice field <Steps> <Step title="Select the choice field"> Click the Multiple choice / Select / Radio that should own the branches. </Step> <Step title="Open Branch"> Hover the field, then click the chrome workflow icon (**Branch**). Selecting the field alone does not open Branch. </Step> <Step title="Configure each answer"> For each option: **Show follow-up** (pick fields) and/or **Go to page**. </Step> <Step title="Set Otherwise"> **Otherwise** is the default path when no answer branch matches — continue to the next page, or jump elsewhere. </Step> <Step title="Test"> Preview or use **Logic → Simulator**. Confirm follow-ups show/hide and jumps land correctly. </Step> </Steps> If the recipe is too complex for Branch, Studio shows the When → Then editor under the field automatically. On a Branch field you can still switch: **Edit as When → Then** (or the field chrome workflow icon — tooltip says **Edit as When → Then** while Branch is open), then **Use Branch** to go back. The same chrome icon is **context-aware** and is the only way to open under-field logic: | Field type | Tooltip (hover) | Click | | - | - | - | | Choice with Branch | **Branch** → **Edit as When → Then** → close | Opens Branch, then When → Then, then closes | | Text / number / email | **Show if…** → **Edit as When → Then** → close | Opens Show if, then When → Then, then closes | | Other | **Open Rules** | Opens Workflow → Rules | *** ## Advanced: When → Then under the field <Steps> <Step title="Select the parent field"> Click the field that should *own* the rule. </Step> <Step title="Open When → Then under the field"> On a Branch field: chrome workflow icon (tooltip **Edit as When → Then** while Branch is open), or the **Edit as When → Then** link under Branch. On Show-if fields: the same icon toggles **Show if…** ↔ **When → Then**. On other fields: tooltip **Open Rules** opens Workflow → Rules. </Step> <Step title="Build When"> Source field + [operator](/features/studio/logic/operators/overview) + value; **All** / **Any** groups as needed. </Step> <Step title="Build Then"> Common stacks: **Show** + **Require** on a follow-up; **Hide** when not needed; **Make optional** when a required field should relax. </Step> <Step title="Reorder and test"> Multiple rules can live on one field. They run in evaluation order with all other Rules. Preview: pick Other → follow-up shows; pick a normal option → follow-up hides and clears. </Step> </Steps> *** ## Compared to Rules and Calculated | | Branch / Add condition | Workflow → Rules | Calculated | | - | - | - | - | | Lives on | A real question | Top **Logic** panel | Its own canvas field | | Best for | Follow-ups / per-answer jumps | Form-wide gates, hide Submit, complex When | Live totals / scores | | Engine | Same When → Then store | Same | Always → Calculate | *** ## Operator & action tips * Open the [field-type → operator matrix](/features/studio/logic/operators/overview) when an operator is missing. * Blank parent answers do **not** trigger **equals** or **not equals** — use [Is empty](/features/studio/logic/operators/empty). * [Hide blocks](/features/studio/logic/actions/hide-blocks) **clears** answers. * Conflict chips appear when rules fight — fix before publish. * Deleting a follow-up field **scrubs** Branch / Rules references automatically. *** ## Worked recipes ### Other → specify (classic) 1. Multiple choice includes option `Other`. 2. Short text “Please specify”. 3. On the choice: **Branch** → Other → **Show follow-up** “Please specify”. 4. Optional: in **Rules**, Require that field when Other is selected. ### Checkbox unlocks phone > **When** “Call me back” **equals** `Yes` → **Show** + **Require** Phone\ > (Add condition or Rules — same engine) ### Empty company hides invoice block > **When** Company **is empty** → **Hide** Invoice address *** ## Common mistakes <AccordionGroup> <Accordion title="Follow-up never appears"> Check Branch row for the right option, When value spelling, whether the parent is answered, and whether a later Hide overrides Show. </Accordion> <Accordion title="Follow-up appears but Submit still fails"> Did you also **Require** it? Is another visible required field on the visited path empty? </Accordion> <Accordion title="Old answer resurfaces after hide"> Hide clears answers. If you see old data, inspect Submissions after a clean fill. </Accordion> <Accordion title="I put this only in Rules by mistake"> Fine for testing, but move local follow-ups to **Branch** so Rules stays readable for routing. </Accordion> </AccordionGroup> <Panel> [How logic works](/features/studio/logic/overview) · [Operators](/features/studio/logic/operators/overview) · [Actions](/features/studio/logic/actions/overview) · [Workflow → Rules](/features/studio/logic-board) </Panel> # If / Else block (deprecated) Source: https://flexforms.bjanczak.com/features/studio/logic/if-else-block Deprecated: the Logic catalog If / Else card is removed. Prefer Branch on a field and [Workflow → Rules]. <Warning> **Deprecated — removed from the catalog.** The canvas **If / Else** card is no longer insertable. Existing forms still load; Studio migrates those rules into **Rules** (`schema.logic`, no field anchor) automatically. Prefer [Branch & field conditions](/features/studio/logic/field-conditions) and the [Workflow → Rules](/features/studio/logic-board) for all new work. </Warning> ## What it was **If / Else** in the left catalog was **not a question**. Respondents never typed into it. It was a visible canvas card that hosted the same When → Then editor as Rules. That third entry point is gone. Authoring is now: 1. **Branch** on choice answers (+ **Otherwise**) 2. **Workflow → Rules** (plus Flow map + Simulator) for full When → Then 3. **Calculated** for live formulas ## Migration | Old habit | Do this instead | | - | - | | Drop If / Else for “Other → specify” | [Branch](/features/studio/logic/field-conditions) on the choice field | | Drop If / Else for page routing | Branch **Go to page**, or **Rules** → Jump to page | | Drop If / Else for hide Submit / complex When | [Workflow → Rules](/features/studio/logic-board) | | Live scoreboard | [Calculated](/features/studio/calculated-fields) | You do not need to rebuild old forms by hand — open Studio once and save; migrated rules appear under **Workflow → Rules**. ## Evaluation (legacy cards still in a schema) Until migrated, any remaining card rules run with other block-layer logic in canvas order. Later matching rules still win. Prefer opening **Workflow → Rules** and editing there after migration. <Panel> [How logic works](/features/studio/logic/overview) · [Workflow → Rules](/features/studio/logic-board) · [Branch & field conditions](/features/studio/logic/field-conditions) </Panel> # Always Source: https://flexforms.bjanczak.com/features/studio/logic/operators/always When clause operator: The rule matches on every recalculation (Calculated fields). **Always** makes the **When** clause pass on **every** logic recalculation — no field test, no comparison value. You will not pick this in normal branching rules. It ships on **Calculated** blocks as **When Always → Calculate** so formulas run whenever answers change. *** ## When to choose this | Goal | Use **Always** | Use something else instead | | - | - | - | | Run Calculate on every answer change | ✓ | — | | Conditional formula | ✗ | Real **When** clauses on same rule | | Show/hide without condition | ✗ | Default visibility or proper **When** | | Run once at submit | ✗ | Calculated fields update live on fill | <Warning> **Always** is not offered in the standard When operator picker for field rules. It appears on **Calculated** block logic and similar always-on formula wiring. </Warning> *** ## Exact behavior * Returns true immediately — no field, no value check. * Ignores blank answers elsewhere in the same rule’s **When** only if **When** is solely **Always** (single always clause). * If nested in **All** groups with other clauses, those siblings still must pass. * Powers live [Calculate](/features/studio/logic/actions/calculate) updates on Calculated blocks. *** ## Which field types | Context | Available | | - | - | | Calculated block logic | ✓ (built-in) | | Normal field When picker | — (not shown) | | Logic Board / If-Else manual | Rare — prefer real conditions | **Always** is operator-level, not field-type gated — but Studio restricts where you can set it. *** ## Blank / unanswered answers Not applicable — **Always** does not read answers to decide if **When** passes. Formula tokens inside **Calculate** still treat blanks according to [Calculate](/features/studio/logic/actions/calculate) rules. *** ## Configure in Studio <Steps> <Step title="Add a Calculated block"> From the block palette, insert **Calculated** and pick a target field (or create one). </Step> <Step title="Open the block’s logic"> Calculated blocks include a pre-wired rule: **When Always**. </Step> <Step title="Set Then → Calculate"> Build expression with `{token}` inserter — numbers or text mode per target settings. </Step> <Step title="Leave Always in place"> Unless you need conditional formulas — then replace with specific **When** clauses. </Step> <Step title="Preview on Fill"> Change source fields — target should update live. </Step> <Step title="Optional downstream rules"> Add separate rules: **When Score ≥ 70** reading the calculated target. </Step> </Steps> *** ## Worked examples ### Live order total > **When Always** → **Calculate** `{quantity} * {unit_price}` into **Order total** Recalculates whenever qty or price changes. ### Greeting line (text mode) > **When Always** → **Calculate** `Hello, {first_name}!` into **Personalized heading** Blank `{first_name}` becomes empty string in text mode. ### Score from answers > **When Always** → **Calculate** `{q1} + {q2} + {q3}` into **Quiz score** Downstream: **When Quiz score greater than or equal** `70` → jump to Pass page. ### Conditional override (replace Always) > **When** Plan **equals** `Pro` → **Calculate** `{base} * 1.2` into **Price** Remove **Always** when formula should run only sometimes. *** ## Test on fill <Steps> <Step title="Open Fill"> Calculated target visible (unless hidden by other rules). </Step> <Step title="Change source fields"> Target updates without toggling any When condition manually. </Step> <Step title="Clear a numeric token"> Number result should empty — not silently treat blank as zero in expression. </Step> <Step title="Downstream When on calculated field"> Branch fires when computed value crosses threshold. </Step> </Steps> *** ## Common mistakes * Deleting **Always** from Calculated block without adding another trigger — formula stops updating. * Putting **Always** in **All** group with unrelated clauses — siblings still gate the rule. * Expecting **Always** in Logic Board When dropdown — use Calculate action with real conditions instead. *** ## Troubleshooting <AccordionGroup> <Accordion title="Calculated field stopped updating"> Restore **When Always → Calculate** or add explicit Calculate on matching rules. </Accordion> <Accordion title="Formula wrong not When wrong"> Check `{blockId}` tokens and number vs text result type — see [Calculated fields](/features/studio/calculated-fields). </Accordion> <Accordion title="Need conditional calculate"> Replace **Always** with specific operators; keep separate Calculated block per formula if clearer. </Accordion> <Accordion title="Calculate runs but Show rule does not"> Calculated value feeds forward same pass — order rules so When on total comes after Calculate in board order. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Calculate action](/features/studio/logic/actions/calculate) · [Calculated fields](/features/studio/calculated-fields) · [How logic works](/features/studio/logic/overview) </Panel> # Is between Source: https://flexforms.bjanczak.com/features/studio/logic/operators/between When clause operator: The number or date falls inside an inclusive min–max range. **Is between** matches when the answer is **inside** an inclusive range — at or above **Min** and at or below **Max**. Use it for age bands, score brackets, and date windows (e.g. stay dates inside a season). *** ## Exact behavior * **Numbers** and **dates** only. * Range is inclusive on both ends. * Value shape: `[min, max]` or `{ min, max }` (Studio uses two value fields). * Blank answers never match. Incomplete ranges (missing min or max) never match. *** ## Which field types | Family | Available | | - | - | | Number | ✓ | | Date & time | ✓ | | Text, choice, yes/no, presence | — | *** ## Related * Opposite: [Is not between](/features/studio/logic/operators/not_between) * Single bound: [Greater than or equal](/features/studio/logic/operators/gte) / [Less than or equal](/features/studio/logic/operators/lte) [All operators](/features/studio/logic/operators/overview) · [How logic works](/features/studio/logic/overview) # Contains Source: https://flexforms.bjanczak.com/features/studio/logic/operators/contains When clause operator: The text includes this snippet, or a multi-choice answer includes this option. **Contains** checks whether the answer **includes** what you specify — a substring in text, or a selected option in a multi-choice field. Use it for keyword triggers (“urgent” in notes), add-on detection, and tag-style membership without requiring an exact full set. *** ## When to choose this | Goal | Use **Contains** | Use something else instead | | - | - | - | | Text includes substring | ✓ | **Starts with** / **Ends with** for prefix/suffix | | Multi-select includes one option | ✓ | **Is any of** for allow-list of several values | | Exact full multi-select set | ✗ | **[Equals set](/features/studio/logic/operators/eq_set)** | | All listed options selected | ✗ | **[Includes every of](/features/studio/logic/operators/is_every_of)** | | Text does not include | ✗ | **[Does not contain](/features/studio/logic/operators/not_contains)** | | Blank field | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * **Text fields:** case-insensitive substring search (`mb_strtolower` on both sides). `"URGENT ticket"` contains `"urgent"`. * **Multi-choice / tags:** checks whether **any selected option** equals your value (same flexible matching as [Equals](/features/studio/logic/operators/eq)). * **Single-choice** fields support **Contains** — behaves like **Equals** for one value. * Your comparison value must be non-empty, or the clause never matches. * Null or non-string text answers fail the check; empty string `""` does not contain a non-empty snippet. * Empty multi-select `[]` does not contain any option. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | Choice (select, radio, checkbox list, tags, …) | ✓ | | Number, date, yes/no, presence | — | *** ## Blank / unanswered answers * **Unanswered text** (`null`, non-string): **does not match**. * **Empty text** (`""`): does not contain a non-empty snippet. * **Empty multi-select** (`[]`): does not contain any option. * Use [Is empty](/features/studio/logic/operators/empty) for “nothing selected / no notes”. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick text or choice field"> Email, textarea, tags, checkbox list, etc. </Step> <Step title="Choose Contains"> Operator appears for text and choice families. </Step> <Step title="Enter snippet or pick option chip"> Non-empty value required — `"urgent"`, `Priority support`, etc. </Step> <Step title="Add Then actions"> [Require answer](/features/studio/logic/actions/require-answer), [Show blocks](/features/studio/logic/actions/show-blocks). </Step> <Step title="Test case variants on Fill"> Upper/lowercase text, partial selections, empty field. </Step> </Steps> *** ## Worked examples ### Urgent keyword in notes > **When** Notes **contains** `urgent` → **Then** [Require answer](/features/studio/logic/actions/require-answer) `Phone` `URGENT`, `Urgent`, and `urgent` all match — case-insensitive. ### Add-on selected > **When** Add-ons **contains** `Priority support` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `SLA disclaimer` Other add-ons may also be selected. ### Tag membership > **When** Tags **contains** `Enterprise` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Account manager field` Works like “includes this tag among many”. ### Email domain hint (text) > **When** Work email **contains** `@acme.com` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Employee ID` Substring match — not full email validation. *** ## Test on fill <Steps> <Step title="Type text with snippet"> Rule fires; remove snippet — rule off. </Step> <Step title="Try different casing"> Should still match for text. </Step> <Step title="Select option on multi-choice"> Fire; deselect — off. </Step> <Step title="Leave field empty"> Off — use **Is empty** if you need blank handling. </Step> </Steps> *** ## Common mistakes * Using **Contains** for exact multi-select with no extras — use **Equals set**. * Expecting **Contains** on numbers or dates — operator unavailable. * Duplicating rules for `VIP` and `vip` — matching is case-insensitive for text. * Empty comparison snippet — clause never matches. *** ## Troubleshooting <AccordionGroup> <Accordion title="Text rule never fires"> Field may be null/non-string, or snippet not actually present. Check for extra spaces — substring must appear contiguously. </Accordion> <Accordion title="Choice rule never fires"> Verify stored option value matches chip in rule, not just label shown on Fill. </Accordion> <Accordion title="Need exclude substring"> Use **Does not contain** — requires non-blank answer on source field. </Accordion> <Accordion title="Need multiple allowed snippets"> Use **Any** group with several **Contains** clauses, or **Is any of** on choice fields. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Does not contain](/features/studio/logic/operators/not_contains) · [Is any of](/features/studio/logic/operators/in) · [Equals set](/features/studio/logic/operators/eq_set) · [How logic works](/features/studio/logic/overview) </Panel> # Is after (relative) Source: https://flexforms.bjanczak.com/features/studio/logic/operators/date_after_relative When clause operator: The date answer is after a relative anchor such as today or +7d. **Is after (relative)** compares a date answer to a rolling anchor (`today`, `+7d`, `-1d`, `+2w`, …). Blank answers and invalid anchors never match. *** ## Related * Opposite direction: [Is before (relative)](/features/studio/logic/operators/date_before_relative) * Fixed dates: [After](/features/studio/logic/operators/gt) [All operators](/features/studio/logic/operators/overview) · [How logic works](/features/studio/logic/overview) # Is before (relative) Source: https://flexforms.bjanczak.com/features/studio/logic/operators/date_before_relative When clause operator: The date answer is before a relative anchor such as today or +7d. **Is before (relative)** compares a date answer to a rolling anchor. Supported anchors: `today`, `+7d`, `-1d`, `+2w`, `+1m`, `-1y` (days, weeks, months, years). Blank answers and invalid anchors never match. *** ## Which field types | Family | Available | | - | - | | Date & time | ✓ | *** ## Related * Opposite direction: [Is after (relative)](/features/studio/logic/operators/date_after_relative) * Fixed dates: [Before](/features/studio/logic/operators/lt) [All operators](/features/studio/logic/operators/overview) · [How logic works](/features/studio/logic/overview) # Is empty Source: https://flexforms.bjanczak.com/features/studio/logic/operators/empty When clause operator: There is no answer yet (blank, empty list, unsigned). **Is empty** checks that a field has **no answer** — skipped, blank text, nothing selected, no file uploaded, or unsigned (for signature blocks). This is the correct operator for “they left it blank”. Do not use [Not equals](/features/studio/logic/operators/neq) or [Does not contain](/features/studio/logic/operators/not_contains) for that case. *** ## When to choose this | Goal | Use **Is empty** | Use something else instead | | - | - | - | | Skipped / blank / nothing selected | ✓ | — | | Has any answer | ✗ | **[Is not empty](/features/studio/logic/operators/not_empty)** | | Equals specific value | ✗ | **[Equals](/features/studio/logic/operators/eq)** | | Toggle unchecked | ✗ | **[Equals](/features/studio/logic/operators/eq)** `No` on yes/no fields | | File not uploaded | ✓ | Presence family — same operator | *** ## Exact behavior Treats these as empty: * `null` / never answered * Empty string `""` * Empty array `[]` (no multi-select choices) No comparison value is needed — if Studio shows a value field, leave it unset. For **signature** blocks, Studio may label this **Is not signed** — same behavior: no signature captured yet. *** ## Which field types | Family | Available | Notes | | - | - | - | | Text | ✓ | | | Number | ✓ | Unfilled numeric | | Date & time | ✓ | No date picked | | Choice | ✓ | Nothing selected | | Presence (file, signature, map, repeater, …) | ✓ | Nothing provided | | Yes / no (toggle, checkbox) | — | Use **Equals** `No` / unchecked | | Default fallback | ✓ | | *** ## Blank / unanswered answers **This operator exists for blank answers** — empty **matches**, filled **does not**. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick the field to watch"> Company, Attachment, Signature, optional follow-up, etc. </Step> <Step title="Choose Is empty"> On signatures: **Is not signed**. </Step> <Step title="Leave value blank"> No comparison value required. </Step> <Step title="Add Then actions"> Common: [Hide blocks](/features/studio/logic/actions/hide-blocks), [Make optional](/features/studio/logic/actions/make-optional), [Jump to page](/features/studio/logic/actions/jump-to-page). </Step> <Step title="Test fill then clear on Fill"> Rule should toggle when answer removed. </Step> </Steps> *** ## Worked examples ### Hide invoice when no company > **When** Company **is empty** → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `Invoice address` Typing a company name hides the rule’s effect (if no other rule applies). ### Skip verification without attachment > **When** Attachment **is empty** → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Summary` Uploading a file disables the jump on next recompute. ### Optional follow-up collapsed > **When** Referral code **is empty** → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `Referrer details` ### Unsigned waiver > **When** Liability waiver **is not signed** → **Then** [Hide submit](/features/studio/logic/actions/hide-submit) Pair with explanation block on canvas. *** ## Test on fill <Steps> <Step title="Load page without touching field"> Rule on if field starts blank. </Step> <Step title="Provide an answer"> Rule off. </Step> <Step title="Clear answer if field allows"> Rule on again. </Step> <Step title="Multi-select: deselect all"> Treats as empty `[]` — rule on. </Step> </Steps> *** ## Common mistakes * Using **not equals X** hoping blank triggers — it will not; use **Is empty**. * Using **Is empty** on toggle/checkbox — use **Equals** for unchecked state. * **All** group combining **Is empty** and **Equals** on same field without planning — often use separate rules or **Any** mode. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule off while field looks blank"> Default value may pre-fill field; hidden calculated tokens may count as answered. </Accordion> <Accordion title="Hide does not revert when filled"> Another rule may still match — check Logic Board order and **last wins** policy. </Accordion> <Accordion title="File field always not empty"> Partial upload states — test real Fill upload/remove cycle. </Accordion> <Accordion title="Need both empty and specific value"> Use **Any** with **Is empty** and **Equals** clauses, or separate rules with clear UX copy. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Is not empty](/features/studio/logic/operators/not_empty) · [Hide blocks](/features/studio/logic/actions/hide-blocks) · [How logic works](/features/studio/logic/overview) </Panel> # Ends with Source: https://flexforms.bjanczak.com/features/studio/logic/operators/ends_with When clause operator: The text finishes with this suffix. **Ends with** checks whether text **finishes with** your suffix — common for file extensions, email domains, and structured IDs. Matching is **case-insensitive**. **Text fields only.** *** ## When to choose this | Goal | Use **Ends with** | Use something else instead | | - | - | - | | Suffix at end of string | ✓ | **Contains** if suffix can appear mid-string | | Prefix at start | ✗ | **[Starts with](/features/studio/logic/operators/starts_with)** | | Exact email domain | ✓ (suffix) | Often `@company.com` via **Ends with** or **Contains** | | Blank text | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * Both actual and expected must be non-empty strings. * Case-insensitive suffix via `mb_strtolower` / `str_ends_with`. * Null, non-string, or empty source → no match. * Empty suffix in rule → fail-closed. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | Number, date, choice, yes/no, presence | — | *** ## Blank / unanswered answers **Does not match.** *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick text field"> Email, filename, account number, etc. </Step> <Step title="Choose Ends with"> Text operators only. </Step> <Step title="Enter suffix"> e.g. `.pdf`, `@partner.com`, `-EU` </Step> <Step title="Add Then actions"> [Require answer](/features/studio/logic/actions/require-answer), [Show blocks](/features/studio/logic/actions/show-blocks). </Step> <Step title="Test suffix placement on Fill" /> </Steps> *** ## Worked examples ### Corporate email domain > **When** Work email **ends with** `@acme.com` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Employee ID` `user@acme.com` matches; `@acme.com.evil.com` does not. ### PDF upload name (text field) > **When** Filename **ends with** `.pdf` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `PDF disclaimer` For actual file blocks, use [Is not empty](/features/studio/logic/operators/not_empty) on the file field. ### Regional SKU > **When** Product code **ends with** `-EU` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `GDPR notice` ### Student email > **When** Email **ends with** `.edu` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Student discount` *** ## Test on fill <Steps> <Step title="Suffix at end"> Rule on. </Step> <Step title="Suffix in middle only"> Rule off. </Step> <Step title="Case variants"> Match regardless of case. </Step> <Step title="Empty"> Rule off. </Step> </Steps> *** ## Common mistakes * Using **Contains @acme.com** when domain must be true suffix — **Ends with** is stricter. * Applying to file upload blocks — use presence empty/not empty; filename may be separate text field. * Empty suffix in rule. *** ## Troubleshooting <AccordionGroup> <Accordion title="Domain false positives"> Use **Ends with** not **Contains** to avoid `@acme.com.attacker.net`. </Accordion> <Accordion title="Trailing spaces"> Spaces before suffix break match — test realistic typing on Fill. </Accordion> <Accordion title="International characters"> Multibyte suffixes supported via `mb_strtolower`. </Accordion> <Accordion title="Negated suffix"> Use [Does not end with](/features/studio/logic/operators/not_ends_with). </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Does not end with](/features/studio/logic/operators/not_ends_with) · [Starts with](/features/studio/logic/operators/starts_with) · [How logic works](/features/studio/logic/overview) </Panel> # Equals (is) Source: https://flexforms.bjanczak.com/features/studio/logic/operators/eq When clause operator: The answer is exactly this value. **Equals** checks whether the respondent’s answer **matches exactly** the value you provide — same choice, same number, same yes/no, or equivalent text after type normalization. Use it when you need a precise match: “Plan is Pro”, “Country is PL”, “Call me back is Yes”. It is the default operator for most branching logic. *** ## When to choose this | Goal | Use **Equals** | Use something else instead | | - | - | - | | Exact single choice | ✓ | — | | Exact number or date | ✓ | **Greater than** / **After** for thresholds | | “Includes this option” on multi-select | Works (any selected option) | **[Contains](/features/studio/logic/operators/contains)** if you mean substring on text; **[Equals set](/features/studio/logic/operators/eq_set)** for exact multi-select with no extras | | Field left blank | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Answer is one of several | ✗ | **[Is any of](/features/studio/logic/operators/in)** | | Answer is not X | ✗ | **[Not equals](/features/studio/logic/operators/neq)** | | Partial text match | ✗ | **[Contains](/features/studio/logic/operators/contains)** | <Note> Older forms may label this operator **Is** — behavior is identical to **Equals**. </Note> *** ## Exact behavior * Compares the respondent’s answer to your expected value using flexible but strict matching: * **Text and numbers** are compared as strings (`"5"` equals `5`). * **Yes/no** accepts common forms: `true`/`false`, `1`/`0`, `yes`/`no`, `on`/`off`. * **Multi-select** answers match when they contain the **same options in any order** — but for “exactly these and nothing else”, use [Equals set](/features/studio/logic/operators/eq_set). * If your comparison value is blank or missing, the clause **never matches** (fail-closed). * You can compare to a **fixed value** or pick another field in **Value** — both sides must be non-blank for a match. *** ## Which field types | Family | Available | Notes | | - | - | - | | Text | ✓ | Full string match after normalization | | Number | ✓ | `"10"` matches `10` | | Date & time | ✓ | Exact date/time string match | | Choice (single or multi) | ✓ | Multi-select: same set in any order | | Yes / no (toggle, checkbox) | ✓ | Use Yes/No chips or boolean values | | Presence (uploads, signature, …) | — | Use [Is empty](/features/studio/logic/operators/empty) / [Is not empty](/features/studio/logic/operators/not_empty) | | Default fallback | ✓ | | *** ## Blank / unanswered answers **Never matches.** An empty, null, or unanswered field does not equal anything — not even an empty expected value. To react to skipped questions, use [Is empty](/features/studio/logic/operators/empty). To react to “anything except X”, use [Not equals](/features/studio/logic/operators/neq) — but only **after** they answer. *** ## Configure in Studio <Steps> <Step title="Open a rule"> Open top bar → **Logic** → **Rules**, or **Branch** / **Add condition** on a field. Expand the **When** section. </Step> <Step title="Select the source field"> Pick the field whose answer you want to test (e.g. **Plan**, **Country**, **Call me back**). </Step> <Step title="Choose Equals"> In the operator dropdown, select **Equals** (or **Is** on older schemas). </Step> <Step title="Set the comparison value"> Type a literal, pick an option chip, or pick another field in **Value** to mirror it (e.g. confirm email matches email). </Step> <Step title="Add Then actions"> Stack actions such as [Show blocks](/features/studio/logic/actions/show-blocks), [Require answer](/features/studio/logic/actions/require-answer), or [Jump to page](/features/studio/logic/actions/jump-to-page). </Step> <Step title="Save and preview on Fill"> Publish when ready, then open **Fill** to verify the branch fires on the exact value only. </Step> </Steps> *** ## Worked examples ### Single choice — show VAT field > **When** Country **equals** `PL` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `VAT number` + [Require answer](/features/studio/logic/actions/require-answer) `VAT number` Use **Equals** because you need exactly Poland — not “any EU country”. ### Yes / no — require phone > **When** “Call me back” **equals** `Yes` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Phone` + [Require answer](/features/studio/logic/actions/require-answer) `Phone` Toggle and checkbox blocks only support **Equals** / **Not equals** — not empty checks. ### Confirm email matches > **When** Confirm email **equals** *(pick)* `Email` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Success message` Both fields must be filled; until Confirm email is typed, the clause stays false. ### Multi-select — one option present > **When** Add-ons **equals** `Priority support` → **Then** show SLA disclaimer Matches if Priority support is selected **even if other add-ons are too**. For “only Priority support, nothing else”, use [Equals set](/features/studio/logic/operators/eq_set). *** ## Test on fill <Steps> <Step title="Open Fill from Studio"> Launch the live preview in a new tab. </Step> <Step title="Enter the exact expected value"> Pick or type the value from your rule. Confirm **Then** actions activate immediately. </Step> <Step title="Try a different value"> Change the answer — actions should revert unless another rule keeps them on. </Step> <Step title="Leave the field blank"> Confirm the rule does **not** fire. If you need blank behavior, add a separate **Is empty** rule. </Step> <Step title="Test field-to-field pairs"> Fill the referenced field first, then the source — match should update live as both change. </Step> </Steps> *** ## Common mistakes * Using **Equals** to detect a blank field — use **Is empty** instead. * Using **Equals** on multi-select when you need an exact set with no extras — switch to **Equals set**. * Expecting a Page 4 field to match before the respondent reaches Page 4 — the answer is empty until then. * Duplicating rules for `"5"` and `5` — normalization handles both; one rule is enough. * Using **Equals** for “contains urgent in notes” — use **Contains** for substring search. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule never fires even with the right answer"> Check option **value** vs **label** in Studio — logic compares stored values. Confirm the comparison value is not blank and the field type supports **Equals**. </Accordion> <Accordion title="Rule fires when I expected false"> Another rule may also match, or **Equals** on multi-select matched because the option is among selections. Narrow with **Equals set** or add **Not equals** guards. </Accordion> <Accordion title="Confirm-email rule never passes"> Both fields must be non-empty. A field pick on an empty confirm field fails closed until typed. </Accordion> <Accordion title="Multi-select behaves like Contains"> **Equals** on multi-select compares full sorted sets when both sides are arrays. For “includes this one option”, **Contains** or **Is any of** may read clearer — but **Equals** with one chip still matches if that option is selected among others via loose matching. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Not equals](/features/studio/logic/operators/neq) · [Is empty](/features/studio/logic/operators/empty) · [How logic works](/features/studio/logic/overview) · [Field conditions](/features/studio/logic/field-conditions) </Panel> # Equals set Source: https://flexforms.bjanczak.com/features/studio/logic/operators/eq_set When clause operator: Multi-select answer is exactly this set (order ignored). **Equals set** checks whether a multi-select answer is **exactly** your set of options — same selections, no extras, order ignored. Use when the combination matters: “only SSO + Audit, nothing else”, not “includes SSO among others”. *** ## When to choose this | Goal | Use **Equals set** | Use something else instead | | - | - | - | | Exact multi-select combination | ✓ | — | | Includes one option (may have extras) | ✗ | **[Contains](/features/studio/logic/operators/contains)** or **[Is any of](/features/studio/logic/operators/in)** | | Includes all listed (extras OK) | ✗ | **[Includes every of](/features/studio/logic/operators/is_every_of)** | | Not this exact set | ✗ | **[Not equals set](/features/studio/logic/operators/neq_set)** | | Single choice | ✗ | **[Equals](/features/studio/logic/operators/eq)** | | Blank | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * **Choice fields (multi-select)** — checkbox list, tags, dual listbox, etc. * Normalizes both sides to unique string sets (drops null/empty entries). * Sorts and compares — order does not matter. * **Blank answers never match** (fail-closed, same as equality operators). * Non-empty expected set required. * Selecting `{A,B}` matches expected `{B,A}`; `{A,B,C}` does not. *** ## Which field types | Family | Available | | - | - | | Choice (multi-select) | ✓ | | Single-select only fields | ✓ (degenerates to one-element set) | | Text, number, date, yes/no, presence | — | *** ## Blank / unanswered answers **Never matches.** Empty array `[]` is blank. Use [Is empty](/features/studio/logic/operators/empty). *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick multi-select field"> Checkbox list, tags, flex checklist, etc. </Step> <Step title="Choose Equals set"> Set operators appear for choice family. </Step> <Step title="Select exact option chips"> Every option that must be selected — and only those. </Step> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks), [Calculate](/features/studio/logic/actions/calculate) bundle pricing. </Step> <Step title="Test exact, superset, subset on Fill" /> </Steps> *** ## Worked examples ### Bundle SKU exactly > **When** Add-ons **equals set** `Hosting, SSL, Backups` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Bundle discount applied` Selecting Hosting+SSL only does not match; adding Support breaks match. ### Compliance pair only > **When** Data processing **equals set** `EU residency, DPA signed` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Enterprise onboarding` ### Quiz multi-answer exact > **When** Correct topics **equals set** `Safety, Ethics` → **Then** full credit message ### Tags exact campaign > **When** Tags **equals set** `Campaign-2026` → **Then** campaign-specific thank you Single-tag set works — equivalent to exact single selection on multi field. *** ## Test on fill <Steps> <Step title="Select exactly the set"> Rule on. </Step> <Step title="Add extra option"> Rule off. </Step> <Step title="Remove one required option"> Rule off. </Step> <Step title="Reorder selections"> Still on — order ignored. </Step> <Step title="Nothing selected"> Rule off. </Step> </Steps> *** ## Common mistakes * Using **Equals set** when extras are OK — use **Includes every of** or **Contains**. * Using on single radio — **Equals** is simpler. * Expecting blank to match empty set — blank never matches equality/set ops. *** ## Troubleshooting <AccordionGroup> <Accordion title="Almost matches but fails"> One extra or missing chip — compare selected values to rule chips in submission preview. </Accordion> <Accordion title="Operator feels too strict"> Switch to **Includes every of** if extras allowed, or **Is any of** for OR logic. </Accordion> <Accordion title="Single vs multi field"> Single-select stores one value — set compare still works as one-element set. </Accordion> <Accordion title="Duplicate selections"> Engine deduplicates via `array_unique` — duplicates in UI should not matter. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Not equals set](/features/studio/logic/operators/neq_set) · [Includes every of](/features/studio/logic/operators/is_every_of) · [Contains](/features/studio/logic/operators/contains) · [How logic works](/features/studio/logic/overview) </Panel> # Greater than / after Source: https://flexforms.bjanczak.com/features/studio/logic/operators/gt When clause operator: The number is bigger, or the date/time is later. **Greater than** (numbers) or **After** (dates) checks whether the answer is **strictly above** your threshold — higher quantity, later deadline, score above a cutoff. Use it for eligibility gates, quiz routing, age checks, and “late registration” fees. Equal values **do not** match — use [Greater than or equal](/features/studio/logic/operators/gte) on numbers when the boundary counts. *** ## When to choose this | Goal | Use **Greater than / After** | Use something else instead | | - | - | - | | Strictly above a number | ✓ | **Greater than or equal** to include the boundary | | Strictly after a date | ✓ | On dates, **≥** is not available — adjust boundary date or use number field | | At or above threshold | ✗ | **[Greater than or equal](/features/studio/logic/operators/gte)** (numbers) | | Below threshold | ✗ | **[Less than / Before](/features/studio/logic/operators/lt)** | | Exact match | ✗ | **[Equals](/features/studio/logic/operators/eq)** | | Blank number/date | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * **Both sides must be present and valid** — blank answers never match. * **Numbers:** compared as floating-point values (`10` > `9.5`, `"10"` > `"9"`). * **Dates and times:** parsed as real timestamps when possible (`strtotime`); otherwise compared as strings lexicographically. * **Strictly greater** — equal values do **not** match. * If your comparison value is blank, the clause never matches (fail-closed). * Pick another field in **Value** — e.g. End date **after** Start date. <Note> Date fields support **After** and **Before** only — not “greater than or equal”. To include the boundary date, pick the day before as your comparison value, or store dates as numbers. </Note> *** ## Which field types | Family | Available | Label in Studio | | - | - | - | | Number | ✓ | Greater than | | Date & time | ✓ | After | | Text, choice, yes/no, presence | — | — | Supported number blocks include integer, stepper, currency, sliders, rating, year, duration, and calculated numeric results. *** ## Blank / unanswered answers **Never matches.** Use [Is empty](/features/studio/logic/operators/empty) to react to skipped number or date fields. If you reference a later-page date via **Value**, the comparison stays false until that field is answered. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** — open **When**. </Step> <Step title="Pick a number or date field"> Only numeric and date/time families show **Greater than** / **After**. </Step> <Step title="Select the operator"> Choose **Greater than** (numbers) or **After** (dates). </Step> <Step title="Set the threshold"> Enter a literal number, pick a date, or pick another field in **Value** for dynamic comparisons. </Step> <Step title="Add Then actions"> Popular: [Jump to page](/features/studio/logic/actions/jump-to-page), [Show blocks](/features/studio/logic/actions/show-blocks), [Calculate](/features/studio/logic/actions/calculate). </Step> <Step title="Test boundary values"> On Fill, try exactly at threshold (should fail) and one step above (should pass). </Step> </Steps> *** ## Worked examples ### Quiz winner routing > **When** Score **greater than** `80` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Winner` Score of exactly `80` does **not** jump — use **≥ 80** if ties should win. ### Late registration fee > **When** Event date **after** `2026-06-01` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Late fee notice` June 1 itself does not match — use May 31 as boundary or switch to a numeric “days until event” calculated field with **≥**. ### Budget exceeds minimum > **When** Budget **greater than** *(pick)* `Minimum budget` → **Then** show upsell options Both fields must be filled with valid numbers. ### Age gate (numeric) > **When** Age **greater than** `17` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Adult consent` Age exactly `17` does not match — use **Greater than or equal** `18` for “18+”. *** ## Test on fill <Steps> <Step title="Enter a value below the threshold"> Rule should stay off. </Step> <Step title="Enter exactly the threshold"> **Greater than / After** should **not** match. </Step> <Step title="Enter one step above"> **Then** actions should fire. </Step> <Step title="Clear the field"> Rule turns off — blank never matches. </Step> <Step title="Test date parsing"> Use realistic date formats your block emits; invalid strings may fall back to string compare. </Step> </Steps> *** ## Common mistakes * Using **After** when you mean “on or after” — adjust the date or use a number field with **≥**. * Comparing text fields — use [Starts with](/features/studio/logic/operators/starts_with) or **Contains** instead. * Reading a field on a page the respondent has not reached — stays false until answered. * Mixing date formats — keep Studio defaults consistent across compared fields. *** ## Troubleshooting <AccordionGroup> <Accordion title="Boundary date should qualify but does not"> **After** excludes equality. Pick the previous calendar day or use a calculated numeric offset. </Accordion> <Accordion title="Comparison never fires with a field pick"> Referenced field may still be blank or non-numeric. Fill both fields in order on Fill. </Accordion> <Accordion title="Numbers compare wrong as strings"> Both sides must be numeric for float compare. Non-numeric strings use lexicographic order — usually not what you want for quantities. </Accordion> <Accordion title="Operator missing for my field"> Field may be text or choice family — **Greater than** is numbers and dates only. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Greater than or equal](/features/studio/logic/operators/gte) · [Less than / before](/features/studio/logic/operators/lt) · [How logic works](/features/studio/logic/overview) </Panel> # Greater than or equal Source: https://flexforms.bjanczak.com/features/studio/logic/operators/gte When clause operator: The number is at or above this threshold. **Greater than or equal** checks whether a numeric answer is **at or above** your threshold — including an exact match at the boundary. Use it for “18+”, minimum order quantities, passing scores (`≥ 70`), and tier unlocks. **Number fields only** — date fields do not offer this operator in Studio. *** ## When to choose this | Goal | Use **Greater than or equal** | Use something else instead | | - | - | - | | At or above a number (inclusive) | ✓ | — | | Strictly above (exclude boundary) | ✗ | **[Greater than](/features/studio/logic/operators/gt)** | | Below a cap | ✗ | **[Less than or equal](/features/studio/logic/operators/lte)** | | Date on or after | ✗ | Not on date fields — use **After** with adjusted date or numeric offset | | Exact number only | ✗ | **[Equals](/features/studio/logic/operators/eq)** | *** ## Exact behavior * **Numbers only** — integer, stepper, currency, sliders, rating, year, duration, calculated numbers. * **Both sides must be present and valid** — blank answers never match. * Compared as floating-point (`>=`). * String numerics like `"18"` compare correctly against `18`. * Blank comparison value → clause never matches (fail-closed). * Pick another field in **Value** for dynamic floors (e.g. Spend **≥ Minimum**). *** ## Which field types | Family | Available | Label in Studio | | - | - | - | | Number | ✓ | Greater than or equal | | Date & time | — | Use [After](/features/studio/logic/operators/gt) with adjusted boundary | | Text, choice, yes/no, presence | — | — | *** ## Blank / unanswered answers **Never matches.** Pair with [Is empty](/features/studio/logic/operators/empty) if skipped fields need their own branch. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Select a number field"> Pick integer, currency, rating, calculated total, etc. </Step> <Step title="Choose Greater than or equal"> Appears only for number family fields. </Step> <Step title="Enter the minimum threshold"> Literal (e.g. `18`, `100.00`) or pick another numeric field in **Value**. </Step> <Step title="Add Then actions"> e.g. [Show blocks](/features/studio/logic/actions/show-blocks), [Jump to page](/features/studio/logic/actions/jump-to-page), [Hide submit](/features/studio/logic/actions/hide-submit) for ineligible users. </Step> <Step title="Test boundary on Fill"> Values at, below, and above threshold. </Step> </Steps> *** ## Worked examples ### Age 18+ gate > **When** Age **greater than or equal** `18` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Adult section` Age `18` matches; age `17` does not. ### Minimum order quantity > **When** Quantity **greater than or equal** `10` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Bulk discount applied` Exactly 10 units qualifies. ### Passing quiz score > **When** Score **greater than or equal** `70` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Pass certificate` Use **≥** so a score of exactly 70 passes. ### Spend meets minimum > **When** Cart total **greater than or equal** *(pick)* `Free shipping minimum` → **Then** show free shipping banner Both totals must be entered and numeric. *** ## Test on fill <Steps> <Step title="Enter one below threshold"> Rule off. </Step> <Step title="Enter exactly at threshold"> Rule **on** — this is the key difference from **Greater than**. </Step> <Step title="Enter well above threshold"> Rule stays on. </Step> <Step title="Clear the field"> Rule off immediately. </Step> </Steps> *** ## Common mistakes * Looking for **≥** on date fields — not available; use [After](/features/studio/logic/operators/gt) or a calculated day count. * Using **Greater than** when boundary should qualify — switch to **≥**. * Comparing non-numeric text — operator unavailable by design. *** ## Troubleshooting <AccordionGroup> <Accordion title="Operator not in dropdown"> Field is not in the number family. Convert to integer/currency or use a calculated numeric field. </Accordion> <Accordion title="70.0 vs 70 mismatch"> Float compare should treat them equal — if not, check for hidden characters in text masquerading as numbers. </Accordion> <Accordion title="Referenced field empty"> Dynamic minimum unset → comparison value blank → fail-closed until filled. </Accordion> <Accordion title="Need date on or after"> Use **After** with (boundary − 1 day) or store epoch/day-count in a number field with **≥**. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Greater than](/features/studio/logic/operators/gt) · [Less than or equal](/features/studio/logic/operators/lte) · [How logic works](/features/studio/logic/overview) </Panel> # Is any of Source: https://flexforms.bjanczak.com/features/studio/logic/operators/in When clause operator: The answer equals one of these values. **Is any of** checks whether the answer matches **at least one** value in your list — an allow-list for single or multi-select choices. Use it for regional routing (`US`, `CA`, `GB`), role tiers, and any “if they picked one of these options” branch. *** ## When to choose this | Goal | Use **Is any of** | Use something else instead | | - | - | - | | Answer is one of several allowed values | ✓ | Multiple **Equals** in **Any** group | | Block-list (forbidden set) | ✗ | **[Is none of](/features/studio/logic/operators/not_in)** | | Must include all listed options | ✗ | **[Includes every of](/features/studio/logic/operators/is_every_of)** | | Exact multi-select set only | ✗ | **[Equals set](/features/studio/logic/operators/eq_set)** | | Text substring | ✗ | **[Contains](/features/studio/logic/operators/contains)** | | Blank | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * **Choice fields only** (select, radio, checkbox list, tags, country, NPS, dual listbox, etc.). * You provide a **non-empty list** of allowed values (multi-chip in Studio). * Matching uses flexible [Equals](/features/studio/logic/operators/eq) rules — `"1"` matches `1`. * **Multi-select:** matches if **any single selected option** is in your list (not “must pick all listed values”). * Empty allow-list → never matches (fail-closed). * Blank answers generally do not match. *** ## Which field types | Family | Available | | - | - | | Choice | ✓ | | Text, number, date, yes/no, presence | — | *** ## Blank / unanswered answers Generally **does not match**. Null/empty/`[]` will not equal normal choice values. Use [Is empty](/features/studio/logic/operators/empty) for the skipped path. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick a choice field"> Country, Role, Plan, Tags, etc. </Step> <Step title="Choose Is any of"> Choice family operator. </Step> <Step title="Add option chips"> One or more values — `US`, `CA`, `GB`, … </Step> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks), [Jump to page](/features/studio/logic/actions/jump-to-page). </Step> <Step title="Test each chip and combinations on Fill"> Multi-select: one match in list should fire rule. </Step> </Steps> *** ## Worked examples ### English legal copy > **When** Country **is any of** `US, CA, GB` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `English terms` Any one of the three countries triggers the block. ### Staff roles > **When** Role **is any of** `Editor, Admin, Owner` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Advanced settings` ### Priority support tier > **When** Plan **is any of** `Pro, Enterprise` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Dedicated support` ### Tags include beta > **When** Tags **is any of** `Beta, Early access` → **Then** [Require answer](/features/studio/logic/actions/require-answer) `Feedback email` On multi-select, selecting either tag matches. *** ## Test on fill <Steps> <Step title="Pick one listed option"> Rule on. </Step> <Step title="Pick unlisted option"> Rule off. </Step> <Step title="Multi-select: one listed + others"> Rule on. </Step> <Step title="Leave empty"> Rule off. </Step> </Steps> *** ## Common mistakes * Using **Is any of** when **all** listed options must be selected — use **Includes every of**. * Using for exact set with no extras — use **Equals set**. * Block-list instead of allow-list — use **Is none of**. * Empty chip list in Studio — clause never matches. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule never fires"> Option values in rule may not match stored values. Confirm chips match option configuration. </Accordion> <Accordion title="Multi-select too permissive"> **Is any of** is OR semantics — switch to **Includes every of** or **Equals set** if too broad. </Accordion> <Accordion title="Operator missing"> Field is not choice family — use **Equals** or text operators. </Accordion> <Accordion title="Need opposite list"> Use **Is none of** with same chip list for block-list logic. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Is none of](/features/studio/logic/operators/not_in) · [Includes every of](/features/studio/logic/operators/is_every_of) · [Equals set](/features/studio/logic/operators/eq_set) · [How logic works](/features/studio/logic/overview) </Panel> # Includes every of Source: https://flexforms.bjanczak.com/features/studio/logic/operators/is_every_of When clause operator: Multi-select includes all listed options (extras allowed). **Includes every of** checks that a multi-select answer contains **all** options you list — extras are allowed, but every required chip must be present. Use for prerequisites: “must include Safety **and** Ethics modules”, even if they also pick electives. *** ## When to choose this | Goal | Use **Includes every of** | Use something else instead | | - | - | - | | Must have all listed options (extras OK) | ✓ | — | | Exact set, no extras | ✗ | **[Equals set](/features/studio/logic/operators/eq_set)** | | Any one of listed | ✗ | **[Is any of](/features/studio/logic/operators/in)** | | Single option present | ✗ | **[Contains](/features/studio/logic/operators/contains)** | | Blank | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * **Choice multi-select fields.** * Normalizes actual and expected to unique string sets. * Returns false if either set is empty after normalization. * True when **every** expected needle appears in the actual haystack. * Extra selections beyond your list do **not** break the match. * Order ignored. <Note> Both the field and your chip list must be non-empty — an unanswered field or empty requirement list never matches. </Note> *** ## Which field types | Family | Available | | - | - | | Choice (multi-select) | ✓ | | Text, number, date, yes/no, presence | — | *** ## Blank / unanswered answers **Never matches** — empty selection normalizes to `[]`, which fails the “non-empty haystack” requirement. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick multi-select field"> Checkbox list, tags, dual listbox, etc. </Step> <Step title="Choose Includes every of" /> <Step title="Add required option chips"> All options that must be selected — at least one chip required. </Step> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks), certificate, pricing tier. </Step> <Step title="Test subset, superset, exact on Fill" /> </Steps> *** ## Worked examples ### Required training modules > **When** Completed modules **includes every of** `Safety, Ethics` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Certification eligible` Selecting Safety + Ethics + Leadership still matches. ### Feature prerequisites > **When** Enabled features **includes every of** `SSO, Audit log` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Enterprise dashboard` Missing either feature fails the clause. ### Tag gate > **When** Tags **includes every of** `Paid, Verified` → **Then** unlock VIP content ### Survey segments > **When** Interests **includes every of** `Product, Support` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Cross-sell offer` *** ## Test on fill <Steps> <Step title="Select all required chips only"> Rule on. </Step> <Step title="Select all required plus extras"> Rule on. </Step> <Step title="Missing one required chip"> Rule off. </Step> <Step title="Nothing selected"> Rule off. </Step> </Steps> *** ## Common mistakes * Using when extras must be forbidden — use **Equals set**. * Using for single-select — **Equals** or **Is any of** is clearer. * Empty chip list in rule — never matches. *** ## Troubleshooting <AccordionGroup> <Accordion title="Extras break my mental model"> **Includes every of** allows extras by design — switch to **Equals set** for exact combos. </Accordion> <Accordion title="One chip never satisfied"> Option value mismatch between Fill and Studio chips. </Accordion> <Accordion title="Rule never fires on partial"> Expected — all listed chips must be present. </Accordion> <Accordion title="vs Contains for one chip"> **Contains** one option is equivalent for single needle; use **Includes every of** when multiple required. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Equals set](/features/studio/logic/operators/eq_set) · [Is any of](/features/studio/logic/operators/in) · [Contains](/features/studio/logic/operators/contains) · [How logic works](/features/studio/logic/overview) </Panel> # Less than / before Source: https://flexforms.bjanczak.com/features/studio/logic/operators/lt When clause operator: The number is smaller, or the date/time is earlier. **Less than** (numbers) or **Before** (dates) checks whether the answer is **strictly below** your threshold — lower score, earlier deadline, under a spending cap. Use it for disqualification paths, early-bird pricing cutoffs, and “under 18” flows. Equal values **do not** match — use [Less than or equal](/features/studio/logic/operators/lte) on numbers when the boundary counts. *** ## When to choose this | Goal | Use **Less than / Before** | Use something else instead | | - | - | - | | Strictly below a number | ✓ | **Less than or equal** to include boundary | | Strictly before a date | ✓ | Dates have no **≤** — adjust boundary | | At or below cap | ✗ | **[Less than or equal](/features/studio/logic/operators/lte)** (numbers) | | Above threshold | ✗ | **[Greater than / After](/features/studio/logic/operators/gt)** | | Exact value | ✗ | **[Equals](/features/studio/logic/operators/eq)** | *** ## Exact behavior * **Both sides must be present and valid** — blank answers never match. * **Numbers:** floating-point comparison (`<`). * **Dates/times:** timestamp parsing when possible; else lexicographic string compare. * **Strictly less** — equal values do **not** match. * Blank comparison value → fail-closed. * Pick another field in **Value** (e.g. End **before** Start is invalid — use for valid range checks). <Note> Date fields offer **Before** and **After** only — not “less than or equal”. To include the boundary day, pick the next day as **Before** target or use a numeric day-count field. </Note> *** ## Which field types | Family | Available | Label in Studio | | - | - | - | | Number | ✓ | Less than | | Date & time | ✓ | Before | | Text, choice, yes/no, presence | — | — | *** ## Blank / unanswered answers **Never matches.** Use [Is empty](/features/studio/logic/operators/empty) for skipped fields. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick number or date field"> Threshold comparisons require numeric or date/time blocks. </Step> <Step title="Choose Less than or Before"> Operator label adapts to field family. </Step> <Step title="Set threshold"> Literal or another field via **Value**. </Step> <Step title="Add Then actions"> [Hide blocks](/features/studio/logic/actions/hide-blocks), [Jump to page](/features/studio/logic/actions/jump-to-page), [Hide submit](/features/studio/logic/actions/hide-submit). </Step> <Step title="Verify on Fill"> Test at, above, and below boundary. </Step> </Steps> *** ## Worked examples ### Early-bird pricing > **When** Registration date **before** `2026-03-01` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Early bird price` March 1 itself does not qualify — use Feb 29 or **≤** on a numeric “days until” field. ### Low score remediation > **When** Score **less than** `50` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Retake instructions` Score of exactly `50` does not match. ### Under budget cap > **When** Quote **less than** *(pick)* `Approved budget` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Auto-approve notice` ### Minor gate > **When** Age **less than** `18` → **Then** [Require answer](/features/studio/logic/actions/require-answer) `Parent consent` Age `18` does not match — use **Less than or equal** `17` or **Less than** `18` intentionally for “17 and under”. *** ## Test on fill <Steps> <Step title="Value above threshold"> Rule off. </Step> <Step title="Exactly at threshold"> Rule off (strict comparison). </Step> <Step title="One step below"> Rule on. </Step> <Step title="Blank field"> Rule off. </Step> </Steps> *** ## Common mistakes * Expecting **Before June 1** to include June 1 — it does not. * Using on text fields — unavailable; use string operators instead. * Cross-page date reference before second date is filled. *** ## Troubleshooting <AccordionGroup> <Accordion title="Boundary should qualify"> Switch to **Less than or equal** on numbers or nudge the date by one day. </Accordion> <Accordion title="Dates compare as strings"> Unparseable formats fall back to string order — use consistent date picker blocks. </Accordion> <Accordion title="Rule never fires"> Source or comparison blank; or field type unsupported. </Accordion> <Accordion title="Opposite logic needed"> Pair with a **Greater than** rule on another branch or use separate **Rules** rows for clear UX. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Less than or equal](/features/studio/logic/operators/lte) · [Greater than / after](/features/studio/logic/operators/gt) · [How logic works](/features/studio/logic/overview) </Panel> # Less than or equal Source: https://flexforms.bjanczak.com/features/studio/logic/operators/lte When clause operator: The number is at or below this threshold. **Less than or equal** checks whether a numeric answer is **at or below** your threshold — including an exact match at the cap. Use it for spending limits, inventory caps, “score ≤ failing threshold”, and tier ceilings. **Number fields only** — date fields use **Before** without an inclusive variant. *** ## When to choose this | Goal | Use **Less than or equal** | Use something else instead | | - | - | - | | At or below a number | ✓ | — | | Strictly below (exclude boundary) | ✗ | **[Less than](/features/studio/logic/operators/lt)** | | At or above floor | ✗ | **[Greater than or equal](/features/studio/logic/operators/gte)** | | Date on or before | ✗ | **Before** with adjusted date on date fields | | Exact match only | ✗ | **[Equals](/features/studio/logic/operators/eq)** | *** ## Exact behavior * **Numbers only.** * Blank source or comparison → never matches. * Float comparison (`<=`); `"100"` vs `100` works. * Pick another field in **Value** for dynamic ceilings. *** ## Which field types | Family | Available | | - | - | | Number | ✓ | | Date & time | — | | Text, choice, yes/no, presence | — | *** ## Blank / unanswered answers **Never matches.** Add [Is empty](/features/studio/logic/operators/empty) for skipped-field paths. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Select a number field"> Currency, integer, rating, calculated total, etc. </Step> <Step title="Choose Less than or equal"> Number family only. </Step> <Step title="Enter the cap"> e.g. `500`, `3.5`, or pick `Max allowed` in **Value**. </Step> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks) warnings, [Hide submit](/features/studio/logic/actions/hide-submit) when over limit (pair with inverse rule). </Step> <Step title="Test on Fill"> At cap, above cap, below cap, blank. </Step> </Steps> *** ## Worked examples ### Free tier limit > **When** Team size **less than or equal** `5` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Free plan eligible` Exactly 5 seats qualifies. ### Fail band > **When** Score **less than or equal** `49` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Retake` Score 49 matches; 50 does not. ### Within approved budget > **When** Estimated cost **less than or equal** *(pick)* `Budget cap` → **Then** enable submit path ### Inventory warning > **When** Requested qty **less than or equal** `0` → **Then** [Hide submit](/features/studio/logic/actions/hide-submit) Combine with validation messaging on canvas. *** ## Test on fill <Steps> <Step title="Above cap"> Rule off (for ≤ cap rules). </Step> <Step title="Exactly at cap"> Rule on. </Step> <Step title="Below cap"> Rule on. </Step> <Step title="Empty field"> Rule off. </Step> </Steps> *** ## Common mistakes * Expecting **≤** on dates — not in Studio for date family. * Using **Less than** when boundary should pass — use **≤**. * Single rule for both over-cap and under-cap — split into two rules or use separate **Rules** rows. *** ## Troubleshooting <AccordionGroup> <Accordion title="Operator missing"> Field not numeric — use integer/currency or calculated number. </Accordion> <Accordion title="Cap reference empty"> Referenced field blank until filled. </Accordion> <Accordion title="Need inclusive date cutoff"> Use **Before** with (deadline + 1 day) or numeric days-until field. </Accordion> <Accordion title="Floating point surprises"> Currency with many decimals — test realistic inputs on Fill. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Less than / before](/features/studio/logic/operators/lt) · [Greater than or equal](/features/studio/logic/operators/gte) · [How logic works](/features/studio/logic/overview) </Panel> # Matches regex Source: https://flexforms.bjanczak.com/features/studio/logic/operators/matches_regex When clause operator: The text answer matches a regular expression pattern. **Matches regex** checks whether a text answer matches your pattern (PCRE). Use it for structured codes, custom ID formats, and advanced text gates that simple Starts with / Contains cannot express. *** ## Exact behavior * **Text fields only.** * Pattern max length **200**; subject is capped at **10 000** characters. * Invalid patterns never match (fail-closed). * Blank answers never match. * Patterns may be written with or without delimiters (`^[A-Z]{3}$` or `/^[A-Z]{3}$/`). *** ## Related * Opposite: [Does not match regex](/features/studio/logic/operators/not_matches_regex) * Simpler text: [Contains](/features/studio/logic/operators/contains) · [Starts with](/features/studio/logic/operators/starts_with) [All operators](/features/studio/logic/operators/overview) · [How logic works](/features/studio/logic/overview) # Not equals (is not) Source: https://flexforms.bjanczak.com/features/studio/logic/operators/neq When clause operator: The answer is anything except this value. **Not equals** checks whether the respondent’s answer **differs** from the value you provide — any other choice, number, text, or yes/no state counts as a match. Use it for exclusion branches: “Plan is not Free”, “Country is not US”, “They did not pick Other”. It requires an **actual answer** — blank fields never match. *** ## When to choose this | Goal | Use **Not equals** | Use something else instead | | - | - | - | | Any answer except one specific value | ✓ | — | | Field left blank / skipped | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Block-list of several values | ✗ | **[Is none of](/features/studio/logic/operators/not_in)** | | Exact multi-select “not this exact set” | ✗ | **[Not equals set](/features/studio/logic/operators/neq_set)** | | Text does not include substring | ✗ | **[Does not contain](/features/studio/logic/operators/not_contains)** | | Number below a threshold | ✗ | **[Less than](/features/studio/logic/operators/lt)** | <Note> Older forms may label this operator **Is not** — behavior is identical to **Not equals**. </Note> *** ## Exact behavior * Requires a **non-blank answer** on the source field — null, `""`, and `[]` **never match** (fail-closed, same as **Equals**). * Uses the same flexible matching as [Equals](/features/studio/logic/operators/eq): string normalization, yes/no aliases, multi-select set comparison. * If your comparison value is blank or missing, the clause **never matches**. * **Multi-select:** matches when the selected set is **not exactly** the expected set (order ignored). *** ## Which field types | Family | Available | Notes | | - | - | - | | Text | ✓ | Any text except exact match | | Number | ✓ | Any number except the threshold | | Date & time | ✓ | Any date except the one specified | | Choice (single or multi) | ✓ | | | Yes / no (toggle, checkbox) | ✓ | e.g. **Not equals** `Yes` when unchecked | | Presence (uploads, signature, …) | — | Use empty / not empty operators | | Default fallback | ✓ | | *** ## Blank / unanswered answers **Never matches.** This surprises many builders: **Not equals Free** does **not** fire when the Plan field is blank — the engine treats unanswered fields as “no comparison yet”, not “anything except Free”. Always pair exclusion logic with a separate **Is empty** rule if you need a third path for skipped fields. *** ## Configure in Studio <Steps> <Step title="Open a rule"> Open **Logic** → **Rules**, or **Branch** / **Add condition** on a field — expand **When**. </Step> <Step title="Pick the source field"> Select the field to test (e.g. **Plan**, **Country**). </Step> <Step title="Choose Not equals"> Select **Not equals** (or **Is not**) from the operator list. </Step> <Step title="Enter the excluded value"> Type or pick the one value that should **not** trigger this branch. </Step> <Step title="Add Then actions"> Common pairings: [Hide blocks](/features/studio/logic/actions/hide-blocks) for irrelevant sections, [Jump to page](/features/studio/logic/actions/jump-to-page) for alternate flows. </Step> <Step title="Preview on Fill"> Test with the excluded value, a different value, and a blank field. </Step> </Steps> *** ## Worked examples ### Hide enterprise-only section > **When** Plan **is not** `Enterprise` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `SSO details, Audit log` Fires for Starter and Pro — but **not** when Plan is still blank on first load. ### International shipping path > **When** Country **is not** `US` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `International shipping` Combine with **When Country is empty → Hide international shipping** if you want three distinct paths. ### “Other” follow-up cleanup > **When** Industry **is not** `Other` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `Please specify industry` Hides the free-text follow-up whenever they pick a preset industry. ### Toggle off path > **When** “Subscribe to newsletter” **is not** `Yes` → **Then** [Make optional](/features/studio/logic/actions/make-optional) `Email preferences` Yes/no fields work well with **Not equals** for the unchecked state. *** ## Test on fill <Steps> <Step title="Pick the excluded value"> Select exactly the value in your rule — **Then** should **not** run. </Step> <Step title="Pick any other valid value"> **Then** should activate. </Step> <Step title="Leave the field blank"> Confirm **Then** does **not** run — add **Is empty** if you need blank handling. </Step> <Step title="Change answers back and forth"> Visibility and requirements should update live without stale state. </Step> </Steps> *** ## Common mistakes * Expecting **Not equals X** to mean “empty or anything but X” — blank never matches; add **Is empty**. * Using **Not equals** for a list of forbidden values — use **Is none of** with multiple chips. * Hiding a follow-up with **Not equals Other** but forgetting to **Show** it when they **do** pick Other (use paired rules in **Rules** or **Branch**). * Comparing against the wrong option value (label vs stored value). *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule never fires on blank — I wanted it to"> By design. Add **When field is empty → Then …** as a sibling rule or use **Any** match mode across two clauses. </Accordion> <Accordion title="Rule fires on blank in Fill"> Unlikely with **Not equals** — check you did not mean **Is not empty** or another operator. Inspect whether a default value pre-fills the field. </Accordion> <Accordion title="Multi-select not behaving"> **Not equals** compares full sets. For “does not include option X”, use **Does not contain** on choice fields. </Accordion> <Accordion title="Two rules fight (Show vs Hide)"> Last matching rule wins. Reorder Logic Board rules or narrow **When** clauses so only one applies per answer state. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Equals](/features/studio/logic/operators/eq) · [Is none of](/features/studio/logic/operators/not_in) · [Is empty](/features/studio/logic/operators/empty) · [How logic works](/features/studio/logic/overview) </Panel> # Not equals set Source: https://flexforms.bjanczak.com/features/studio/logic/operators/neq_set When clause operator: Multi-select answer is not exactly this set. **Not equals set** checks that a multi-select answer is **not exactly** your specified set — any different combination, size, or membership counts as a match. Requires a **non-blank answer**. Blank never matches. *** ## When to choose this | Goal | Use **Not equals set** | Use something else instead | | - | - | - | | Any selection except one exact combo | ✓ | — | | Exact combo required | ✗ | **[Equals set](/features/studio/logic/operators/eq_set)** | | Missing one forbidden combo | ✗ | Often **Equals set** on forbidden + inverse **Then** | | Blank field | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Does not include option X | ✗ | **[Does not contain](/features/studio/logic/operators/not_contains)** | *** ## Exact behavior * Choice multi-select fields. * Normalizes to sorted unique string sets. * Requires non-blank actual answer. * Matches when normalized sets differ (extra option, missing option, or completely different). * Non-empty expected set required. *** ## Which field types | Family | Available | | - | - | | Choice (multi-select) | ✓ | | Text, number, date, yes/no, presence | — | *** ## Blank / unanswered answers **Never matches.** *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick multi-select field" /> <Step title="Choose Not equals set" /> <Step title="Define the excluded exact set"> Chips for the combination that should **not** trigger this branch’s “different from” logic. </Step> <Step title="Add Then actions" /> <Step title="Test exact excluded set vs others on Fill" /> </Steps> *** ## Worked examples ### Not the free-only bundle > **When** Features **not equals set** `Community support` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Paid onboarding` Selecting only Community support does not match this rule (they're exactly that set); any other answered combo matches. ### Avoid risky pair > **When** Permissions **not equals set** `Delete, Admin` → **Then** standard approval flow Exact dangerous pair excluded from match; blank still fails. ### Upsell when not bare minimum > **When** Add-ons **not equals set** `None` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Implementation offer` If “None” is a stored option representing empty bundle semantics, test carefully on Fill. ### Campaign mismatch > **When** Tags **not equals set** `Staff, Internal` → **Then** external thank-you page *** ## Test on fill <Steps> <Step title="Select exactly the excluded set"> Rule off. </Step> <Step title="Any other non-empty selection"> Rule on. </Step> <Step title="Blank"> Rule off. </Step> </Steps> *** ## Common mistakes * Expecting “not exactly ” to fire on blank — it will not. * Using when you mean “does not include A” — use **Does not contain**. * Confusing with **Is none of** — different list semantics. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule never fires"> Source may be blank or accidentally always the excluded set. </Accordion> <Accordion title="Rule always fires"> Any answered combo differs from set — may be too broad; narrow with **Equals set** on positive path instead. </Accordion> <Accordion title="Single option set"> Works as one-element exact set comparison. </Accordion> <Accordion title="Need blank path"> Add **Is empty** sibling rule with **Any** match. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Equals set](/features/studio/logic/operators/eq_set) · [Is none of](/features/studio/logic/operators/not_in) · [How logic works](/features/studio/logic/overview) </Panel> # Is not between Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_between When clause operator: The number or date falls outside an inclusive min–max range. **Is not between** matches when the answer is **outside** an inclusive range — strictly below **Min** or strictly above **Max**. Blank answers never match (fail-closed). Incomplete ranges never match. *** ## Which field types | Family | Available | | - | - | | Number | ✓ | | Date & time | ✓ | *** ## Related * Opposite: [Is between](/features/studio/logic/operators/between) [All operators](/features/studio/logic/operators/overview) · [How logic works](/features/studio/logic/overview) # Does not contain Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_contains When clause operator: The text excludes this snippet, or multi-choice does not include this option. **Does not contain** checks that the answer **does not include** your snippet or selected option — exclusion without requiring a specific alternate value. Use it to hide compliance blocks when a risky keyword is absent, or to ensure an add-on is not selected. Requires a **non-blank answer** on the source field. *** ## When to choose this | Goal | Use **Does not contain** | Use something else instead | | - | - | - | | Text lacks substring | ✓ | **Not equals** for full-string inequality | | Multi-select missing one option | ✓ | **Is none of** for block-list of several values | | Blank / skipped field | ✗ | **[Is empty](/features/studio/logic/operators/empty)** — blank never matches **Does not contain** | | Includes substring | ✗ | **[Contains](/features/studio/logic/operators/contains)** | | Exact set inequality | ✗ | **[Not equals set](/features/studio/logic/operators/neq_set)** | *** ## Exact behavior * Requires **non-blank source answer** — null, `""`, and `[]` **never match** (fail-closed). * **Text:** case-insensitive; returns true when substring is absent from a non-empty string. * **Multi-choice:** true when **no** selected option equals your value. * Comparison value must be non-empty string/chip. * Single-choice: behaves like **Not equals** for that option. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | Choice | ✓ | | Number, date, yes/no, presence | — | *** ## Blank / unanswered answers **Never matches.** Do not use **Does not contain X** to mean “empty or without X”. Add a separate **Is empty** branch. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Select text or choice field"> Notes, tags, checkbox list, etc. </Step> <Step title="Choose Does not contain"> Listed for text and choice families. </Step> <Step title="Enter excluded snippet or option"> Must be non-empty. </Step> <Step title="Add Then actions"> [Hide blocks](/features/studio/logic/actions/hide-blocks), [Make optional](/features/studio/logic/actions/make-optional). </Step> <Step title="Test answered vs blank on Fill"> Confirm blank does not trigger exclusion branch. </Step> </Steps> *** ## Worked examples ### Hide legal block without keyword > **When** Project description **does not contain** `medical` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `HIPAA addendum` Only fires once they typed something without “medical”. ### Exclude add-on path > **When** Add-ons **does not contain** `White-glove setup` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `Implementation calendar` ### Tag guard > **When** Tags **does not contain** `Beta` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `Beta feedback section` ### Notes without PII marker > **When** Internal notes **does not contain** `[CONFIDENTIAL]` → **Then** allow standard routing *** ## Test on fill <Steps> <Step title="Include the snippet/option"> Rule off. </Step> <Step title="Answer with other content (no snippet)"> Rule on. </Step> <Step title="Leave field blank"> Rule off — add **Is empty** rule if needed. </Step> <Step title="Toggle option on multi-select"> Rule should flip live. </Step> </Steps> *** ## Common mistakes * Expecting blank to match “does not contain urgent” — it will not. * Using for numeric/date comparisons — wrong operator family. * Confusing with **Is none of** — use block-list operator for multiple forbidden choices. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule never fires on empty notes"> By design. Use **Is empty** OR **Does not contain** via **Any** match if both paths matter. </Accordion> <Accordion title="Substring still seems present"> Check hidden characters, HTML from rich text, or different spelling. </Accordion> <Accordion title="Multi-select partial match"> One forbidden option among many fails **Does not contain** for that option — correct behavior. </Accordion> <Accordion title="Case sensitivity concerns"> Text match is case-insensitive — one rule covers all casings. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Contains](/features/studio/logic/operators/contains) · [Is none of](/features/studio/logic/operators/not_in) · [Is empty](/features/studio/logic/operators/empty) · [How logic works](/features/studio/logic/overview) </Panel> # Is not empty Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_empty When clause operator: The respondent provided an answer. **Is not empty** checks that a field **has an answer** — any text, selection, upload, signature, or numeric value counts as filled. Use it to reveal follow-ups once they start typing, gate routing on “attachment provided”, or require downstream logic only after a prerequisite field is completed. *** ## When to choose this | Goal | Use **Is not empty** | Use something else instead | | - | - | - | | Any answer provided | ✓ | — | | Still blank | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Specific value | ✗ | **[Equals](/features/studio/logic/operators/eq)** or comparisons | | Text contains snippet | ✗ | **[Contains](/features/studio/logic/operators/contains)** | | Yes/no checked | ✗ | **[Equals](/features/studio/logic/operators/eq)** on toggle | *** ## Exact behavior Filled means **not** any of: * `null` * `""` * `[]` Whitespace-only text (`" "`) is **not** empty — it counts as an answer. No comparison value required. For signatures, Studio may show **Is signed** — same as **Is not empty** for that block type. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | Number | ✓ | | Date & time | ✓ | | Choice | ✓ | | Presence (file, signature, …) | ✓ | | Yes / no | — | | Default fallback | ✓ | *** ## Blank / unanswered answers **Does not match** when empty — this operator is the inverse of [Is empty](/features/studio/logic/operators/empty). *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Select field"> Prerequisite question, upload, ID field, etc. </Step> <Step title="Choose Is not empty"> Signatures: **Is signed**. </Step> <Step title="Skip value entry" /> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks), [Require answer](/features/studio/logic/actions/require-answer) on dependents. </Step> <Step title="Test progressive disclosure on Fill"> Rule should fire on first keystroke/selection. </Step> </Steps> *** ## Worked examples ### Reveal details after company name > **When** Company **is not empty** → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `VAT ID, Billing address` ### Attachment triggers review page > **When** Supporting document **is not empty** → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Document review` ### Signed waiver enables submit > **When** Waiver **is signed** → **Then** allow submit (remove [Hide submit](/features/studio/logic/actions/hide-submit) paired rule) Often paired: **Is not signed → Hide submit**. ### Any date picked for scheduling > **When** Preferred date **is not empty** → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Time slot` Use **Equals** / comparisons for specific dates. *** ## Test on fill <Steps> <Step title="Start with blank field"> Rule off. </Step> <Step title="Enter any value"> Rule on immediately (live recompute). </Step> <Step title="Clear value"> Rule off. </Step> <Step title="Upload file then remove"> Presence fields follow same empty/filled rules. </Step> </Steps> *** ## Common mistakes * Using **Is not empty** when you need a specific value — add **Equals** or **Contains**. * Using on toggle — unchecked may still be a valid “No” answer; use **Equals**. * Assuming spaces are empty — `" "` is not empty. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule fires too early"> **Is not empty** triggers on any input — combine with **Contains** or length checks via calculated field if needed. </Accordion> <Accordion title="File uploaded but rule off"> Upload may still be processing — retry after upload completes on Fill. </Accordion> <Accordion title="vs Is empty pair"> Ensure **Show** and **Hide** rules do not fight — check evaluation order. </Accordion> <Accordion title="Default pre-filled value"> Field may start “not empty” — adjust defaults in block settings. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Is empty](/features/studio/logic/operators/empty) · [Show blocks](/features/studio/logic/actions/show-blocks) · [How logic works](/features/studio/logic/overview) </Panel> # Does not end with Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_ends_with When clause operator: The text does not finish with this suffix. **Does not end with** checks that text **does not finish with** your suffix — block alternate domains, extensions, or regional codes. Requires a **non-blank text answer**. *** ## When to choose this | Goal | Use **Does not end with** | Use something else instead | | - | - | - | | Text lacks suffix | ✓ | **Not equals** for whole string | | Blank field | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Has suffix | ✗ | **[Ends with](/features/studio/logic/operators/ends_with)** | | Substring absent anywhere | ✗ | **[Does not contain](/features/studio/logic/operators/not_contains)** | *** ## Exact behavior * Text only; non-blank source required. * Non-empty expected suffix required. * Case-insensitive suffix negation. * Blank source → never matches. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | All other families | — | *** ## Blank / unanswered answers **Never matches.** *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Select text field" /> <Step title="Choose Does not end with" /> <Step title="Enter excluded suffix"> e.g. `.tmp`, `@gmail.com` </Step> <Step title="Add Then actions" /> <Step title="Test on Fill"> Answered non-match vs blank vs matching suffix. </Step> </Steps> *** ## Worked examples ### Require work email (not consumer) > **When** Email **does not end with** `@gmail.com` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Company verification` Add separate validation if blank should fail — **Does not end with** ignores blank. ### Block temporary extension > **When** Filename **does not end with** `.tmp` → **Then** allow submit path ### Non-EU product codes > **When** SKU **does not end with** `-EU` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `EU compliance` ### Partner exclusion > **When** Referral code **does not end with** `-INTERNAL` → **Then** public rewards flow *** ## Test on fill <Steps> <Step title="Matching suffix"> Rule off. </Step> <Step title="Other suffix or none"> Rule on when answered. </Step> <Step title="Blank"> Rule off. </Step> </Steps> *** ## Common mistakes * Using for “not a gmail OR blank” without **Is empty** clause. * Suffix typos (`.PDF` vs `.pdf`) — case-insensitive but extension must match characters. *** ## Troubleshooting <AccordionGroup> <Accordion title="Consumer email still passes"> Subdomain emails may not end with `@gmail.com` — add **Contains** clauses or validation message. </Accordion> <Accordion title="Blank skips rule"> Add **Is empty → Hide** or **Require** as needed. </Accordion> <Accordion title="Multiple banned suffixes"> **Any** group with multiple clauses or custom validation copy on canvas. </Accordion> <Accordion title="Rich text trailing tags"> HTML may alter perceived suffix — test Fill output. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Ends with](/features/studio/logic/operators/ends_with) · [Does not contain](/features/studio/logic/operators/not_contains) · [How logic works](/features/studio/logic/overview) </Panel> # Is none of Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_in When clause operator: The answer is not any of these values. **Is none of** checks that the answer is **not equal to any** value in your block-list — exclusion routing for regions, plans, or forbidden roles. Requires a **non-blank answer** on choice fields. Blank never matches. *** ## When to choose this | Goal | Use **Is none of** | Use something else instead | | - | - | - | | Forbid several specific choices | ✓ | Multiple **Not equals** in **All** group | | Allow-list | ✗ | **[Is any of](/features/studio/logic/operators/in)** | | Blank / skipped | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Multi-select missing all listed | ✗ | Different semantics — test on Fill; often **Does not contain** per option | *** ## Exact behavior * **Choice fields only.** * Non-empty block-list required. * Requires non-blank source answer — fail-closed like [Not equals](/features/studio/logic/operators/neq). * **Single-select:** true when the selected value is not in your list. * **Multi-select:** true when **none** of the selected options appear in your list. If they pick any forbidden chip, the clause fails. *** ## Which field types | Family | Available | | - | - | | Choice | ✓ | | Text, number, date, yes/no, presence | — | *** ## Blank / unanswered answers **Never matches.** *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick choice field" /> <Step title="Choose Is none of" /> <Step title="Add forbidden option chips"> Values that should **not** trigger this branch’s inverse — i.e. rule fires when answer is outside list. </Step> <Step title="Add Then actions"> e.g. international shipping when country **is none of** `US, CA`. </Step> <Step title="Test listed vs unlisted vs blank on Fill" /> </Steps> *** ## Worked examples ### International shipping > **When** Country **is none of** `US, CA` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `International shipping` US or CA does not match; blank does not match either. ### Non-enterprise plans > **When** Plan **is none of** `Enterprise` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `SSO configuration` Requires Plan answered and not Enterprise. ### Restricted roles blocked > **When** Role **is none of** `Guest, Viewer` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Edit permissions` ### Tag exclusion > **When** Tags **is none of** `Internal, Staff` → **Then** public survey path On multi-select: fires when **none** of selected tags are Internal or Staff. *** ## Test on fill <Steps> <Step title="Pick forbidden value"> Rule off. </Step> <Step title="Pick allowed value"> Rule on. </Step> <Step title="Multi-select: one forbidden tag"> Rule off. </Step> <Step title="Blank"> Rule off. </Step> </Steps> *** ## Common mistakes * Expecting blank to route internationally — add **Is empty** rule. * Confusing with **Not equals** single value — **Is none of** is the multi-value block-list. * Empty chip list — never matches. *** ## Troubleshooting <AccordionGroup> <Accordion title="Blank should show international block"> Add parallel **Is empty → Show** or **Require Country** first. </Accordion> <Accordion title="Multi-select partial forbidden"> Selecting one forbidden option blocks match — intended block-list semantics. </Accordion> <Accordion title="Opposite of Is any of"> **Is none of** `{A,B}` is not exactly negation of **Is any of** `{A,B}` for blank — blank fails both. </Accordion> <Accordion title="Value mismatch"> Confirm chip values match option storage, not display labels only. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Is any of](/features/studio/logic/operators/in) · [Not equals](/features/studio/logic/operators/neq) · [Is empty](/features/studio/logic/operators/empty) · [How logic works](/features/studio/logic/overview) </Panel> # Does not match regex Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_matches_regex When clause operator: The text answer does not match a regular expression pattern. **Does not match regex** matches when a text answer **fails** your pattern. Blank answers never match. Invalid patterns never match (fail-closed). *** ## Related * Opposite: [Matches regex](/features/studio/logic/operators/matches_regex) [All operators](/features/studio/logic/operators/overview) · [How logic works](/features/studio/logic/overview) # Does not start with Source: https://flexforms.bjanczak.com/features/studio/logic/operators/not_starts_with When clause operator: The text does not begin with this prefix. **Does not start with** checks that text **does not begin with** your prefix — exclusion routing for codes, regions, or namespaces. Requires a **non-blank text answer**. Blank fields never match. *** ## When to choose this | Goal | Use **Does not start with** | Use something else instead | | - | - | - | | Text lacks specific prefix | ✓ | **Not equals** for full string | | Blank / skipped text | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | | Prefix present | ✗ | **[Starts with](/features/studio/logic/operators/starts_with)** | | Substring not anywhere | ✗ | **[Does not contain](/features/studio/logic/operators/not_contains)** | *** ## Exact behavior * **Text only.** * Requires non-blank source answer — null, `""` never match. * Expected prefix must be non-empty string. * Case-insensitive: true when lowercase actual does not start with lowercase expected. * If prefix is empty in rule → never matches. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | All other families | — | *** ## Blank / unanswered answers **Never matches.** Pair with **Is empty** if blank should follow the same branch. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Select text field"> Phone, reference code, email, etc. </Step> <Step title="Choose Does not start with"> Text family operator list. </Step> <Step title="Enter excluded prefix"> Non-empty, e.g. `TEST-`, `+1` </Step> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks), [Hide blocks](/features/studio/logic/actions/hide-blocks). </Step> <Step title="Verify blank vs non-matching text on Fill" /> </Steps> *** ## Worked examples ### Non-test submissions > **When** Order ID **does not start with** `TEST-` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Production SLA` Blank Order ID does not match — add **Is not empty** if production path requires an ID. ### International numbers > **When** Phone **does not start with** `+1` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `International rates` ### Exclude internal namespace > **When** Username **does not start with** `sys_` → **Then** standard onboarding ### Non-promo codes > **When** Voucher **does not start with** `PROMO` → **Then** [Hide blocks](/features/studio/logic/actions/hide-blocks) `Promo terms` *** ## Test on fill <Steps> <Step title="Text with excluded prefix"> Rule off. </Step> <Step title="Text with different prefix or no prefix"> Rule on (field answered). </Step> <Step title="Empty field"> Rule off. </Step> </Steps> *** ## Common mistakes * Expecting blank to count as “does not start with TEST-” — it does not. * Confusing with **Does not contain** — position matters at start only. * Prefix case duplication — matching is case-insensitive. *** ## Troubleshooting <AccordionGroup> <Accordion title="Blank should trigger branch"> Add **When field is empty** with **Any** match alongside this clause. </Accordion> <Accordion title="Whitespace before prefix"> Leading spaces mean string does not start with intended prefix — trim in form design or use **Contains**. </Accordion> <Accordion title="Rule fires on blank"> Unlikely — verify operator and that field is truly blank not default-filled. </Accordion> <Accordion title="Need multiple forbidden prefixes"> Use **Any** group with multiple **Does not start with** clauses or restructure with nested **Any** / **All** groups in **Rules**. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Starts with](/features/studio/logic/operators/starts_with) · [Does not contain](/features/studio/logic/operators/not_contains) · [How logic works](/features/studio/logic/overview) </Panel> # Operators (When) Source: https://flexforms.bjanczak.com/features/studio/logic/operators/overview Index of every When operator — equals, comparisons, contains, sets, empty, always — and which field types can use each one. Operators are the middle word in **When field *operator* value**. They decide whether a rule’s **Then** actions should run. Studio only shows operators that make sense for the field type you picked. If an operator is missing from the dropdown, that field family does not support it — pick a different operator or a different source field. *** ## How to pick an operator in Studio <Steps> <Step title="Open a rule editor"> Open **Logic** → **Rules**, or use **Branch** / **Add condition** on a field. Every rule has a **When** section at the top. </Step> <Step title="Pick the source field"> In the first dropdown, select the field whose answer you want to test. Only fields that exist on an earlier or the current page are reliable on first load — later-page answers stay blank until the respondent reaches them. </Step> <Step title="Choose the operator"> The middle dropdown lists only operators valid for that field’s type. Labels may change by family (e.g. **After** on dates vs **Greater than** on numbers) — the behavior matches the operator pages linked below. </Step> <Step title="Enter or pick the comparison value"> Type a literal, pick option chips, or open the same **Value** control and pick another field’s live answer. Operators like **Is empty** need no value. </Step> <Step title="Set match mode and add Then actions"> Use **All** when every clause must pass, **Any** when one is enough. Nest groups for `(A AND B) OR C`. Then add **Then** actions — [show](/features/studio/logic/actions/show-blocks), [hide](/features/studio/logic/actions/hide-blocks), [require](/features/studio/logic/actions/require-answer), [jump](/features/studio/logic/actions/jump-to-page), and more. </Step> <Step title="Preview on Fill"> Open **Fill** from Studio and walk through the form. Change answers and confirm rules fire when you expect — especially for blank fields, multi-select, and cross-page references. </Step> </Steps> <Note> Unsure which operator fits? Start with **Equals** for exact matches, **Is empty** / **Is not empty** for skipped vs answered, **Contains** for partial text or “one of these options selected”, and **Is any of** for allow-lists on choices. </Note> *** ## How match groups work (ALL vs ANY) Every **When** row or nested group has a match mode: | Mode | Meaning | Plain English | | - | - | - | | **All** (AND) | Every child clause must be true | “Country is PL **and** Age ≥ 18” | | **Any** (OR) | At least one child clause must be true | “Plan is Pro **or** Plan is Enterprise” | You can nest groups inside groups. An empty group (no clauses) never matches. <Warning> **Fail-closed by design.** If a clause is incomplete (missing field, unknown operator, or empty comparison value where one is required), that clause counts as **false** — the rule does not fire by accident. </Warning> *** ## Golden rules for blank answers | Situation | Result | | - | - | | Field not answered yet (`null`, `""`, or empty list `[]`) | Most operators **do not match** | | You want to react to “they skipped it” | Use **[Is empty](/features/studio/logic/operators/empty)** | | You want to react to “they answered something” | Use **[Is not empty](/features/studio/logic/operators/not_empty)** | | Equality (`equals`, `not equals`, set operators) | Blank **never** matches — even “not equals X” stays false until they answer | | Comparison on a later page | Stays false until the respondent reaches that page and answers | <Note> **Is empty** and **Is not empty** are the only operators meant for unanswered fields. Everything else assumes there is something to compare. </Note> *** ## Field-type → allowed operators Studio groups block types into families. The table below is the full list of operators each family supports. ### Text fields Email, phone, URL, textarea, rich text, password, and most other free-text blocks. | Operator | Supported | | - | - | | [Equals (is)](/features/studio/logic/operators/eq) | ✓ | | [Not equals (is not)](/features/studio/logic/operators/neq) | ✓ | | [Contains](/features/studio/logic/operators/contains) | ✓ | | [Does not contain](/features/studio/logic/operators/not_contains) | ✓ | | [Starts with](/features/studio/logic/operators/starts_with) | ✓ | | [Does not start with](/features/studio/logic/operators/not_starts_with) | ✓ | | [Ends with](/features/studio/logic/operators/ends_with) | ✓ | | [Does not end with](/features/studio/logic/operators/not_ends_with) | ✓ | | [Matches regex](/features/studio/logic/operators/matches_regex) | ✓ | | [Does not match regex](/features/studio/logic/operators/not_matches_regex) | ✓ | | [Is empty](/features/studio/logic/operators/empty) | ✓ | | [Is not empty](/features/studio/logic/operators/not_empty) | ✓ | ### Number fields Integer, number stepper, currency, range slider, flex slider, rating, year, duration, and calculated results stored as numbers. | Operator | Supported | | - | - | | [Equals (is)](/features/studio/logic/operators/eq) | ✓ | | [Not equals (is not)](/features/studio/logic/operators/neq) | ✓ | | [Greater than](/features/studio/logic/operators/gt) | ✓ | | [Greater than or equal](/features/studio/logic/operators/gte) | ✓ | | [Less than](/features/studio/logic/operators/lt) | ✓ | | [Less than or equal](/features/studio/logic/operators/lte) | ✓ | | [Is between](/features/studio/logic/operators/between) | ✓ | | [Is not between](/features/studio/logic/operators/not_between) | ✓ | | [Is empty](/features/studio/logic/operators/empty) | ✓ | | [Is not empty](/features/studio/logic/operators/not_empty) | ✓ | ### Date & time fields Date, time, date-time, and month pickers. | Operator | Supported | | - | - | | [Equals (is)](/features/studio/logic/operators/eq) | ✓ | | [Not equals (is not)](/features/studio/logic/operators/neq) | ✓ | | [Greater than / after](/features/studio/logic/operators/gt) | ✓ | | [Less than / before](/features/studio/logic/operators/lt) | ✓ | | [Is between](/features/studio/logic/operators/between) | ✓ | | [Is not between](/features/studio/logic/operators/not_between) | ✓ | | [Is before (relative)](/features/studio/logic/operators/date_before_relative) | ✓ | | [Is after (relative)](/features/studio/logic/operators/date_after_relative) | ✓ | | [Is empty](/features/studio/logic/operators/empty) | ✓ | | [Is not empty](/features/studio/logic/operators/not_empty) | ✓ | <Note> Date fields do **not** offer “greater than or equal” or “less than or equal” in Studio. Use **after** / **before** with the exact boundary date, or compare a number field instead. </Note> ### Choice fields Select, radio, checkbox list, tags, country, NPS, dual listbox, choice cards, and similar pick-one or pick-many blocks. | Operator | Supported | | - | - | | [Equals (is)](/features/studio/logic/operators/eq) | ✓ | | [Not equals (is not)](/features/studio/logic/operators/neq) | ✓ | | [Contains](/features/studio/logic/operators/contains) | ✓ | | [Does not contain](/features/studio/logic/operators/not_contains) | ✓ | | [Is any of](/features/studio/logic/operators/in) | ✓ | | [Is none of](/features/studio/logic/operators/not_in) | ✓ | | [Equals set](/features/studio/logic/operators/eq_set) | ✓ (multi-select) | | [Not equals set](/features/studio/logic/operators/neq_set) | ✓ (multi-select) | | [Includes every of](/features/studio/logic/operators/is_every_of) | ✓ (multi-select) | | [Is empty](/features/studio/logic/operators/empty) | ✓ | | [Is not empty](/features/studio/logic/operators/not_empty) | ✓ | ### Yes / no fields Toggle and single checkbox blocks. | Operator | Supported | | - | - | | [Equals (is)](/features/studio/logic/operators/eq) | ✓ | | [Not equals (is not)](/features/studio/logic/operators/neq) | ✓ | ### Presence fields (uploads, signatures, composites) File, image, video, signature, map picker, repeater, matrix, date range, and other blocks where “answered” means something was provided — not a simple scalar. | Operator | Supported | | - | - | | [Is empty](/features/studio/logic/operators/empty) | ✓ | | [Is not empty](/features/studio/logic/operators/not_empty) | ✓ | ### Default (fallback) Any block type not listed above gets equality and empty checks only. | Operator | Supported | | - | - | | [Equals (is)](/features/studio/logic/operators/eq) | ✓ | | [Not equals (is not)](/features/studio/logic/operators/neq) | ✓ | | [Is empty](/features/studio/logic/operators/empty) | ✓ | | [Is not empty](/features/studio/logic/operators/not_empty) | ✓ | *** ## Operator catalog ### Equality * [Equals (is)](/features/studio/logic/operators/eq) * [Not equals (is not)](/features/studio/logic/operators/neq) ### Numbers & dates * [Greater than / after](/features/studio/logic/operators/gt) * [Greater than or equal](/features/studio/logic/operators/gte) — numbers only * [Less than / before](/features/studio/logic/operators/lt) * [Less than or equal](/features/studio/logic/operators/lte) — numbers only ### Text & membership * [Contains](/features/studio/logic/operators/contains) * [Does not contain](/features/studio/logic/operators/not_contains) * [Starts with](/features/studio/logic/operators/starts_with) * [Does not start with](/features/studio/logic/operators/not_starts_with) * [Ends with](/features/studio/logic/operators/ends_with) * [Does not end with](/features/studio/logic/operators/not_ends_with) ### Choice lists * [Is any of](/features/studio/logic/operators/in) * [Is none of](/features/studio/logic/operators/not_in) * [Equals set](/features/studio/logic/operators/eq_set) * [Not equals set](/features/studio/logic/operators/neq_set) * [Includes every of](/features/studio/logic/operators/is_every_of) ### Empty / filled * [Is empty](/features/studio/logic/operators/empty) * [Is not empty](/features/studio/logic/operators/not_empty) ### Special * [Always](/features/studio/logic/operators/always) — used by Calculated fields; not in the normal When picker *** ## Compare to another answer In the **Value** control, type a fixed value or open the dropdown and pick an input field. The clause then compares the source field to **whatever the respondent typed in another field** (live, as they fill). | Detail | Behavior | | - | - | | What Studio stores | A reference to the other field’s id | | When it resolves | On every fill recalculation — uses the **current** answer of the referenced field | | If the other field is blank | The comparison value is blank → operators that need a value **fail-closed** (clause false), same as an empty typed value | | Typical uses | “Confirm email equals Email”, “End date is after Start date”, “Budget ≥ Minimum” | You still pick a normal operator (**Equals**, **Greater than**, …). Only the right-hand side is dynamic. <Warning> Referencing a field on a **later page** stays blank until the respondent reaches that page — so early-page rules that depend on later answers will not match yet. </Warning> *** ## Test on fill (quick checklist) <Steps> <Step title="Open Fill preview"> From Studio, launch **Fill** in a new tab so you see the respondent experience. </Step> <Step title="Walk the happy path"> Enter values that should make your **When** true. Confirm **Then** actions appear (fields show, require, jump, etc.). </Step> <Step title="Try blank and edge cases"> Leave fields empty, pick “wrong” options, and change answers back — rules should turn off when **When** becomes false. </Step> <Step title="Check cross-page references"> If you compared to another field or read a later page, navigate page-by-page and confirm timing matches your intent. </Step> </Steps> <AccordionGroup> <Accordion title="Operator missing from dropdown"> The field type does not support that operator. Check the family tables above or pick a different source field. </Accordion> <Accordion title="Rule never fires"> Incomplete clause (empty comparison value), blank source answer, or a later **Hide** / conflicting rule overriding your **Then**. </Accordion> <Accordion title="Rule fires too early"> Often a cross-page field reference or a multi-select interpreted with the wrong operator (e.g. **Equals** vs **Equals set**). </Accordion> <Accordion title="Not equals still false on blank"> By design — use **Is empty** for the skipped path. **Not equals** requires an actual answer. </Accordion> </AccordionGroup> <Panel> [How logic works](/features/studio/logic/overview) · [Actions (Then)](/features/studio/logic/actions/overview) · [Field conditions](/features/studio/logic/field-conditions) </Panel> # Starts with Source: https://flexforms.bjanczak.com/features/studio/logic/operators/starts_with When clause operator: The text begins with this prefix. **Starts with** checks whether text **begins with** your prefix — useful for codes, country calling prefixes, SKU families, and routing by the first characters typed. Matching is **case-insensitive**. Only **text fields** support this operator. *** ## When to choose this | Goal | Use **Starts with** | Use something else instead | | - | - | - | | Prefix at beginning of string | ✓ | **Contains** if prefix can appear anywhere | | Suffix at end | ✗ | **[Ends with](/features/studio/logic/operators/ends_with)** | | Substring anywhere | ✗ | **[Contains](/features/studio/logic/operators/contains)** | | Exact full string | ✗ | **[Equals](/features/studio/logic/operators/eq)** | | Blank text | ✗ | **[Is empty](/features/studio/logic/operators/empty)** | *** ## Exact behavior * **Text only** — both actual and expected must be non-empty strings. * Case-insensitive prefix test via `mb_strtolower`. * Null, non-string, or empty string `""` on source → **does not match**. * Empty prefix in rule → **does not match** (fail-closed). * Unlike **Equals** / **Not equals**, **Starts with** does not require a separate “answered” guard — but blank text still fails. *** ## Which field types | Family | Available | | - | - | | Text | ✓ | | Number, date, choice, yes/no, presence | — | *** ## Blank / unanswered answers **Does not match** — empty text has no prefix. Use [Is empty](/features/studio/logic/operators/empty) for skipped fields. *** ## Configure in Studio <Steps> <Step title="Open a rule"> **Logic** → **Rules**, or **Branch** / **Add condition** on a field. </Step> <Step title="Pick a text field"> Short text, email, phone, URL, textarea, etc. </Step> <Step title="Choose Starts with"> Available only in text family. </Step> <Step title="Enter non-empty prefix"> e.g. `+48`, `SKU-`, `INV-` </Step> <Step title="Add Then actions"> [Show blocks](/features/studio/logic/actions/show-blocks), [Jump to page](/features/studio/logic/actions/jump-to-page). </Step> <Step title="Test prefix at start vs middle on Fill"> Middle substring should not match. </Step> </Steps> *** ## Worked examples ### Polish phone prefix > **When** Phone **starts with** `+48` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `PESEL (optional)` `+48123456789` matches; `0048…` does not unless it literally starts with `+48`. ### Invoice routing > **When** Reference **starts with** `INV-` → **Then** [Jump to page](/features/studio/logic/actions/jump-to-page) `Billing details` ### Internal email domains > **When** Email **starts with** `contractor.` → **Then** [Require answer](/features/studio/logic/actions/require-answer) `Vendor ID` Prefix match only — `@company.com` in the middle needs **Contains** or **Ends with**. ### Promo code family > **When** Coupon **starts with** `SUMMER` → **Then** [Show blocks](/features/studio/logic/actions/show-blocks) `Seasonal terms` Case-insensitive — `summer2026` matches `SUMMER`. *** ## Test on fill <Steps> <Step title="Type text starting with prefix"> Rule on. </Step> <Step title="Put prefix in middle or end"> Rule off. </Step> <Step title="Different casing"> Still matches. </Step> <Step title="Empty field"> Rule off. </Step> </Steps> *** ## Common mistakes * Using on choice fields — use **Equals** or **Is any of**. * Expecting **Starts with +48** to match `48` without plus — prefix must match literally. * Using **Contains** when position matters — switch to **Starts with**. *** ## Troubleshooting <AccordionGroup> <Accordion title="Rule never fires"> Source not string, empty, or prefix longer than input. Confirm non-empty prefix in rule. </Accordion> <Accordion title="False positive on similar prefixes"> Narrow prefix (`SKU-EU-` vs `SKU-`) or add second clause with **All** match. </Accordion> <Accordion title="Rich text field"> HTML tags may prefix the value — test real Fill output, not just Studio label. </Accordion> <Accordion title="Need negated prefix"> Use [Does not start with](/features/studio/logic/operators/not_starts_with) — requires non-blank answer. </Accordion> </AccordionGroup> <Panel> [All operators](/features/studio/logic/operators/overview) · [Does not start with](/features/studio/logic/operators/not_starts_with) · [Ends with](/features/studio/logic/operators/ends_with) · [Contains](/features/studio/logic/operators/contains) · [How logic works](/features/studio/logic/overview) </Panel> # How logic works Source: https://flexforms.bjanczak.com/features/studio/logic/overview Studio instructions for Branch, Rules, Workflow map, Simulator, Otherwise, path validation, and cascade scrub. Every Flex Forms rule is one sentence: **When** something is true about an answer → **Then** do something. In Studio you author that sentence in two complementary surfaces — not three competing entry points. ```mermaid theme={} flowchart TB subgraph author [Authoring] B[Branch on a choice answer] R[Workflow Rules — full When Then] C[Calculated block — live formula] end subgraph tools [Studio Workflow hub] Flow[Flow map] Rules[Rules] Sim[Simulator] end B --> Store[schema.logic] R --> Store C --> Engine[Fill engine] Store --> Engine Rules --> Store Flow --> Rules Sim --> Engine ``` *** ## Decision guide — where should this live? | You want to… | Put it here | | - | - | | Per answer: show follow-ups and/or go to a page | **Branch** on that choice field (+ **Otherwise** for the default path) | | Jumps, hide Submit, complex When groups, multi-action rules | **Workflow → Rules** | | See pages, jumps, and terminal steps | **Workflow → Flow** | | Dry-run a path with mock answers | **Workflow → Simulator** | | A live total / score / glued text | [Calculated](/features/studio/calculated-fields) from the Logic catalog | <Warning> **If / Else canvas cards are removed from the catalog.**\ Existing forms still load — Studio migrates those rules into **Rules** automatically. Prefer **Branch** or **Rules** for new work. See [If / Else (deprecated)](/features/studio/logic/if-else-block). </Warning> *** ## Branch (fast path) On a **choice** question, open **Branch** from the field chrome workflow icon (not by selecting the field alone). For each option: 1. **Show follow-up** — pick field(s) to reveal (complementary hide is compiled automatically). 2. **Go to page** — jump destination. 3. **Otherwise** — default path when no option row matched (continue to next page, or jump elsewhere). On a **non-choice** field (text, number, …), use the same chrome icon (**Show if…**) to pick a source field + operator + value — Studio compiles a Show rule for that target (inverted attachment). Switch to full **When → Then** with **Edit as When → Then** when you need more than a single show condition. When a field already has advanced Rules Studio cannot represent as simple Branch rows, Branch shows a note with **Open Rules**. Details: [Field conditions / Branch](/features/studio/logic/field-conditions). *** ## Rules · Flow · Simulator Open **Workflow** from the Studio center top bar (or ⌘/Ctrl+Shift+L). Inside the hub: | Surface | Purpose | | - | - | | **Flow** | Pages as nodes; zoom/pan; solid edges = jumps; dashed = default next; soft outline = page reached only by linear Next (informational); red edge = cycle; **Terminal** badge. Use **Highlight on Flow** from Simulator to show visited pages. | | **Rules** | Full When → Then editor for form-level and field-anchored rules (optional rule titles) | | **Simulator** | Mock answers → path with jump reasons, then Field state / Branches; scenarios auto-run on load. File / signature-style fields mock as empty or filled for presence operators. | **Flow health** sits on the right of the Workflow header (conflict count + tooltip). **Critical** issues — jump cycles, incomplete jump targets, unreachable non-terminals, no reachable terminal — **block Publish**. **Warnings** (unreachable terminals that Fill cannot reach, dual-write calculate/set\_value, …) require an explicit acknowledge before Publish continues. Pages reached only by linear **Next** from a non-terminal page (typical quiz spine) are normal and do **not** warn on Publish. The Flow map may still outline pages without an inbound jump for editing clarity — that outline alone is not a publish gate. Full walkthrough: [The Logic Board](/features/studio/logic-board). *** ## Anatomy of a rule (When → Then) ### When (conditions) 1. Pick a **source field** (what the respondent answered). 2. Pick an **[operator](/features/studio/logic/operators/overview)** (equals, contains, is empty, equals set, …). 3. Pick a **value** — type a literal, use a choice chip, or pick another **input field** (live compare). 4. Combine clauses with **All** (AND) or **Any** (OR). Nest groups for `(A AND B) OR C`. Studio **only shows operators that fit the field type**. ### Then (actions) Stack one or more [actions](/features/studio/logic/actions/overview): Show / Hide, Require / Optional, Disable / Enable, Set / Clear value, [Jump to page](/features/studio/logic/actions/jump-to-page), Calculate, Hide submit. *** ## First rule in Studio (5 minutes) <Steps> <Step title="Add the fields you will branch on"> Example: a **Multiple choice** “Plan” with Free / Pro, plus a **Short text** “VAT number” that should appear only for Pro. </Step> <Step title="Open Branch on Plan"> Select **Plan** → set **Branch** for Pro: **Show follow-up** → VAT number. Optionally require VAT from **Rules** if you need mandatory follow-up. </Step> <Step title="Or build advanced When → Then"> Hover **Plan** → **Add condition**, or open **Logic** → **Rules**, and set **When** Plan **equals** `Pro` → **Then** Show + Require VAT. </Step> <Step title="Preview / Simulator"> Use **Simulator** or Preview. Choose Free → VAT stays hidden. Choose Pro → VAT appears. Change back to Free → VAT hides and its answer is cleared. </Step> </Steps> *** ## Evaluation order (who wins) On every answer change, fill recomputes on the **server** (Livewire): 1. **Rules** in evaluation order (form-level and field-anchored), top → bottom 2. **Calculated** Always → Calculate rules in canvas order 3. **Hidden fields forced not required** 4. **Hidden answers cleared** so stale data never submits If two matching rules fight over the same target, the **later** matching rule wins. Conflict chips flag Show ↔ Hide fights — treat them as release blockers. *** ## Path validation & terminal pages Multi-page forms track the **visited path**. Submit validates required fields on pages the respondent actually reached — not every page in the form. Mark **terminal** pages (submit steps) so Map / flow health know where paths should end. Critical health issues block Publish until fixed. **Warnings** (unreachable terminal pages Fill cannot reach — for example a Fail page after a terminal Pass with no jump to Fail — plus calculate / set-value dual-writes) appear in the Logic health strip. They do **not** hard-block Publish by themselves, but Studio **requires an explicit acknowledge** (confirm) before Publish continues when warnings are present. Criticals must be fixed first. Linear multi-step pages after a non-terminal page do not trigger a Publish confirm. *** ## Cascade scrub (delete safety) When you **delete a field, page, or choice option**, Studio automatically cleans logic that referenced it (When clauses, Then targets, jump page ids). You get a **success toast** with how many references were scrubbed (for example “Cleaned 3 logic reference(s) after the change.”). If nothing referenced the deleted item, Studio stays quiet — no orphan jumps left behind. *** ## Blank answers (the #1 source of “my rule never fires”) | Situation | Result | | - | - | | Field not answered yet (`null`, `""`, empty list) | Most operators **do not match** | | You need “they skipped it” | Use **[Is empty](/features/studio/logic/operators/empty)** | | You need “they answered something” | Use **[Is not empty](/features/studio/logic/operators/not_empty)** | | “Not equals Free” on a blank Plan | **Stays false** until they answer — intentional | | Value set to another field on a later page | Stays blank until that page is reached | <Note> **Is empty** and **Is not empty** are the only operators meant for unanswered fields. Everything else assumes there is something to compare. </Note> *** ## Compare to another answer In the **Value** control, type a fixed value **or** pick an **input field**. The clause compares the source field to **whatever the respondent typed in that other field** (live). If the referenced field is blank, operators that need a value **fail-closed** (clause false). *** ## Calculated vs Calculate action | Tool | What it is | | - | - | | **Calculated** block | Canvas field that never asks a question; ships with **Always → Calculate** | | **Then → Calculate** | Same formula engine, attached to any rule (conditional formulas) | Tokens use **`{blockId}`** — pick fields from **Value** / Formula inserter. Blank number tokens make the **whole numeric result empty**. Details: [Calculated fields](/features/studio/calculated-fields) · [Calculate action](/features/studio/logic/actions/calculate). *** ## Troubleshooting checklist <AccordionGroup> <Accordion title="Rule never fires"> Check: Is the source field answered? Wrong operator for blanks? Wrong page (later-page answers are empty early)? Rule disabled? Operator not allowed for that field type? </Accordion> <Accordion title="Show and Hide fight"> Open **Rules** diagnostics / conflict chips. Reorder rules or narrow When so only one path matches. Later matching rule wins. </Accordion> <Accordion title="Required field still blocks submit while hidden"> Hidden fields are forced not required. If submit still fails, another **visible** required field on the visited path is empty. </Accordion> <Accordion title="Calculate shows blank"> A token is blank or non-numeric; wrong block id; result type is text but you expected math; division by zero. </Accordion> <Accordion title="Jump does nothing"> Target page deleted (should scrub automatically); When not matching yet; another later jump overrides. With **[auto-jump](/features/settings/behavior)** on, any matching Jump advances the page as soon as answers match. </Accordion> <Accordion title="Publish blocked"> Fix **flow health** criticals on Map / Rules (cycles, incomplete jumps, no reachable terminal). </Accordion> </AccordionGroup> *** ## Deep dives | Topic | Page | | - | - | | Rules / Flow / Simulator UI | [Logic Board](/features/studio/logic-board) | | Branch + Add condition | [Field conditions](/features/studio/logic/field-conditions) | | Deprecated If / Else card | [If / Else (deprecated)](/features/studio/logic/if-else-block) | | Live formulas | [Calculated fields](/features/studio/calculated-fields) | | Every When operator | [Operators](/features/studio/logic/operators/overview) | | Every Then action | [Actions](/features/studio/logic/actions/overview) | | Recipes | [Logic & calculated guide](/guides/logic-and-calculated) · [Quiz recipe](/guides/quiz-recipe) | | Logic recipes | [PulseFit Plan](/features/studio/logic/recipes/pulsefit) · [Harbor Quiz](/features/studio/logic/recipes/harbor-quiz) · [Apex Qualifier](/features/studio/logic/recipes/apex-qualifier) | <Panel> Start building: [Branch / field conditions](/features/studio/logic/field-conditions) · [Workflow → Rules](/features/studio/logic-board) · [Calculated fields](/features/studio/calculated-fields) </Panel> # Apex Lead Qualifier recipe Source: https://flexforms.bjanczak.com/features/studio/logic/recipes/apex-qualifier Recipe: show/hide, require Other, warning messaging, and score-based lead routes. **Apex Lead Qualifier** is a logic recipe for B2B qualification: budget messaging, optional “Other” company size, a calculated lead score, and High / Nurture endings. ## What you get * **Show** a warning when budget is too low (Next/Submit stay available) * **Show** + **Require** an “Other” text field when needed * Score from budget / size / timeline → **Jump** to priority or nurture pages (both terminal) * Internal lead score stays **hidden** on public Fill (used only for routing) * Tiles stepper that only shows the visited path when branching ## How to build it 1. **Create form**, then add qualifier fields and ending pages in Studio (mark endings terminal) 2. Tune show / require and score jumps in Workflow → Rules 3. Test fill: low budget shows the warning but Next remains; high score lands on the priority page with Submit See also: [Show blocks](/features/studio/logic/actions/show-blocks) · [Require answer](/features/studio/logic/actions/require-answer) · [How logic works](/features/studio/logic/overview) # Harbor Knowledge Quiz recipe Source: https://flexforms.bjanczak.com/features/studio/logic/recipes/harbor-quiz Recipe: scored quiz with Calculate, Pass / Fail jumps, and score on thank you. **Harbor Knowledge Quiz** is a logic recipe for scored quizzes: five questions, a running score via **Calculate**, jump to Pass or Fail, then show the final score on thank you. Public Fill never shows the Calculated Score field itself. ## What you get * Multi-page Q\&A with radio choices * **Calculate** rules that add points into a `score` field * Pass / Fail **terminal** pages based on the score threshold * Thank-you copy with `{score}` merge tag (e.g. `Final score: {score}/100`) ## How to build it 1. **Create form**, then add quiz pages and a calculated **Score** field (name `score`) 2. Add **Calculate** rules for points and **Jump to page** for Pass / Fail thresholds 3. On the thank-you screen, write a message that includes `{score}` 4. Publish when ready — Insights will track starts and completions like any other form See also: [Building quizzes](/guides/quiz-recipe) · [Calculate](/features/studio/logic/actions/calculate) · [Jump to page](/features/studio/logic/actions/jump-to-page) # PulseFit Plan recipe Source: https://flexforms.bjanczak.com/features/studio/logic/recipes/pulsefit Recipe: branching quiz funnel with auto-jump — each answer opens a different next page. **PulseFit Plan** is a logic recipe for BetterMe-style funnels: gender → goal → path → contact, with **Branch** (eq per answer) and **auto-jump** so choosing an option advances the page immediately. ## What you get * Choice cards with **Branch → Go to page** on every step (including leaf focus questions) * Separate male / female goal and focus pages that merge into one contact step * Form setting **auto\_jump** enabled * Progress bar that follows the **visited path** (other branch pages stay hidden in tiles mode) ## How to build it 1. **Create form** with a blank canvas, then add choice pages in Studio 2. On each choice field, use **Branch** (or Workflow → Rules) to jump per answer — avoid *Is not empty* shortcuts if you want Branch chrome 3. Enable **auto\_jump** in form settings so answering advances without Next 4. Preview fill (or embed) — answering should advance without tapping Next See also: [Jump to page](/features/studio/logic/actions/jump-to-page) · [Wizard stepper](/get-started/progress-bar-wizard) · [How logic works](/features/studio/logic/overview) # Studio Overview Source: https://flexforms.bjanczak.com/features/studio/overview Complete map of Flex Forms Studio — left rail, canvas, field settings, logic, Design, form hubs, autosave vs Publish, and deep links. The **Studio** is the visual builder where you design forms, brand them, attach logic, publish live schemas, and manage submissions / Insights / integrations without writing React. This page is the orientation map. Use the deep links when you need the full how-to. <img alt="Flex Forms Studio — canvas, fill, submissions, Insights, and integrations" /> ## What Studio is made of ```mermaid theme={} flowchart TB Rail[Left rail] --> Forms[Forms index] Rail --> Contacts[Contacts] Rail --> Tx[Transactions] Rail --> Integ[Integrations] Rail --> GS[Global Settings] Forms --> Studio[Form Studio] Studio --> Canvas[Canvas + pages] Studio --> Inspector[Field settings] Studio --> Logic[Logic Board] Studio --> Design[Design panel] Studio --> Hub[Form hub tabs] Hub --> Sub[Submissions] Hub --> Ins[Insights] Hub --> Feed[Integrations feeds] Hub --> Share[Share / embed] Hub --> Settings[Form settings] Studio --> Publish[Preview & Publish] ``` | Surface | Job | | - | - | | **Left rail** | Jump between Forms, Contacts, Transactions, Integrations, Global Settings, and your Filament account menu | | **Canvas** | Drag blocks, order fields, multi-page flows | | **Field settings** | Per-block name, label, validation, type options (left dock) | | **Logic Board** | Show / hide / require / jump / calculate from answers | | **Design** | Branding, layout, logo, cover, custom CSS | | **Form hub** | Submissions, Insights, Integrations, and Share for the open form. Form settings open from Studio as a modal. | | **Preview & Publish** | Test the draft; push the live public schema | *** ## Left rail (installation-wide) | Item | Purpose | Docs | | - | - | - | | **Forms** | Create, open, publish/unpublish forms | This page · [Preview & Publish](/features/studio/preview-publish) | | **Contacts** | People resolved from submissions | [Contacts](/features/contacts/overview) | | **Transactions** | Stripe payment ledger | [Transactions](/features/transactions/overview) | | **Integrations** | Catalog + Connections (not Global Settings) | [Integrations overview](/integrations/overview) | | **Global Settings** | Appearance, mail logo, security, license, public URLs, Insights Redis | [Global Settings](/get-started/global-settings) | | **Account menu** | Profile / logout / host panel user-menu items | [Config → Studio account menu](/developers/config-env#studio-account-menu) | *** ## Inside a form: builder vs hub ### Builder panels <CardGroup> <Card title="Component catalog" icon="blocks" href="/features/blocks/overview"> 40+ blocks — identity, choices, media, Stripe Payment, and more. CAPTCHA is configured under Form Settings → Access, not as a canvas block. </Card> <Card title="Canvas & pages" icon="layout-template" href="/features/studio/dnd-pages"> Drag-and-drop reorder, multi-page steppers, page breaks. </Card> <Card title="Field settings" icon="sliders" href="/features/studio/field-settings"> Internal **Name** (integrations / prefills), public **Label**, validation, help text, type-specific options. </Card> <Card title="Logic Board" icon="git-branch" href="/features/studio/logic-board"> Conditions, operators, and actions — show/hide, require, jump, calculate, hide submit. See [Logic overview](/features/studio/logic/overview). </Card> <Card title="Calculated fields" icon="calculator" href="/features/studio/calculated-fields"> Spreadsheet-style formulas for scores and pricing totals. </Card> <Card title="Design" icon="palette" href="/features/studio/customize"> Colors, typography, logos, layout, cover, custom CSS on every plan. </Card> <Card title="Thank-you" icon="party-popper" href="/features/studio/thank-you"> Success screen after submit (message, redirect, extras). </Card> <Card title="Preview & Publish" icon="rocket" href="/features/studio/preview-publish"> Preview the draft; Publish pushes the live fill URL. Unpublish takes it offline. </Card> </CardGroup> ### Form hub tabs (same form, ops side) Once a form exists, the hub sits alongside the builder: | Hub tab | What you do there | | - | - | | **Submissions** | Browse answers, open a record, replay failed integration deliveries | | **Insights** | Funnels, uniques, geo, share links | | **Integrations** | Enable feeds, pick Connections, map fields | | **Share** | Public URL, embed snippets, access gates | | **Settings** | General, emails/PDF, access, notifications, and more — [Form settings](/features/settings/overview) | *** ## The build cycle <Steps> <Step title="Create or open a form"> Left rail → Forms → New, or open an existing form into Studio. </Step> <Step title="Construct"> Drag blocks from the catalog onto the canvas. Prefer specific blocks (Email, Phone, Currency) over generic text. </Step> <Step title="Configure"> Click a field → set **Name**, **Label**, validation. Integrations and query prefills use the internal Name — see [Name & label](/get-started/name-label-fields). </Step> <Step title="Organize (multi-page)"> Split long flows into pages. [Drag & Drop Pages](/features/studio/dnd-pages) · [Multi-page guide](/guides/multi-page-stepper). </Step> <Step title="Inject logic & calculations"> Logic Board for branching; calculated fields for scores. [Logic & calculations guide](/guides/logic-and-calculated). </Step> <Step title="Brand"> Design panel for identity. [Design guide](/guides/design-pro). </Step> <Step title="Wire ops"> Hub → Settings (emails, access), Integrations (feeds), Share (URL / embed). </Step> <Step title="Preview & Publish"> Preview the draft, then **Publish** so the public fill URL receives the new schema. </Step> </Steps> <Tip> **Autosave vs Publish:** Studio saves the draft continuously. Respondents only see the schema after **Publish** (top bar or Forms index **⋯**). Unpublish takes the public link offline — details in [Preview & Publish](/features/studio/preview-publish). </Tip> *** ## Logic at a glance | Topic | Link | | - | - | | Logic Board UI | [Logic Board](/features/studio/logic-board) | | Conditions model | [Logic overview](/features/studio/logic/overview) | | Field conditions | [Field conditions](/features/studio/logic/field-conditions) | | If / else block | [If-else block](/features/studio/logic/if-else-block) | | Operators | [Operators overview](/features/studio/logic/operators/overview) | | Actions | [Actions overview](/features/studio/logic/actions/overview) | *** ## Troubleshooting <AccordionGroup> <Accordion title="I see a License Error while saving"> Studio requires a valid runtime license bound to the current hostname. See [Activate License](/get-started/activate-license). </Accordion> <Accordion title="My changes aren't showing on the live form"> You edited the draft. Click **Publish** to push the live schema. </Accordion> <Accordion title="Integrations fields are empty / wrong account"> Pick the correct **Connection** on the form feed, or wait for remote catalog sync. See [Integrations overview](/integrations/overview). </Accordion> <Accordion title="CAPTCHA / Map / Stripe missing"> Enable the provider under Integrations → Catalog first (reCAPTCHA, Turnstile, Mapbox, Stripe). They are not canvas “integration feeds”. </Accordion> </AccordionGroup> <Panel> **Deep dives:** [Blocks catalog](/features/blocks/overview) · [Multi-page](/guides/multi-page-stepper) · [Logic & calculations](/guides/logic-and-calculated) · [Design](/guides/design-pro) · [Product walkthrough](/resources/product-walkthrough) </Panel> # Preview & Publish Mechanics Source: https://flexforms.bjanczak.com/features/studio/preview-publish Draft autosave vs published release. Preview the draft; Publish copies it live. Flex Forms separates **editing a draft** from **releasing a live schema**. Studio autosaves your draft continuously. **Publish** copies that draft to the published snapshot respondents see on the public Fill link. ## The Autosave Engine In the top navigation bar, a subtle indicator reads **Saving…** or **Saved**. There is no manual 'Save' button in Flex Forms. Every structural modification, settings tweak, or design update is saved to the **draft** schema. Your work is never lost — and drafts do **not** change what public respondents see until you Publish again. <Callout type="info"> **Draft vs published:** Autosave writes the draft. Public Fill and embeds read the **published** schema. When they differ, Studio shows an **Unpublished changes** chip next to Publish. </Callout> *** ## Private Previews Click the **Preview** button to launch the form in a new tab as it exists in the **draft**. <Steps> <Step title="Secure Token"> Studio opens a **temporary signed** preview URL (`preview=1` plus a signature). Only that link — or a signed-in Studio user with view access — can open unpublished drafts. A bare `?preview=1` without a valid signature does **not** unlock drafts. </Step> <Step title="Draft accuracy"> Preview always reflects the latest autosaved **draft**, including edits not yet published. </Step> <Step title="Safe Functional Testing"> Preview mode is a fully functional UI for testing multi-page flows, Logic, and payment fields. **Submissions are not saved**, and **Stripe payments are not confirmed or recorded** in preview — Publish the form to collect real responses and transactions. </Step> </Steps> *** ## Production Publishing Clicking **Publish**: 1. Saves the current draft (if needed) 2. Checks [Flow health](/features/studio/logic-board) (criticals block; warnings need acknowledge) 3. Copies the draft → **published** schema and sets the form live (`is_active`) You can publish or unpublish from: * The **Publish** button in Studio (top bar) * The **⋯** menu on the [Forms](/features/forms/overview) index (`/admin/flex-forms`) — **Publish** for drafts, **Unpublish** for live forms **Flow health:** Critical Workflow issues (jump cycles, incomplete jumps, unreachable non-terminals, no reachable terminal) **block Publish** until fixed. Warnings appear on the Workflow **Rules** surface and **require an explicit acknowledge** (confirm) before Publish continues — criticals must be clear first. ```mermaid theme={} flowchart LR Draft["Draft autosave"] -->|"Publish"| Live["Published Fill link"] Live -->|"Unpublish"| Offline["Offline 404"] Draft -.->|"Signed preview"| You["Private Preview"] ``` <Warning> Editing a live form no longer hot-deploys mid-edit. Respondents keep seeing the last **published** schema until you click **Publish** again. </Warning> *** ## Form Unpublishing Unpublishing is an instant, non-destructive kill switch. Accessible from the form’s **⋯** menu on the Forms index (or Studio publish controls), it immediately takes the Fill Link offline. Visitors see Flex Forms’ branded **404** page (HTTP 404) instead of the form. * **Data Integrity:** Unpublishing **does not** delete your draft, last published schema, logic, submissions, or historical insights. * **Resumption:** Publish again to restore the Fill link using the latest draft → published copy. <AccordionGroup> <Accordion title="If everything autosaves, what does Publish actually do?"> Autosave stores the draft. Publish copies that draft into the published snapshot and flips `is_active` so the public Fill link serves it. Until then, public traffic keeps the previous published schema (or a 404 if never published / unpublished). </Accordion> <Accordion title="Why am I getting a License Error when saving?"> The Studio's autosave engine requires a cryptographically valid license check against your current hostname. If your domain is not authorized in the [License Portal](https://license.bjanczak.com/flex-forms/panel), the save will be rejected. </Accordion> </AccordionGroup> <Panel> **Related Architecture:** [Fill Link & URL Routing](/features/forms/fill-link) · [Embed Distributions](/features/share/overview) </Panel> # The Thank-You Screen Source: https://flexforms.bjanczak.com/features/studio/thank-you Craft the final impression. Customize the confirmation message, redirect flows, and call-to-action buttons respondents see after submitting. The Thank-You Screen is the final touchpoint in the data collection journey. It is your opportunity to confirm success, set expectations, and drive respondents to the next step in your funnel. ## Designing the Screen To edit the success screen, click the **Thank you** toggle in the Studio's top navigation bar. The canvas instantly swaps from the block builder to the post-submission editor. Click on the Thank-You message to open the Inspector panel on the left. ### Text Configuration <ParamField type="string"> **Headline** Customize the primary title. Move beyond a generic "Thank you!" to something on-brand, like *"Your application is under review"* or *"You're on the exclusive list!"* </ParamField> <ParamField type="textarea"> **Sub Message** Use the sub-message area to inform respondents of exactly what happens next (e.g., *"Our enterprise sales team will contact you within 24 hours at the email provided."*). </ParamField> ### Call-To-Action (CTA) Button <ParamField type="string"> **CTA Label** The text displayed on the button (e.g., *"Download PDF"*). Leave this field completely blank to remove the button from the Thank-You screen entirely. </ParamField> <ParamField type="string"> **CTA URL** The destination URL where the respondent is directed when they click the button. Ensure you include the full protocol (e.g., `https://example.com`). </ParamField> *** ## Routing & Redirection Rules Understanding exactly what happens when the user clicks 'Submit' is critical for building enterprise flows. ```mermaid theme={} flowchart LR Fill["Respondent Fills Form"] --> Submit["Clicks Submit"] Submit --> CheckRedirect{"Redirect on Completion?"} CheckRedirect -->|Yes| HardRedirect["Instant Redirect to Custom URL"] CheckRedirect -->|No| ShowThankYou["Render Thank-You Screen"] ShowThankYou --> ClickCTA{"Clicks CTA Button?"} ClickCTA -->|Yes| GoToCTA["Navigate to CTA URL"] ``` <Warning> **The Hard Redirect Override:** If you enable **Redirect on completion** inside your [General Settings](/features/settings/general), the respondent is instantly routed to that URL upon submission. The Thank-You screen will **never** be shown. These two features are mutually exclusive. </Warning> *** ## Frequently Asked Questions <AccordionGroup> <Accordion title="Can the Thank-You screen display a respondent's calculated score?"> Not out-of-the-box via dynamic text. However, a powerful workaround is to use a Hard Redirect to pass the submission ID to your own application via query parameters, where you can fetch the data (via Webhook) and render a highly personalized results page. </Accordion> <Accordion title="Will partial or abandoned submissions trigger the Thank-You screen?"> No. The screen is strictly gated behind a successful, fully validated submission. Partial submissions are saved silently in the background (if enabled in [Behavior Settings](/features/settings/behavior)). </Accordion> <Accordion title="Does my custom branding apply to this screen?"> Absolutely. The Thank-You screen automatically inherits your exact typography, background colors, and button styling defined in the [Design panel](/features/studio/customize). </Accordion> </AccordionGroup> <Panel> **Next Steps:** [General Settings & Redirects](/features/settings/general) · [Previewing Your Flow](/features/studio/preview-publish) </Panel> # Export submissions Source: https://flexforms.bjanczak.com/features/submissions/export-csv Download submission rows as CSV or Excel (.xlsx) — filter-aware, streaming, ready for spreadsheets and CRM import. While the Inbox provides a powerful visual interface, sometimes you need to manipulate data in a dedicated spreadsheet or push it into a legacy internal system. The export engine streams a perfectly formatted payload of your submission data in seconds — as **CSV** or **Excel (.xlsx)**. ## Generating an Export Flex Forms operates on a "What You See Is What You Export" principle. The export engine respects your active filters. <Steps> <Step title="Apply the Correct Filter"> Before exporting, ensure you are on the correct tab (e.g., **Completed**). If you export while on the **All** tab, your spreadsheet will contain messy, abandoned Partial submissions. </Step> <Step title="Choose CSV or Excel"> In the Submissions toolbar, click **Download CSV** or **Download Excel**. Both respect the active filter and stream the file directly (nothing is buffered into the Studio page). </Step> <Step title="Retrieve the File"> The file downloads immediately, named with the form slug and the current filter for easy archiving. </Step> </Steps> *** ## Understanding the file structure The exported file is structured to be immediately consumable by BI tools (like Tableau) or CRMs (like Salesforce). <CardGroup> <Card title="System Metadata" icon="server"> The first few columns are system-generated. This includes the precise **Submitted At** timestamp and the entry's **Status** (Completed/Partial). </Card> <Card title="Block Data" icon="columns"> Every block on your form gets a dedicated column, organized in the exact order they appear in the Studio Canvas. </Card> </CardGroup> ### Handling Complex Data * **Multi-Select & Checkboxes:** If a respondent selects multiple options (e.g., *"Red"*, *"Blue"*), they are exported into a single cell, separated by commas: `Red, Blue`. * **File Uploads & Signatures:** Flex Forms does not embed raw binary files. Instead, it exports the absolute URL to the securely stored file. * **Encrypted answers:** When [Encrypt submission answers](/features/settings/general) is on, exports still contain **decrypted** plaintext for authorized Studio users — encryption protects the database at rest, not the download. * **Deleted Fields:** If you removed a field from the Studio Canvas, it still exports! The column header will simply be appended with `(Unpublished)` to preserve your historical data integrity. <Tip> **Encoding Issues in Excel (CSV only):** If you open a CSV in Microsoft Excel and notice garbled characters, open Excel first, go to Data → From Text/CSV, and set encoding to **UTF-8**. Prefer **Download Excel** when you want a native `.xlsx` without that dance. </Tip> <Panel> **Related Actions:** [Exporting the Contacts Directory](/features/contacts/search-export) · [Transactions export](/features/transactions/overview) </Panel> # Inbox Filters & Status Source: https://flexforms.bjanczak.com/features/submissions/inbox-filters Segment your data instantly. Differentiate between successful conversions and abandoned partial submissions. Understanding the state of your data is critical for accurate reporting. The Submissions Inbox uses a tabbed filtering system to instantly segment your entries based on their completion status. ## Completed vs. Partial Data If you have enabled [Partial Submissions](/features/settings/general) in your Form Settings, Flex Forms will silently save data as the respondent types. This means the Inbox contains two distinct types of data: <CardGroup> <Card title="Completed" icon="circle-check"> The respondent successfully reached the end of the form and clicked the final Submit button. This is a converted lead. </Card> <Card title="Partial (Abandoned)" icon="clock-rotate-left"> The respondent filled out a few fields but closed their browser before finishing. This is an abandoned lead. </Card> </CardGroup> *** ## Navigating the Filter Tabs The top of the Inbox features three quick-access tabs that control exactly what data is displayed. <Steps> <Step title="All"> Displays the raw, unfiltered firehose of data. This includes both Completed and Partial rows, giving you a complete view of all interaction. </Step> <Step title="Completed"> The most important tab. This filters out all abandoned attempts, leaving only verified, finished conversions. **You should always use this tab before exporting data to a CRM.** </Step> <Step title="Partial"> Filters down to *only* abandoned sessions. This is a goldmine for UX research—you can look at these rows to see exactly which question caused respondents to give up. </Step> </Steps> <Callout type="warning"> **Integration Safety:** Third-party integrations (like Zapier, Webhooks, or Email Notifications) **only** trigger on Completed submissions. You never have to worry about an unfinished Partial row triggering a welcome email prematurely. </Callout> *** ## Frequently Asked Questions <AccordionGroup> <Accordion title="Can a Partial submission become Completed later?"> **Yes.** If a respondent closes their laptop, but returns later (within the same browser session) and finishes the form, Flex Forms intelligently upgrades their existing Partial row to Completed, preventing duplicate entries. </Accordion> <Accordion title="Should I export Partial submissions?"> Usually, no. If you export Partial rows into your sales CRM, your sales team will waste time calling leads that have missing data. Always click the **Completed** tab before generating a CSV export for external systems. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Exporting to CSV](/features/submissions/export-csv) · [Analyzing Drop-offs in Insights](/features/insights/answers-visits-dropoffs) </Panel> # The Submissions Inbox Source: https://flexforms.bjanczak.com/features/submissions/overview The central hub for your raw form data. View every entry, filter by validation status, manage data lifecycles, and export pristine CSV files for enterprise analysis. The **Submissions Inbox** is the uncompromised source of truth for your data collection. Every time a respondent engages with your form—whether they successfully complete it or abandon it halfway—their data is instantly and securely routed here. From the Inbox, raw data automatically flows downstream into your unified Contacts Directory, the Insights Dashboard, and your third-party integrations (like Salesforce or Webhooks). ```mermaid theme={} flowchart LR Respondent["Respondent engages with form"] --> Submit{"Submission State"} Submit -->|Validation Passed| Complete["Completed Row"] Submit -->|Browser Closed| Partial["Partial Row"] Complete --> Contacts["Deduplicates in Contacts CRM"] Complete --> Insights["Aggregates in Insights"] Complete --> Feeds["Fires Integration Webhooks"] Partial --> Wait["Held in Inbox (No CRM/Feeds)"] ``` *** ## Navigating the Inbox Interface The Submissions interface is designed as a high-performance data grid, allowing you to quickly scan, filter, and act on thousands of rows without crashing your browser. <Steps> <Step title="Access the Global Inbox"> From the main Form Hub dashboard, click on **Submissions** in the side navigation. This opens the real-time data table. </Step> <Step title="Browse the Data Architecture"> * **Rows:** Each horizontal row represents a single respondent's isolated journey. * **Columns:** The columns represent the exact blocks you placed on the Canvas (in their exact order). The newest submissions always cascade to the top. </Step> <Step title="Filter by Validation Status"> Use the built-in tab filters at the top of the table to instantly pivot your view: * **All:** Displays every piece of data captured. * **Completed:** Only displays submissions that successfully passed all validation rules and hit the Thank-You screen. * **Partial (Abandoned):** Displays data captured keystroke-by-keystroke from users who closed the tab before finishing (Requires enabling *Partial Submissions* in [General Settings](/features/settings/general)). </Step> </Steps> *** ## Enterprise Data Management <ParamField type="architecture"> **Schema Resilience (Data Preservation)** One of the most powerful enterprise features of Flex Forms is absolute schema resilience. If you delete a block from the Studio Canvas (e.g., you remove a *"Company Name"* question because you no longer need it), **you do not lose historical data**. The Submissions Inbox will retain the deleted column for older entries, visually marking it as **(Unpublished)**. New submissions simply won't have that column filled, ensuring your historical data remains perfectly intact regardless of how radically your form evolves over time. </ParamField> <ParamField type="observability"> **Integration deliveries** Open a submission row to see outbound CRM / webhook attempts (succeeded, failed, skipped). Failed deliveries expose a **Replay** action so you can re-queue the job without digging through Laravel `failed_jobs`. </ParamField> <ParamField type="action"> **Export to CSV** Click the **Export** button to generate a pristine, spreadsheet-ready CSV file of your current view. *Crucial detail: The export engine respects your current filters. If you are viewing the "Partial" tab, clicking Export will strictly download the partial submissions, allowing for highly targeted data extraction.* </ParamField> <ParamField type="action"> **GDPR Manual Deletion** You have full sovereign control over your data lifecycle. To adhere to Right-to-be-Forgotten requests or to simply clean up your own testing data, you can permanently delete rows. <Warning> **Irreversible Deletion:** Selecting rows and clicking the red "Delete" button purges them from the database instantaneously and permanently. There is no trash can. If you need a backup, ensure you **Export to CSV** before executing a bulk deletion. </Warning> </ParamField> *** <CardGroup> <Card title="Exporting Data" icon="download" href="/features/submissions/export-csv"> Deep-dive into CSV encoding and Tableau readiness. </Card> <Card title="The Contacts Directory" icon="users" href="/features/contacts/overview"> See how completed submissions automatically build a deduplicated CRM. </Card> <Card title="Insights Dashboard" icon="chart-column" href="/features/insights/overview"> Visualize submission trends and conversion drop-offs. </Card> <Card title="Form Settings" icon="sliders" href="/features/settings/general"> Learn how to enable Partial Submission capturing. </Card> </CardGroup> # Transactions Source: https://flexforms.bjanczak.com/features/transactions/overview Payment ledger for Stripe (and future gateways) — filter, export CSV, and refund from the Studio rail. **Transactions** is the Studio hub for every recorded payment on your Flex Forms workspace. Open it from the left rail (under **Contacts**). It is available on **all plans** once you connect Stripe and collect at least one successful charge on a **published** form. Preview mode never writes transactions. *** ## What you see Each row is one ledger entry with: | Column | Meaning | | - | - | | **Status** | Colored chip — succeeded, refunded, partially refunded, failed, canceled, processing, … | | **Amount / currency** | Charged amount and ISO currency from the Payment block | | **Provider** | Chip (currently **Stripe**) | | **Mode** | Live / Test chip | | **Payer** | Billing email / name when Stripe collected them | | **Payment method** | Type (card, BLIK, P24, …). Cards also store brand + last 4 digits (never full PAN) | | **Form** | Which form produced the charge | | **When** | Charge / last update time | | **Actions** | **⋯** menu (same pattern as the Forms hub) | The list uses cursor pagination and respects search / form filters — same lean pattern as Contacts. *** ## Row actions (⋯) | Action | What it does | | - | - | | **View details** | Opens a right-side drawer (bottom sheet on mobile) with full payment, payer, form, and provider IDs | | **Copy transaction ID / payment ID / email** | Clipboard helpers | | **Open in Stripe** | Stripe Dashboard for the PaymentIntent (test vs live) | | **Open form in Studio / Submissions / Contacts** | Jump to related Studio hubs when links exist | | **Refund / Partial refund…** | Full remaining balance or enter a partial amount (requires `refundTransactions`) | *** ## Actions in the drawer From **View details** you can also refund, open Stripe, or jump to submissions. Status / provider / mode chips appear at the top of the drawer. Export CSV still lives in the toolbar (respects filters) and requires `exportTransactions` when Spatie permissions are enabled. The download is a direct streamed file (not loaded into the Studio page), so large ledgers stay responsive. Choose **CSV** or **Excel (.xlsx)** in the export dialog. Refunds require the `refundTransactions` ability when you use Spatie / Shield (see [Studio permissions](/developers/studio-permissions)). *** ## How a row gets created 1. Connect **Integrations → Stripe** (test or live keys). 2. Add a **Stripe Payment** block in Studio and **Publish** the form. 3. A respondent pays on fill / embed. 4. Flex Forms verifies the PaymentIntent (amount, currency, form, mode) and writes the ledger. 5. Optional Stripe webhooks keep statuses in sync (`payment_intent.*`, `charge.refunded`). Full setup: [Stripe Integration](/integrations/stripe). <Warning> **Draft / Preview** never confirms Stripe or creates Transactions — even if the thank-you screen appears. Publish first for real money and ledger rows. </Warning> *** ## Empty state If the hub is empty: * Stripe is not connected or not **Ready** * No published form has a Payment block yet * You only tested in Preview * Filters hide existing rows Connect Stripe, publish a payment form, and submit a **test-mode** payment with a [Stripe test card](https://docs.stripe.com/testing). <Panel> **Also see:** [Stripe](/integrations/stripe) · [Submissions](/features/submissions/overview) · [Preview & Publish](/features/studio/preview-publish) · [Permissions](/developers/studio-permissions) </Panel> # Activate license Source: https://flexforms.bjanczak.com/get-started/activate-license Register your domain in the License Portal and paste pk_forms_… into Global Settings → License so Studio unlocks. Activating Flex Forms is the step that turns a successful [Installation](/get-started/installation) into a working Studio. Until activation is complete, you can still open **Global Settings** and manage configuration — but saving forms, publishing, and accepting new public submissions stay locked. This guide walks through every piece of the activation story in detail: where to paste the key in Filament, what never belongs in that field, how the [License Portal](/plans/license-portal) ties Lemon Squeezy to your hostnames, the [Setup Wizard](/get-started/setup-wizard) shortcut, seat limits by [plan](/plans/overview), what breaks without a valid license, and a long troubleshooting section for the issues teams hit most often. <img alt="Flex Forms license activation — Public API key and hostname registration" /> <Banner> Do **not** paste your Lemon Squeezy license key or your Composer token (`cmp_…`) into Filament. Only the **Public API key** (`pk_forms_…`) belongs in **Global Settings → License → License public key**. </Banner> *** ## What “activated” means Flex Forms treats an install as activated when **both** of the following are true: 1. A valid **Public API key** (`pk_forms_…`) is saved in Filament under **Global Settings → License**. 2. The **exact hostname** in the browser address bar (the host staff open to use Studio) is registered on your account in the [License Portal](https://license.bjanczak.com/flex-forms/panel). Missing either piece keeps Studio locked. A correct key on the wrong host (or a correct host with the wrong credential type pasted into the field) fails the same way — so treat key paste and domain registration as one checklist, not two optional extras. You need credentials from the License Portal after purchase: | Credential | Looks like | Used for | | - | - | - | | Lemon Squeezy license key | From checkout / My Orders | Portal **registration** only (email + password + this key) — never Filament | | Composer token | `cmp_…` | **Generated by the portal** — private package downloads only | | Public API key | `pk_forms_…` | **Generated by the portal** — unlock Studio in Filament | | Registered hostnames | Exact DNS names | Seat-based allowlist checked on every license validation | <Tip> If you have not finished Composer install yet, start with [Installation](/get-started/installation), then return here. Activation assumes the package is already present in your Filament panel. </Tip> *** ## Exact UI path in Filament Paste the Public API key only in this place. The field label is **License public key**; the placeholder shows `pk_forms_…`. <Steps> <Step title="Open your Filament admin panel"> Sign in to the Filament panel where Flex Forms is registered (the same panel you configured during installation). </Step> <Step title="Open Flex Forms from the sidebar"> In the Filament left sidebar, open the **Flex Forms** navigation group (or the label your app configured — many installs keep the default **Flex Forms** group). You should see Studio destinations such as forms list / Studio entry points and the Flex Forms **left rail**. </Step> <Step title="Open Global Settings from the Flex Forms left rail"> Inside Flex Forms, use the **left rail** (not the main Filament sidebar alone). Click **Global Settings** — usually shown with a gear icon. This opens the installation-wide settings page described in [Global Settings](/get-started/global-settings). </Step> <Step title="Select the License tab"> Global Settings uses vertical tabs. Click the **License** tab. Deep links may look like `?tab=license` depending on your panel URL. </Step> <Step title="Paste into License public key"> Find the field labeled **License public key**. * Placeholder in the UI: `pk_forms_…` * Expected value: `pk_forms_` followed by **32 hexadecimal characters** (0–9, a–f) * Paste only that value — no quotes, no leading `Bearer`, no trailing spaces <Check> After paste, the field should start with `pk_forms_` and look like a single continuous token. If you see `cmp_` or a Lemon-looking key, stop and re-copy **Your Public API Key** from the portal. </Check> </Step> <Step title="Save, then reload"> Save Global Settings. Reload the page (a full browser refresh is safest). Studio unlocks when the current hostname is also registered in the portal. If a license toast still appears, jump to [Troubleshooting](#troubleshooting) — the most common cause is a hostname mismatch, not a bad paste. </Step> </Steps> <Warning> **Wrong credentials to avoid in this field** * **Lemon Squeezy license key** — used only to create / recover the License Portal account, or to **Change license key** after an upgrade. It never unlocks Studio when pasted into Filament. * **Composer token (`cmp_…`)** — used only for `composer config --auth` / CI secrets so your app can download packages from `composer.bjanczak.com`. Pasting it into **License public key** will not activate the product and can confuse future debugging. </Warning> *** ## License Portal: register, copy key, add hostnames The [License Portal](https://license.bjanczak.com/flex-forms/panel) is where purchase becomes usable credentials. Full portal workflows live on [The License Portal](/plans/license-portal); below is the activation-focused path. <Steps> <Step title="Create or sign in to the portal"> Open [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel). **Register** with all three of: 1. **Email** — preferably the same address as Lemon Squeezy checkout. 2. **Password** — for the portal account (this is not your Filament password). 3. **Lemon Squeezy license key** — from the Lemon receipt / My Orders. After registration, the portal **generates** your working credentials: * **Composer token** (`cmp_…`) — for package downloads only ([Installation](/get-started/installation)). * **Public API key** (`pk_forms_…`) — for Filament only (this guide). The Lemon key proves the purchase. It is **not** a Filament API key and **not** a Composer password. Do not paste it into **License public key**. </Step> <Step title="Copy Your Public API Key"> In the dashboard, locate **Your Public API Key** — the value the portal generated for you. It always starts with `pk_forms_`. Copy the full value. You will paste it into Filament as described above (or into the [Setup Wizard](/get-started/setup-wizard) on first launch). <Info> One Public API key covers every hostname registered on the account. You do not need a separate `pk_forms_…` per domain. </Info> </Step> <Step title="Register every hostname you use"> Add the **exact** host where the Filament panel (and public fill, if on the same app host) runs. Examples: | Environment | Example hostname | Notes | | - | - | - | | Production | `admin.example.com` or `example.com` | Prefer the host staff actually type in the browser | | Staging | `staging.example.com` | Counts as its own seat | | Local (Herd / Valet) | `my-app.test` | `*.test` hosts are normal for local work | | Preview / client | `client-preview.example.com` | Each distinct host uses one seat | <Warning> Hostnames are **exact match**. `www.example.com` and `example.com` are different seats. `admin.example.com` does not cover `example.com`. Prefer registering the host that appears in the address bar when you open Studio — redirects and CDN front doors can surprise you if you register the “pretty” marketing domain instead of the panel host. </Warning> </Step> <Step title="Confirm plan seats before adding more hosts"> Each registered hostname consumes one activation seat. See [Seat limits & moving domains](#seat-limits--moving-domains). If the portal refuses a new host, free a seat or [upgrade your plan](/plans/overview). </Step> </Steps> <Tip> Lemon may show the license as **inactive** when **zero** domains are registered. That usually means “valid purchase, unused activations,” not “payment failed.” Add at least one hostname to move out of that state. </Tip> *** ## Setup Wizard alternative (same key) On a first launch without a Public API key, Flex Forms often opens the [Setup Wizard](/get-started/setup-wizard). The wizard asks for the same credential: * Field conceptually equivalent to **License public key** * Same value: `pk_forms_…` from the portal * Same rules: never Lemon key, never `cmp_…` You can: 1. Complete the wizard when it appears, **or** 2. Skip / leave the wizard and finish later under **Global Settings → License** Both paths write the same setting. The wizard may also offer early Appearance / public URL choices; those remain editable afterward in [Global Settings](/get-started/global-settings). Activation itself is only the Public API key plus registered hostnames. <Check> If the wizard is not showing but Studio is locked, open **Global Settings → License** directly. Global Settings stays reachable even when the license is invalid, so you can always recover. </Check> *** ## Full activation checklist Use this end-to-end list when onboarding a new environment (production, staging, or a teammate’s local `*.test` host). <Steps> <Step title="Purchase (if you have not yet)"> Buy a plan from the [Flex Forms store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0). Keep the Lemon license key from the receipt. </Step> <Step title="Register in the License Portal"> Create the portal account with **email**, **password**, and the Lemon key. The portal generates `pk_forms_…` and `cmp_…` — copy both; only `pk_forms_…` goes into Filament. </Step> <Step title="Install the package"> Follow [Installation](/get-started/installation) so Flex Forms appears in Filament. </Step> <Step title="Register hostnames"> Add every panel host you will open in a browser, with exact spelling (www vs non-www, staging vs prod, local `*.test`). </Step> <Step title="Paste the Public API key in Filament"> Path: **Filament → Flex Forms left rail → Global Settings → License → License public key** (placeholder `pk_forms_…`). Save and reload. </Step> <Step title="Confirm Studio works"> Open **Forms**, create or edit a form, and try a save. If a license toast appears, compare the browser hostname to the portal list character-for-character, then reload after fixing. </Step> </Steps> ```mermaid theme={} sequenceDiagram participant You participant Lemon as Lemon_Squeezy participant Portal as License_Portal participant App as Filament_App You->>Lemon: Purchase Lemon-->>You: Lemon_license_key You->>Portal: Register_account_plus_key Portal-->>You: cmp_token_and_pk_forms You->>Portal: Add_hostname You->>App: Global_Settings_License_paste_pk_forms App->>Portal: Domain_check Portal-->>App: Allowed_plus_plan ``` *** ## Seat limits & moving domains Activation seats are per **hostname**, not per form and not per user account in Filament. | Plan | Activation seats | | - | - | | **Standard** | 2 | | **Pro** | 6 | | **Enterprise** | 100 | | **Lifetime** | 10 | Practical implications: * Production + staging typically need **two** seats (Standard is enough for that pair). * Each extra preview host, client subdomain, or local `*.test` name uses another seat. * `www` and apex are two seats if both are used for the panel. * Lifetime is **not** Enterprise seat count — Lifetime includes **10** activations with Pro-class features; see [Plans & pricing](/plans/overview) and [Compare plans](/plans/standard-pro-enterprise). ### Moving a domain You are not permanently locked to the first hostname you registered. 1. In the License Portal, **remove** the old hostname to free a seat. 2. **Add** the new hostname. 3. Keep the same `pk_forms_…` in Filament unless you rotated the Public API key. 4. If you rotated the key, paste the **new** `pk_forms_…` into **Global Settings → License** and save. <Tip> Upgrading for more seats: buy the higher plan in the [store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0), then in the portal use **Change license key** and paste the new Lemon key. Domains already on the account typically stay; seats and plan entitlements refresh on the next license check — no Filament redeploy required for the seat increase itself. </Tip> *** ## What breaks without a valid license? When the Public API key is missing/invalid, or the current hostname is not allowlisted (or entitlement has lapsed), Flex Forms intentionally locks runtime mutation paths while preserving your configuration escape hatch. | Area | Behavior without a valid license | | - | - | | Studio save / publish | **Locked** — you cannot persist form edits or publish changes | | Public fill / new submissions | **Blocked** — live forms stop accepting new responses | | Composer downloads (`cmp_…`) | **Stop** when entitlement lapses (renew / fix portal access to restore package updates) | | **Global Settings** | **Still reachable** — always available so you can paste a corrected `pk_forms_…` and recover | | Data already in your database | **Never deleted** — historical submissions and form definitions remain | <Info> This fail-safe is deliberate: a bad paste or expired subscription should never strand you without a way to open **License** and fix the key. See also the License note on [Global Settings](/get-started/global-settings). </Info> *** ## Troubleshooting Work through these in order when Studio stays locked after you believe activation is done. <AccordionGroup> <Accordion title="I pasted a key but Studio is still locked"> 1. Confirm the saved value is under **Global Settings → License → License public key** and starts with `pk_forms_`. 2. Confirm you saved the form and fully reloaded the browser tab. 3. Look at the hostname in the address bar — it must match a portal domain **exactly** (including `www` vs bare domain, and including `.test` for local). 4. Clear application caches if your environment caches config: `php artisan optimize:clear`. 5. Confirm you did **not** paste `cmp_…` or the Lemon key into the License field. 6. Open Studio again and retry save. If a toast still mentions license / domain, the portal list is still the first place to fix. </Accordion> <Accordion title="Portal / Lemon shows the license as inactive"> Add at least one domain in the License Portal. **Inactive** with a valid purchase and **zero** registered hosts usually means “valid, unused,” not a failed payment. If the purchase was cancelled, refunded, expired, or the account is restricted, activation will not succeed until billing is restored — that is different from the zero-domain inactive state. Refresh the portal after adding a host; if it still looks wrong after a paid order, contact support with your Lemon order email. </Accordion> <Accordion title="I rotated my Public API key"> Rotating **Your Public API Key** in the portal immediately invalidates the old `pk_forms_…`. 1. Copy the new key from the portal. 2. Paste it into **Global Settings → License → License public key**. 3. Save and reload every environment that still had the old value (production, staging, local). Hostnames already registered do not need to be re-added solely because of a rotation — only the key in Filament must be updated. </Accordion> <Accordion title="Wrong key format / validation error on save"> The app expects: * Prefix: `pk_forms_` * Then: **exactly 32 hexadecimal characters** (0–9 and a–f / A–F depending on copy) Common paste mistakes: * Truncated clipboard (missing the last few characters) * Leading or trailing whitespace / newline * Accidental wrap that inserts a space mid-key * Pasting `cmp_…` or the Lemon key instead Re-copy from the portal into a plain text field first if needed, then paste into **License public key**. </Accordion> <Accordion title="www vs non-www (or admin vs apex) mismatch"> Exact match means what you see after the scheme: * `https://www.example.com/admin` → register `www.example.com` * `https://example.com/admin` → register `example.com` * `https://admin.example.com` → register `admin.example.com` If marketing DNS redirects `example.com` → `www.example.com` but staff bookmark the apex panel URL, register the host that actually remains in the bar when Studio loads — or register both if both are used (two seats). </Accordion> <Accordion title="Local *.test host not unlocking"> Register the full local host (for example `wyachts-super-app.test` or `my-app.test`), not a guess like `localhost` unless that is truly what the browser shows. After adding the host in the portal, reload Filament. Local caches and long-lived config cache can still serve a previous negative check — run `php artisan optimize:clear` if you use optimized config/routes. </Accordion> <Accordion title="Staging works but production does not (or the reverse)"> Each environment needs: 1. The same (or correctly updated) `pk_forms_…` in **that** environment’s Global Settings. 2. **That** environment’s hostname registered in the portal. Staging `staging.example.com` does not unlock production `admin.example.com`. Treat them as separate seats and separate checklist rows. </Accordion> <Accordion title="Setup Wizard keeps appearing or License tab looks empty"> The wizard appears when no Public API key is stored yet. If you dismissed it without saving, open **Global Settings → License** and paste `pk_forms_…` there. If the field looks empty after you thought you saved, confirm you were on the **License** tab (not Appearance / Mail / Security / Public URLs / Insights) and that the save action completed without a validation error. </Accordion> <Accordion title="I pasted cmp_ into License public key"> Remove it. Composer tokens do not activate Studio. Paste `pk_forms_…` instead. Keep `cmp_…` only in Composer auth / CI secrets as described in [Installation](/get-started/installation). If the Composer token was exposed in a ticket or screenshot, regenerate it in the portal and update every server / CI job that still uses the old token. </Accordion> <Accordion title="Caches still report an old license state"> After changing the key or portal domains: 1. Save Global Settings again if the key changed. 2. Run `php artisan optimize:clear` (or your host’s equivalent clear for config / route / view / application cache). 3. Hard-reload the browser (or try a private window) to rule out a stale tab. Then re-open Studio and attempt a save. </Accordion> <Accordion title="Need more domains than my plan allows?"> Buy a higher plan in the [store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0), then in the portal use **Change license key** and paste the new Lemon key. Seat limits become **Standard 2 · Pro 6 · Enterprise 100 · Lifetime 10**. For needs beyond Enterprise’s 100 activations, contact support for a custom arrangement. </Accordion> <Accordion title="Subscription expired or Composer updates stopped"> Renew or restore the purchase, confirm the portal account shows an active entitlement, and keep hostnames registered. Studio edits / publish and public fill stay blocked while entitlement is invalid; existing database data is not removed. Lifetime plans keep runtime and Composer updates permanently once activated. </Accordion> </AccordionGroup> *** ## Related guides <Panel> **Next steps and references** * [Installation](/get-started/installation) — Composer token, package require, first panel wiring * [Global Settings](/get-started/global-settings) — License tab among Appearance, Mail, Security, Public URLs, Insights * [Setup Wizard](/get-started/setup-wizard) — first-run alternative for the same `pk_forms_…` * [The License Portal](/plans/license-portal) — domains, Composer token, change license key * [Plans & pricing](/plans/overview) — Standard, Pro, Enterprise, Lifetime and what each unlocks * [Compare plans](/plans/standard-pro-enterprise) — seats and feature differences in depth </Panel> # Configuration Source: https://flexforms.bjanczak.com/get-started/configuration Choose the right place for each Flex Forms setting — Studio Global Settings, config/env, or plugin methods. Flex Forms settings live in three places. Pick the one that matches **who changes it** and **how often** it changes. ```mermaid theme={} flowchart TD Q[What are you configuring?] Q -->|Non-developer admins| GS[Studio Global Settings] Q -->|Deploy-time / infra| ENV[config or .env] Q -->|Panel-specific PHP| PLG[FilamentFlexFormsPlugin] GS --> License[License key domains] GS --> Mail[Mail logo site name] GS --> InsightsUI[Insights Redis toggles] ENV --> Uploads[Disks quotas encryption] ENV --> Nav[Navigation fallbacks] PLG --> NavFluent[Navigation brand permissions] ``` ## Decision tree <Steps> <Step title="Use Global Settings when admins should change it in Studio"> Open **Global Settings** from the Flex Forms left rail (gear icon). Best for: * **License** — Public API key (`pk_forms_…`) * **Appearance** — Site name, Studio theme, admin language * **Mail** — Logo for submission alert emails * **Security** — Require encryption on all forms * **Public URLs** — Custom fill path prefix * **Insights** — Redis mode, key prefix, cache TTL Third-party API keys (Mailchimp, Mapbox, reCAPTCHA, etc.) live under **[Integrations](/integrations/overview)** in the left rail — not Global Settings. Full tab reference: [Global Settings](/get-started/global-settings). </Step> <Step title="Use config / .env for deploy-time and infrastructure"> Publish optional config or set env vars when values should **not** be edited in Studio — disks, quotas, strict permissions, Insights Redis connection, upload authorization callbacks. Every key is documented in [Config & env](/developers/config-env). ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-config ``` </Step> <Step title="Use FilamentFlexFormsPlugin for panel-specific PHP"> Register fluent options in your panel provider when each Filament panel needs different navigation, branding, or permission overrides: ```php theme={} use Bjanczak\FilamentFlexForms\FilamentFlexFormsPlugin; FilamentFlexFormsPlugin::make() ->navigationLabel('Lead forms') ->navigationGroup('Marketing') ->navigationSort(5) ->brandLogo('/images/studio-mark.svg') ->brandName('Acme Forms') ->authorizeAbilityUsing(fn ($ability, $user, $form) => /* … */ null); ``` Plugin methods win over config/env for navigation and Studio rail branding. See [Admin customization](/developers/admin-customization) and [Studio permissions](/developers/studio-permissions). </Step> </Steps> ## Quick reference | Setting | Global Settings | config / .env | Plugin | | - | - | - | - | | License public key | ✓ | — | — | | Submission encryption policy | ✓ (toggle) | ✓ (force via env) | — | | Upload disks & quotas | — | ✓ | — | | `uploads.authorize` callback | — | ✓ (PHP) | — | | Sidebar label / icon / group | — | ✓ (fallback) | ✓ (preferred) | | Studio rail logo / name | — | ✓ (fallback) | ✓ (preferred) | | Integration API keys | Integrations rail | — | — | | Per-form behavior | Form Settings | — | — | <Info> Env vars are ideal for **per-environment** differences (staging vs production disks). Global Settings are ideal for **tenant admins** who should not touch `.env`. </Info> ## Publish tags Run only what you need: | Tag | Writes | | - | - | | `filament-flex-forms-config` | `config/filament-flex-forms.php` | | `filament-flex-forms-assets` | Public JS/CSS (Studio, fill, embed) | | `filament-flex-forms-translations` | PHP lang files under `lang/vendor/…` | | `filament-flex-forms-js-locales` | Studio/fill JSON locale catalogs | | `filament-flex-forms-mail` | Blade templates for submission emails | Examples: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-config php artisan vendor:publish --tag=filament-flex-forms-mail php artisan vendor:publish --tag=filament-flex-forms-translations ``` Localization workflow: [Localization & RTL](/get-started/languages-rtl). <Warning> Publishing config is optional — every key has defaults and env overrides. Publish when you need PHP callbacks (e.g. `uploads.authorize`) or non-env overrides. </Warning> <Panel> **Next:** [Config & env](/developers/config-env) · [Global Settings](/get-started/global-settings) · [Multi-tenancy](/developers/multi-tenancy) </Panel> # Data Retention & Deletion Source: https://flexforms.bjanczak.com/get-started/delete-forms-data-retention Manage your data lifecycle securely. Learn how to delete forms and understand the retention policies for submissions and contacts. Keeping your workspace clean and compliant is essential. Flex Forms provides granular control over how and when form schemas and submission data are removed. ## Deleting a Form Schema If a form has run its course, you can permanently remove it from your Hub. <Steps> <Step title="Locate the Form"> Navigate to the Forms Hub in your Filament panel. </Step> <Step title="Execute Deletion"> Open the context menu (three dots) on the form card and click **Delete**. </Step> <Step title="Confirm Action"> Carefully confirm the deletion prompt. <Warning> **Destructive Action:** Deleting a form removes the entire Studio configuration, logic rules, and published links. This action cannot be undone. </Warning> </Step> </Steps> *** ## The Data Retention Architecture Deleting a form schema **does not** automatically purge your historical data. Flex Forms employs a decoupled architecture to protect your respondent records. <CardGroup> <Card title="Submissions Data" icon="inbox"> Raw submissions tied specifically to the deleted form will be orphaned or removed based on your specific database cascade configurations. Always export critical CSVs first. </Card> <Card title="Unified Contacts" icon="users"> People who submitted the form are stored in the global **Contacts Directory**. Deleting the form will *not* delete these global user profiles. </Card> </CardGroup> ## Compliance & Best Practices To maintain GDPR compliance and a pristine Insights dashboard, adhere to these guidelines: * **Export Before Destruction:** Always run a full CSV export from the Submissions tab before deleting a production form. * **Scrub Test Data Regularly:** Frequently delete test submissions generated during your staging phase so they do not pollute your live production Insights and conversion rates. * **Enforce Company Policy:** Manually purge the Unified Contacts directory according to your organization's legal data retention limits. <Panel> **Deep Dive:** [Managing Submissions](/features/submissions/overview) · [The Unified Contacts Directory](/features/contacts/overview) </Panel> # Embed a Form Source: https://flexforms.bjanczak.com/get-started/embed Seamlessly integrate Flex Forms into any external website, app, or CMS using our high-performance embed snippets. Embeds empower you to place the world-class Flex Forms fill experience directly onto your marketing pages, documentation sites, or bespoke applications—while keeping your data securely managed in your Filament backend. ## Choose Your Embed Mode Flex Forms offers three distinct, highly optimized embedding experiences: <CardGroup> <Card title="Standard Inline" icon="app-window"> Inject the form directly into your page layout. It intelligently flows and resizes with your surrounding content. </Card> <Card title="Modal Popup" icon="message-square"> Trigger a sleek, floating overlay from any button click. Perfect for lead magnets and contact forms. </Card> <Card title="Full Page Takeover" icon="maximize"> Command absolute focus. The form consumes the entire viewport for high-converting, distraction-free flows. </Card> </CardGroup> *** ## The Implementation Flow ```mermaid theme={} flowchart LR Share[Share Dashboard] --> Snippet[Copy HTML Snippet] Snippet --> Site[Your External Website] Site --> Fill[Embedded Fill Experience] Fill --> App[Filament Backend] ``` <Steps> <Step title="Ensure the Form is Published"> Embeds rely on the live schema. Drafts cannot be embedded. </Step> <Step title="Access the Share Dashboard"> Navigate to the **Share** tab for your form and select your desired embed mode. </Step> <Step title="Deploy the Snippet"> Copy the generated HTML snippet. Paste it into your website's codebase, CMS HTML block, or Blade view. *Note for React/Vue developers: Avoid `dangerouslySetInnerHTML` if possible; prefer injecting the snippet into a standard HTML wrapper component.* </Step> <Step title="Smoke-Test in Production"> Load your website, submit a test entry, and verify that the data appears in your Submissions Inbox and Insights dashboard. </Step> </Steps> *** ## Technical Integration The Share UI generates production-ready snippets dynamically scoped to your form. <CodeGroup> ```html Standard Inline Embed theme={} <!-- Place this where you want the form to appear --> <div data-flex-forms-embed="FORM_PUBLIC_ID"></div> <!-- Include the Flex Forms runtime once per page --> <script src="https://admin.your-app.com/vendor/flex-forms/embed.js" defer></script> ``` ```html Modal Popup Embed theme={} <!-- Attach the popup trigger to any button --> <button data-flex-forms-popup="FORM_PUBLIC_ID" class="your-custom-btn-class"> Contact Sales </button> <!-- Include the Flex Forms runtime once per page --> <script src="https://admin.your-app.com/vendor/flex-forms/embed.js" defer></script> ``` </CodeGroup> <Warning> **Always copy your snippet directly from the Share UI.** The examples above use placeholder IDs and URLs. Your actual snippet will contain cryptographically secure IDs and your specific domain routing. </Warning> *** ## Advanced: Query Parameter Prefilling Maximize conversion rates by putting query parameters on the **embed or popup** iframe URL (not the plain fill link). You can automatically pass UTM tags, known email addresses, or plan selections into the embedded form. Read the [Query Parameters Guide](/features/share/query-params) or consult the [Developer API Reference](/developers/query-params) for implementation details. <Panel> **Deep Dive:** [Compare Embed Modes](/features/share/embed-modes) · [Embed API Reference](/developers/embed-api) </Panel> # Create Your First Form Source: https://flexforms.bjanczak.com/get-started/first-form Launch your first form in minutes. Enter the Studio, add fields, and publish a live link. Once you have completed [Installation](/get-started/installation) and [Activate license](/get-started/activate-license), you can create your first form in Studio. <img alt="Flex Forms quickstart — create in Studio, publish, and share a live fill link" /> ```mermaid theme={} flowchart LR Hub[Forms Hub] --> Studio[Design in Studio] Studio --> Publish[Hit Publish] Publish --> Link[Share Live Link] Link --> Inbox[Analyze Submissions] ``` ## Step-by-Step Guide <Steps> <Step title="Open the Forms Hub"> In Filament, open **Forms** from the primary navigation. This is the list of all your Flex Forms. </Step> <Step title="Create a new form"> Click **Create Form** and enter a title (for example, `Contact Sales`). <Check> Flex Forms generates a public slug from the title. You can change it later in Share settings. </Check> </Step> <Step title="Design in the Studio"> You will land in the **Studio** drag-and-drop builder. Drag blocks from the catalog (Short Text, Email, Matrix Choice, File Uploads, and more) onto the canvas. </Step> <Step title="Configure Field Rules"> Click any field to open its settings panel. Set labels, required state, placeholders, and validation. </Step> <Step title="Preview"> Switch to **Preview Mode** to see the form as respondents will, without publishing it. </Step> <Step title="Publish"> Click **Publish**. The public fill URL becomes active. </Step> <Step title="Share and check submissions"> Open the **Share** tab to copy the fill link or an embed snippet. Submit a test response and confirm it appears in the **Submissions Inbox**. </Step> </Steps> *** ## Example Outcome After this guide you should have a published form like: | Component | Example Output | | - | - | | **Title** | Contact Sales | | **Fields** | Name, Business Email, Company Size, Message | | **Status** | Published (Live) | | **URL** | `https://your-app.com/forms/contact-sales` | <Tip> Next: [Multi-Page & Stepper Forms](/guides/multi-page-stepper) and the [Logic Board](/features/studio/logic-board). </Tip> *** ## Troubleshooting <AccordionGroup> <Accordion title="I don't see the 'Create Form' button"> Ensure that the Flex Forms plugin is registered in your Filament Panel Provider, and that your current user role has permissions to access the Forms navigation group. Also, verify that your license is active. </Accordion> <Accordion title="The Publish button is disabled or throwing errors"> An invalid or missing license blocks state mutations to protect your data. Double-check your setup by reviewing the [Activate License](/get-started/activate-license) guide. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Deep Dive into Studio](/get-started/open-studio) · [Publishing & Sharing](/get-started/publish-and-share) · [Embedding Forms](/get-started/embed) </Panel> # Global Settings Source: https://flexforms.bjanczak.com/get-started/global-settings Studio Appearance, Mail branding, Security encryption policy, license key, public URL prefix, and Insights Redis — organized into vertical tabs. **Global Settings** is the installation-wide control panel for Flex Forms. Every form inherits these defaults. Open it from the Flex Forms left rail (gear icon). Settings are split into **vertical tabs with icons** — use the tab that matches the job. Google Analytics, Mapbox, reCAPTCHA, and other third-party credentials live under **[Integrations](/integrations/overview)**, not here. ## Tabs at a glance | Tab | What you configure | | - | - | | **Appearance** | Site name (email brand), Studio primary color, light / dark / auto theme, and Studio admin language | | **Mail** | Logo for team submission alert emails (WebP, max edge from package config; Spatie Media Library when enabled) | | **Security** | Require encryption on all forms (hard policy for multi-tenant / compliance) | | **License** | Public API key (`pk_forms_…`), plus shortcuts to the license portal | | **Public URLs** | Optional custom path prefix for all public fill links | | **Insights** | Redis mode for Insights (TodayBuffer / HLL when On), HyperLogLog, today hashes, connection, key prefix, and cache TTL — plugin cache is separate unless `FLEX_FORMS_CACHE_REDIS_MODE=follow_insights` (or `on`) | Deep links keep the active tab in the URL (for example `?tab=mail`, `?tab=security`, or `?tab=insights`). *** ## How Global Settings is organized ```mermaid theme={} flowchart TD GS[Global Settings] GS --> Appearance[Appearance tab] GS --> Mail[Mail tab] GS --> Security[Security tab] GS --> License[License tab] GS --> Urls[Public URLs tab] GS --> Insights[Insights tab] Integ[Integrations rail] Appearance --> StudioChrome[Site name color theme language] Mail --> EmailBrand[Submission alert logo] Security --> EncryptPolicy[Require answer encryption] License --> Unlock[Unlocks Studio and fill] Urls --> FillURLs[Public fill paths] Insights --> Analytics[Accelerates Insights TodayBuffer HLL] Integ --> Feeds[Third-party API keys] ``` ## Setup workflow <Steps> <Step title="Open Global Settings"> In the Flex Forms left rail, click **Global Settings**. </Step> <Step title="Appearance"> Set the **Site name** used as the brand in submission notification emails (leave empty to use your app name). Set the Studio primary color and theme (auto / light / dark). Pick the Studio admin language — public fill language is still per form under Form Settings → General. See [Localization & RTL](/get-started/languages-rtl). </Step> <Step title="Mail"> Upload an **email logo** for team alerts (header and footer). If you skip this, emails show your **Site name** as text instead. Images are converted to WebP and fitted into a square box (default max edge 600px). When Spatie Media Library is enabled for Flex Forms uploads, the same Spatie path is used. </Step> <Step title="Security"> Optionally enable **Require encryption on all forms** so every form encrypts submission answers at rest. Equivalent hard policy via env: `FLEX_FORMS_FORCE_SUBMISSION_ENCRYPTION=true` (locks the toggle on). Per-form control: [General Settings → Encrypt submission answers](/features/settings/general). Multi-tenant recipe: [Multi-tenancy](/developers/multi-tenancy). </Step> <Step title="License"> Open the **License** tab. This is the permanent home for your Public API key (same value the [Setup Wizard](/get-started/setup-wizard) collects on first run). **Field:** **License public key**\ **Placeholder:** `pk_forms_…`\ **Expected format:** `pk_forms_` + exactly 32 hexadecimal characters How to fill it: 1. Sign in to the [License Portal](https://license.bjanczak.com/flex-forms/panel) (register with email + password + your **Lemon** key if you have not yet — the portal then **generates** `pk_forms_…` and `cmp_…`). 2. Copy **Your Public API Key** (`pk_forms_…`) — not **Install via Composer** (`cmp_…`) and not the Lemon key. 3. Paste into **License public key**, save Global Settings, reload the browser. 4. Confirm the hostname in the address bar is listed under your portal domains. Staging, production, and local `*.test` hosts are separate seats. Without a valid key + matching hostname, Studio save/publish stays locked, but **this Global Settings page remains reachable** so you can always recover. Full walkthrough, seat limits, and troubleshooting: [Activate license](/get-started/activate-license). Portal reference: [License Portal](/plans/license-portal). <Warning> Do **not** paste your Lemon Squeezy license key or `cmp_…` into this field. Lemon is only for portal registration; Composer uses `cmp_…`; Filament uses the portal-generated `pk_forms_…`. </Warning> </Step> <Step title="Public URLs"> Enable a custom prefix early (e.g. `forms`, `s`) if you want fill URLs under `/{prefix}/{slug}`. <Warning> Changing the prefix after forms are already shared breaks existing live links. </Warning> </Step> <Step title="Insights (production / high traffic)"> Leave Redis on **Auto** unless your host team asked for a specific profile. Turning Redis **On** accelerates Insights unique counts (TodayBuffer / HyperLogLog). It does **not** own the shared Flex Forms plugin cache by default — set `FLEX_FORMS_CACHE_REDIS_MODE=follow_insights` (or `on`) if you want Studio / integration / fill cache on that Redis connection. Details: [Redis production guide](/guides/redis-production) and [Redis scaling](/features/insights/redis-scaling). </Step> <Step title="Integrations (separate page)"> API keys for Mailchimp, Mapbox, Google Analytics, and the rest are configured under **Integrations** in the same left rail — not inside Global Settings. See the [Integrations catalog](/integrations/overview). </Step> </Steps> <Callout type="info"> **Fail-safe access:** Global Settings stays reachable even if the license is missing or invalid, so you can always paste a new public key and recover the install. </Callout> <Panel> Related: [Automated Emails & PDFs](/features/settings/emails-pdf) · [Activate License](/get-started/activate-license) </Panel> # Installation Source: https://flexforms.bjanczak.com/get-started/installation Complete Composer install for Flex Forms: Lemon purchase, License Portal, cmp_ token, private registry, require, migrate, panel plugin, queues, and what to do next. This guide installs Flex Forms into your Laravel / Filament app with Composer. Unlocking Studio is a separate step — [Activate license](/get-started/activate-license) — after you have the Public API key from the portal. <img alt="Flex Forms installation — Composer, License Portal, and panel plugin" /> <Banner> Need a license? [Buy Flex Forms](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0), then open the [License Portal](https://license.bjanczak.com/flex-forms/panel). </Banner> ## After purchase: Lemon key vs portal keys (read this first) Checkout happens on **Lemon Squeezy**. Lemon emails you a **Lemon license key** (also listed under My Orders). **That Lemon key is never pasted into Filament and never used as a Composer password.** What you do instead: 1. Open the [License Portal](https://license.bjanczak.com/flex-forms/panel). 2. **Register** with: * your **email** (same as Lemon checkout when possible), * a **password** for the portal, * your **Lemon Squeezy license key**. 3. After registration, the portal **generates** two credentials for you: * **Composer token** (`cmp_…`) — only for `composer config --auth` / CI, so you can download the package. * **Public API key** (`pk_forms_…`) — only for Filament (**Global Settings → License → License public key**), so Studio unlocks on registered domains. | Key | Source | Use in Filament? | Use for Composer? | | - | - | - | - | | Lemon Squeezy license key | Lemon receipt / My Orders | **No** | **No** | | Composer token (`cmp_…`) | Generated by the **License Portal** | **No** | **Yes** | | Public API key (`pk_forms_…`) | Generated by the **License Portal** | **Yes** (License field only) | **No** | <Warning> If you paste the Lemon Squeezy key into **License public key**, Studio will not activate. Re-copy **Your Public API Key** (`pk_forms_…`) from the portal instead. </Warning> ```mermaid theme={} flowchart LR Lemon[Lemon_Squeezy_checkout] --> LemonKey[Lemon_license_key] LemonKey --> Register[Portal_register_email_password_lemon_key] Register --> Portal[License_Portal] Portal --> Cmp[Generates_cmp_token] Portal --> Pk[Generates_pk_forms_key] Cmp --> Composer[composer_require] Pk --> Filament[Global_Settings_License] ``` Full portal reference: [The License Portal](/plans/license-portal). *** ## Step-by-step installation ### 1. Buy and register on the License Portal 1. Purchase from the [Flex Forms store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0). 2. Copy your **Lemon Squeezy license key** from the receipt email or **My Orders**. 3. Go to [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel). 4. Create an account: **email** + **password** + paste the **Lemon license key** when asked. 5. After signup, the portal shows your generated **Composer token** (`cmp_…`) and **Public API key** (`pk_forms_…`). Keep both; you will use `cmp_…` on this page and `pk_forms_…` in [Activate license](/get-started/activate-license). <Info> Lemon may show the purchase as **inactive** until you register the first domain in the portal. That means “valid purchase, zero domains activated,” not a failed payment. </Info> ### 2. Copy your Composer token 1. In the portal, open **Install via Composer**. 2. Copy the token starting with `cmp_` (and the ready-made commands if shown). 3. Store it in a password manager. You need it on every machine that runs `composer install` / `composer update` for this project (laptop, CI, Forge, etc.). ### 3. Point Composer at the private registry From your Laravel project root: ```bash theme={} composer config repositories.flex-forms composer https://composer.bjanczak.com ``` Or add this to `composer.json` under `"repositories"`: ```json theme={} "repositories": { "flex-forms": { "type": "composer", "url": "https://composer.bjanczak.com" } } ``` The key name `flex-forms` is only a local label. You can keep other Composer repositories alongside it. ### 4. Authenticate to the registry Username is always the literal word `token` (not your email): ```bash theme={} composer config --auth http-basic.composer.bjanczak.com token YOUR_COMPOSER_TOKEN ``` Replace `YOUR_COMPOSER_TOKEN` with the full `cmp_…` value from the portal. This creates or updates `auth.json`. **Add `auth.json` to `.gitignore`.** Committing it publishes your download password. A wrong token typically shows as **401 Unauthorized** when resolving `janczakb/filament-flex-forms`. ### 5. Require the package ```bash theme={} composer require janczakb/filament-flex-forms ``` Exact package name: **`janczakb/filament-flex-forms`**. You do **not** need to run `npm install` inside the package for normal use — Studio, fill, and embed assets ship prebuilt. ### 6. Publish assets and run migrations ```bash theme={} php artisan flex-forms:install ``` What this does: 1. Publishes Flex Forms assets (`filament-flex-forms-assets`) 2. Optionally publishes translations with `--translations` 3. Runs `php artisan filament:assets` 4. Asks to run `php artisan migrate` (or runs them when non-interactive / `--force`) Useful variants: ```bash theme={} php artisan flex-forms:install --force php artisan flex-forms:install --translations ``` Or migrate alone: ```bash theme={} php artisan migrate ``` Optional config publish: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-config ``` Localization: [Localization & RTL](/get-started/languages-rtl). ### 7. Register the plugin on your Filament panel Open your panel provider (often `app/Providers/Filament/AdminPanelProvider.php`): ```php theme={} use Bjanczak\FilamentFlexForms\FilamentFlexFormsPlugin; use Filament\Panel; public function panel(Panel $panel): Panel { return $panel // ... existing ->id(), ->path(), ->login(), resources, etc. ->plugin( FilamentFlexFormsPlugin::make() // Optional: // ->navigationIcon('heroicon-o-envelope') // ->navigationLabel('Forms') // ->navigationGroup('Flex Forms') // ->navigationSort(10) // ->navigation(false) ); } ``` Reload the panel and confirm a **Forms** (or your custom label) entry appears. If you use multiple Filament panels, register the plugin on each panel that should host Studio. License checks use the **hostname**, not the panel id — register every hostname in the portal. Permissions for teams / Spatie: [Studio permissions](/developers/studio-permissions). Optional fail-closed: `FLEX_FORMS_PERMISSIONS_STRICT=true`. ### 8. Activate the license (required) Composer install does **not** put `pk_forms_…` into Filament for you. 1. Register every hostname you use in the License Portal. 2. Paste the portal-generated **Public API key** (`pk_forms_…`) into **Global Settings → License → License public key**. Do **not** paste the Lemon Squeezy key into that field. Full UI path and troubleshooting: **[Activate license](/get-started/activate-license)**. First visit without a key often opens the [Setup Wizard](/get-started/setup-wizard). *** ## Prerequisites Confirm these before or while you install. | Requirement | Notes | | - | - | | **Laravel** | Versions supported by the package `composer.json` (typically Laravel 11+ / 12+). | | **Filament v5** | A working panel you can log into. | | **PHP 8.3+** | Required by the package. | | **Composer 2** | Needed for private registry auth. | | **Database** | Migrations create Flex Forms tables. | | **Queue + schedule** | Recommended in production for integrations, Insights, and mail. Local `sync` is fine for a first smoke test. | *** ## Which key goes where | Credential | Looks like | Where you get it | Where you use it | Secret? | | - | - | - | - | - | | **Lemon license key** | From Lemon receipt | Lemon email / My Orders | Portal **registration** only (email + password + this key) | Treat as secret | | **Composer token** | `cmp_…` | **Generated by the portal** after signup | `composer config --auth`, CI secrets | **Yes — never commit** | | **Public API key** | `pk_forms_` + 32 hex | **Generated by the portal** after signup | **Global Settings → License → License public key** | Only works for your whitelisted hosts | <Warning> Never put `cmp_…` or the Lemon key into Global Settings. Never commit `auth.json`. If a Composer token leaks, regenerate it in the portal — the old token is revoked immediately. </Warning> *** ## Production checklist after install <AccordionGroup> <Accordion title="Queues"> Run a queue worker in production. Integrations, some Insights work, and mail jobs expect the queue to process. Local `QUEUE_CONNECTION=sync` is acceptable for a first smoke test only. </Accordion> <Accordion title="Scheduler"> Ensure `php artisan schedule:run` is cron’d every minute (Forge / Cloud / Kubernetes CronJob). Flex Forms relies on scheduled maintenance for Insights and related tasks. </Accordion> <Accordion title="Trusted proxies"> Behind Cloudflare, AWS ALB, or nginx, configure Laravel [Trusted Proxies](https://laravel.com/docs/requests#configuring-trusted-proxies) so `Request::ip()` is the real visitor. Flex Forms uses IP for submission metadata, rate limits, and optional duplicate-by-IP. Misconfigured proxies make every visitor look like `10.x` / `127.0.0.1`. </Accordion> <Accordion title="Caches"> After changing `.env` or published config: `php artisan optimize:clear` (or your usual deploy cache rebuild). </Accordion> </AccordionGroup> *** ## CI / CD (GitHub Actions, GitLab, Forge) Never commit `auth.json`. Store `cmp_…` as a secret, for example `FLEX_FORMS_COMPOSER_TOKEN`. Example GitHub Actions fragment: ```yaml theme={} - name: Authenticate Flex Forms run: | composer config repositories.flex-forms composer https://composer.bjanczak.com composer config --auth http-basic.composer.bjanczak.com token "${{ secrets.FLEX_FORMS_COMPOSER_TOKEN }}" - name: Install Dependencies run: composer install --no-interaction --prefer-dist ``` On Laravel Forge / Envoyer-style hosts, set the same auth on the server once (or inject during deploy) so `composer install` on release succeeds. When you **regenerate** a Composer token in the portal, update every secret and every server `auth.json` in the same change window. *** ## Upgrading Already installed? When a new Flex Forms release ships, run `composer update janczakb/filament-flex-forms`, migrate, and `php artisan flex-forms:upgrade`. License keys do not need a database upgrade. Full checklist, CI notes, dry-run, and troubleshooting: **[Upgrading](/get-started/upgrading)**. *** ## Troubleshooting <AccordionGroup> <Accordion title="401 Unauthorized from composer.bjanczak.com"> The `cmp_…` token is missing, mistyped, or revoked. Re-copy the auth command from **Install via Composer**, run it again, and update CI secrets. Confirm the username is literally `token`. </Accordion> <Accordion title="Package not found / could not find a matching version"> Confirm the repository URL is `https://composer.bjanczak.com` and that `composer require janczakb/filament-flex-forms` uses that exact package name. Run `composer clear-cache` and retry. </Accordion> <Accordion title="Package installed but Studio is locked or missing"> Install succeeded; activation did not. Paste `pk_forms_…` and register the hostname — [Activate license](/get-started/activate-license). </Accordion> <Accordion title="Class FilamentFlexFormsPlugin not found"> Dump autoload (`composer dump-autoload`), confirm the require succeeded, and clear opcache if you use it in production. </Accordion> <Accordion title="Navigation item does not appear"> Confirm `->plugin(FilamentFlexFormsPlugin::make())` is on the panel you are logged into. Check you did not set `->navigation(false)`. Clear Filament / view caches. </Accordion> <Accordion title="Migration errors"> Ensure the DB user can create tables. Re-run `php artisan migrate` and read the failing migration name. Do not skip migrations permanently — Studio depends on them. </Accordion> <Accordion title="Exact package name?"> `janczakb/filament-flex-forms` </Accordion> </AccordionGroup> *** ## Related pages | Topic | Page | | - | - | | Paste `pk_forms_…` + domains | [Activate license](/get-started/activate-license) | | First-run wizard | [Setup Wizard](/get-started/setup-wizard) | | License field in Studio | [Global Settings](/get-started/global-settings) | | Portal dashboard | [License Portal](/plans/license-portal) | | Plans and seats | [Plans & pricing](/plans/overview) | | First form | [Create your first form](/get-started/first-form) | <Panel> **Next step:** [Activate license](/get-started/activate-license) — without it, Studio stays locked. </Panel> # Localization & RTL Source: https://flexforms.bjanczak.com/get-started/languages-rtl Per-form fill language, Studio language, publish and edit PHP + JS translations, add locales, and enable RTL. Flex Forms localizes **built-in UI** (buttons, errors, Studio chrome). You still write your own field labels and placeholders in the Studio. There are **two independent language surfaces**: | Surface | Where you set it | What it translates | | - | - | - | | **Fill (respondents)** | Studio → **Form settings (gear) → General → Language** | Public fill UI: Next, Submit, password gate, closed/unavailable messages, validation chrome | | **Studio (admins)** | **Global Settings → Language** (`auto` or a catalog locale) | Studio React UI + related admin PHP strings | Selecting Arabic / Hebrew (and similar) also drives **text direction** (RTL). See [General Settings](/features/settings/general). <Tip> Shipped catalogs: **English**, **Polish**, **German**, **French**, **Spanish**, **Italian**, **Dutch**, **Portuguese**, **Swedish**, **Danish**, **Norwegian**, **Finnish**, **Czech**, **Slovak**, **Ukrainian**, **Russian**, **Turkish**, **Japanese**, **Korean**, **Chinese**, **Arabic**, and **Hebrew** (PHP + Studio/Fill JS). Publish overrides to customize wording (below). </Tip> *** ## Set the form (fill) language <Steps> <Step title="Open General settings"> In Studio, open **Form settings (gear) → General**. </Step> <Step title="Choose Language"> Pick the respondent locale. Built-in fill strings switch to that catalog when it exists (otherwise English is used as fallback). </Step> <Step title="Text direction"> RTL languages set direction automatically. You can still override **Text direction** (`ltr` / `rtl`) when the control is shown. </Step> <Step title="Save"> Click **Save** in the settings bar, then publish the form if you use draft/publish. </Step> </Steps> <Warning> Field **labels**, **placeholders**, and page titles are **not** auto-translated. Enter them in the language your respondents should see (or maintain separate forms per language). </Warning> *** ## Set the Studio language In **Global Settings**, set **Language** to: * **Auto (app locale)** — follows your Laravel `app()->getLocale()` * **`en` / `pl` / …** — any locale that exists in the Studio JS catalog (package or published) Studio JS catalogs are loaded on demand — you do **not** rebuild Vite assets after editing published JSON. *** ## Publish translations into your app Publish once so you can edit strings under your app’s `lang/` tree (safe across Composer updates as long as you keep your overrides). ```bash theme={} # PHP + JS catalogs together php artisan vendor:publish --tag=filament-flex-forms-translations # Or JS catalogs only php artisan vendor:publish --tag=filament-flex-forms-js-locales # During install php artisan flex-forms:install --translations ``` Published paths: | Kind | Path in your app | | - | - | | **PHP** | `lang/vendor/filament-flex-forms/{locale}/*.php` | | **JS (Studio)** | `lang/vendor/filament-flex-forms/js/studio/{locale}.json` | | **JS (Fill)** | `lang/vendor/filament-flex-forms/js/fill/{locale}.json` | <Note> Published files **override** package defaults. Partial files are OK — missing keys fall back to the package English (then package locale) layers. See merge order below. </Note> *** ## Edit PHP translations PHP strings power Blade / Livewire fill chrome, mail copy, validation messages, and some Studio notifications. Keys use the `filament-flex-forms::` namespace, for example `filament-flex-forms::fill.submit`. Typical files after publish: ```text theme={} lang/vendor/filament-flex-forms/ en/ fill.php studio.php mail.php validation.php license.php pl/ …same set… ``` Edit the arrays in those files, then clear config/view caches if you cache aggressively: ```bash theme={} php artisan optimize:clear ``` No front-end rebuild is required for PHP strings. *** ## Edit JS translations (Studio + Fill) Studio (React) and Fill JS use flat JSON catalogs — one string per key. Example (`js/fill/en.json`): ```json theme={} { "submit": "Submit", "next": "Next →", "back": "Back" } ``` After publish, edit: * `lang/vendor/filament-flex-forms/js/studio/en.json` — admin Studio UI * `lang/vendor/filament-flex-forms/js/fill/en.json` — respondent JS strings that share the fill surface Keep **Studio** and **Fill** catalogs separate — do not copy Studio keys into Fill expecting them to apply on the public form. JS merge order (later wins): 1. Package English 2. Your published English overrides 3. Package requested locale 4. Your published requested locale overrides Optional: relocate the JS override root with `FLEX_FORMS_I18N_JS_PATH` / `filament-flex-forms.i18n.js_path` ([Config & env](/developers/config-env)). *** ## Add a new language (e.g. German) <Steps> <Step title="Publish catalogs"> Run `php artisan vendor:publish --tag=filament-flex-forms-translations`. </Step> <Step title="Copy English → new locale"> PHP: ```bash theme={} cp -R lang/vendor/filament-flex-forms/en lang/vendor/filament-flex-forms/de ``` JS: ```bash theme={} cp lang/vendor/filament-flex-forms/js/studio/en.json lang/vendor/filament-flex-forms/js/studio/de.json cp lang/vendor/filament-flex-forms/js/fill/en.json lang/vendor/filament-flex-forms/js/fill/de.json ``` </Step> <Step title="Translate the files"> Edit the `de` PHP arrays and both JSON files. Locale folder / file names use tags like `de`, `en`, `pl`, or `pt_BR`. </Step> <Step title="Select it in the product"> * Fill: Form **Settings → General → Language** (once the fill catalog exists) * Studio: **Global Settings → Language** (once the studio catalog exists) Both pickers list **every** locale file found in the package **or** your published `js/{studio|fill}/` folder — including tags that are not in the shipped list (for example `hu`, `pt_BR`). No package update is required. </Step> </Steps> <Tip> Until a locale file exists for that surface, Flex Forms falls back to **English**. Shipping only `fill/de.json` does not automatically add German to Studio. </Tip> *** ## Right-to-Left (RTL) For Arabic, Hebrew, Persian, Urdu, and similar audiences: 1. Set **Language** on the form (General). 2. Confirm **Text direction** is `rtl` (auto for those languages, or set manually). Flex Forms then flips layout direction, input alignment, and multi-page stepper / progress chrome via `dir="rtl"`. <Warning> If you use **Custom CSS**, scope RTL fixes with `[dir="rtl"]` so LTR forms are not broken. </Warning> *** ## Checklist * [ ] Fill language set per form (General) * [ ] Studio language set in Global Settings (or Auto) * [ ] Translations published if you customize strings * [ ] PHP + **both** JS surfaces updated for new locales * [ ] Field labels written in the respondent language * [ ] RTL checked on a real phone for Arabic/Hebrew forms <Panel> Related: [General Settings](/features/settings/general) · [Installation](/get-started/installation) · [Config & env](/developers/config-env) · [Customize](/features/studio/customize) </Panel> # Names vs. Labels Source: https://flexforms.bjanczak.com/get-started/name-label-fields Understand the critical difference between the visual Label shown to respondents and the system Name used for integrations and data structuring. Every field you drop into the Studio canvas possesses two fundamental identities: a **Label** and a **Name**. Understanding the distinction is vital for maintaining stable integrations and reliable data exports. ## The Dual Identity System <CardGroup> <Card title="Label (The Public Face)" icon="eye"> This is the actual question text the respondent sees on the live form. *Example: "What is your primary business email address?"* </Card> <Card title="Name (The System Core)" icon="database"> This is the internal, immutable key used in your database, CSV exports, Webhooks, and CRM integrations. *Example: `business_email`* </Card> </CardGroup> *** ## Best Practices for Architecture When you create a field, Flex Forms automatically generates a system Name based on your initial Label. However, you should strictly manage the **Name** property to prevent breaking changes downstream. <Steps> <Step title="Establish Stable Names Early"> Open the field's settings in the Studio Inspector. Set a concise, code-friendly **Name** (e.g., `company_size`, `phone_number`) before you publish or integrate the form. </Step> <Step title="Iterate on Labels Freely"> Marketing wants to change the question text? No problem. You can change the **Label** at any time. As long as the **Name** remains untouched, your Zapier flows, Webhooks, and query prefilling will continue to function perfectly. </Step> </Steps> <Callout type="info"> **Looking for the "Full Name" block?** If you are trying to capture a person's physical name, use the dedicated **Name Block** from the Component Catalog, which intelligently splits First and Last names for CRM routing. See [Block Overview](/features/blocks/overview). </Callout> <Panel> **Related Concepts:** [Field Settings Configuration](/features/studio/field-settings) · [Prefilling Fields via URL](/get-started/prefill-fields) </Panel> # The Studio Experience Source: https://flexforms.bjanczak.com/get-started/open-studio Master the visual builder. Navigate the canvas, component catalog, logic rules, and design toolkit. The **Studio** is the creative heart of Flex Forms. It is a zero-code, enterprise-grade interface where you architect data collection experiences. Open it from any form card in your Hub to start building. Studio is built for laptop and desktop screens. On phones or very narrow windows you will see a short notice recommending a larger display — the builder is not optimized for mobile editing. ## The Interface Architecture The Studio is divided into four highly optimized regions designed for maximum productivity: <CardGroup> <Card title="Component Catalog" icon="blocks"> Drag over 40+ Studio blocks including Text, Number, Choice, Date, Media, and Advanced elements (like Mapbox Pins and CAPTCHA). </Card> <Card title="Interactive Canvas" icon="layout-template"> Manage pagination and field flow. Drag seamlessly to reorder components; click to instantly focus and edit. </Card> <Card title="Inspector Panel" icon="sliders"> Fine-tune per-field microcopy, strict validation rules, dynamic options, and structural layouts. </Card> <Card title="Logic & Design Hub" icon="git-branch"> Use center tabs **Content** | **Workflow** | **Integrations** | **Share** | **Submissions**. Architect branching on **Workflow**, edit full When → Then in **Rules**, and brand from the canvas **Design** controls (logo, cover, Design panel). </Card> </CardGroup> *** ## The Builder Workflow ```mermaid theme={} flowchart TB Open[Launch Studio] --> Add[Drag Blocks] Add --> Edit[Configure Field Rules] Edit --> Pages[Organize Pagination] Pages --> Logic[Inject Logic Rules] Logic --> Design[Brand & Design] Design --> Preview[Live Preview] Preview --> Publish[Deploy to Production] ``` <Steps> <Step title="Construct the Foundation"> Drag essential fields (e.g., Email, Short Text) onto the canvas. Flex Forms automatically handles state and reactivity. </Step> <Step title="Configure Precision Rules"> Click any field to activate the Inspector Panel. Enforce strict validation (e.g., specific email domains), update help text, and manage required states. </Step> <Step title="Experience the Respondent View"> Toggle to Preview Mode. Walk through the form exactly as your users will, complete with live validation and conditional logic rendering. </Step> <Step title="Scale and Deploy"> Continue layering complexity with logic boards and multi-page routing, or hit Publish to take your creation live immediately. </Step> </Steps> <Panel> **Deep Dive into Studio:** [Drag & Drop Pages](/features/studio/dnd-pages) · [Advanced Field Settings](/features/studio/field-settings) · [The Logic Board](/features/studio/logic-board) </Panel> # Prefilling Fields via URL Source: https://flexforms.bjanczak.com/get-started/prefill-fields Automatically populate form fields using URL query parameters on embed and popup routes. Prefilling removes friction. By passing known data (like a user's name, email, or marketing UTM tags) in the URL, you increase conversion rates and ensure data accuracy. Prefill runs **only on embed and popup** fills — not on the plain public fill link. ## How Prefilling Works Flex Forms reads the URL query string when an **embed** or **popup** form loads. If a query parameter matches a field's exact **Name** property, that field is prefilled. ```text Example embed URL theme={} https://your-app.com/forms/demo/embed?email=jane@example.com&utm_source=newsletter ``` <Steps> <Step title="Identify the Field Name"> Open the Studio, select a field, and check its **Name** in the Inspector panel. *Note: Use the internal Name, not the visual Label.* </Step> <Step title="Append to an embed or popup URL"> Add `?fieldname=value` to the **embed** or **popup** URL (Share → Embed), not the standalone fill link. </Step> <Step title="Lock the Field (Optional)"> If you don't want the user to change the prefilled value (e.g., a hidden CRM ID), change the field's visibility to **Hidden** or set it to **Read-Only** in the Studio settings. </Step> </Steps> <Note> Need prefill on a shared link? Use a [Standard embed](/features/share/embed-modes) and put the query string on the embed iframe URL. The plain fill link ignores prefill params by design. </Note> *** ## Security Best Practices <Warning> **Never pass sensitive secrets (like passwords or secure tokens) in the query string.** URLs are stored in browser history and intermediate proxy logs. If you need to pass secure context, use an opaque ID and resolve it via your backend integrations. </Warning> <Panel> **Deep Dive:** Complete reference in [Query Parameters Guide](/features/share/query-params) and [Developer API](/developers/query-params). </Panel> # Wizard Stepper Source: https://flexforms.bjanczak.com/get-started/progress-bar-wizard Guide respondents through multi-page forms with tiles or a progress bar — configured once in Form Settings. Long forms can cause drop-offs if users don't know how much is left. Flex Forms shows a **wizard stepper** on multi-page forms — either numbered tiles or a continuous progress bar. ## Branching forms (path-aware progress) When your form uses **Jump to page** (or auto-jump funnels), progress follows the **visited path** — the pages the respondent actually opened — not every page in the Studio schema. * **Progress bar:** fills from the visited path (so skipped branch pages do not inflate “steps left”). * **Tiles:** pages on other branches stay **hidden** until the respondent visits them; completed path steps stay marked complete. Linear forms without jumps keep classic step-of-N indexing. ## Enabling the Stepper <Steps> <Step title="Add more than one page"> In Studio, split your form into pages. The stepper only appears when there are **two or more** pages. </Step> <Step title="Open General Settings"> Open **Studio → Form settings (gear) → General**. </Step> <Step title="Choose a style"> Set **Wizard stepper** to **Tiles**, **Progress bar only**, or **None**. Optionally set the stepper accent color to match your brand. </Step> </Steps> *** ## Best Practices for High Conversion <CardGroup> <Card title="Keep Titles Concise" icon="text-size"> Page titles render directly inside the stepper UI. Keep them short (e.g., "Personal Info" instead of "Tell us about your personal background"). </Card> <Card title="Front-Load Complexity" icon="weight-hanging"> Place harder, required questions early in the flow. This ensures the progress bar feels honest and momentum carries the user to the end. </Card> </CardGroup> <Panel> **Deep Dive:** Combine this with [Multi-Page Routing](/guides/multi-page-stepper) to build complex, branching application flows. </Panel> # Publish & Share Source: https://flexforms.bjanczak.com/get-started/publish-and-share Take your draft live, generate a secure fill link, and customize social media previews to start collecting responses. Publishing is the bridge between your Studio draft and the real world. Once published, your form is ready to be shared with your audience. <Steps> <Step title="Publish from the Studio or Forms list"> Click **Publish** in the Studio top bar, or open the **⋯** menu on the Forms index and choose **Publish**. The public fill URL becomes available immediately. </Step> <Step title="Navigate to the Share Hub"> Return to the Form Hub and open the **Share** tab for your newly published form. </Step> <Step title="Distribute the Fill Link"> Copy the direct **Fill Link**. You can send this via email campaigns, SMS, or link to it from buttons across your website. </Step> <Step title="Optimize for Social Media"> First impressions matter. Customize the **Social Preview (Open Graph)** settings. Set a compelling title, description, and preview image so your form looks incredibly professional when shared on LinkedIn, X, or Slack. </Step> <Step title="Embed on Your Site (Optional)"> If you prefer to keep users on your own domain, seamlessly embed the form. See the [Embed Guide](/get-started/embed) for details. </Step> </Steps> *** ## The Publishing Architecture ```mermaid theme={} flowchart LR Draft[Studio Draft] -->|Action: Publish| Live[Live Form Schema] Live --> Link[Direct Fill Link] Live --> Embed[Embed Snippet] Link --> People[Target Audience] Embed --> People ``` <Tip> **Need to pause submissions?** You can unpublish a form at any time to instantly take it offline without deleting your historical data or configuration. </Tip> *** ## Troubleshooting <AccordionGroup> <Accordion title="My link returns a 404 Error"> Ensure the form is actively published in the Studio. Unpublished and unknown slugs show Flex Forms’ branded 404 page (not your host app’s default error page). Also verify your `URL Prefix` in Global Settings hasn't changed. Read more about the [Fill Link Architecture](/features/forms/fill-link). </Accordion> <Accordion title="I published changes, but the old form is still showing"> Perform a hard refresh in your browser. If you use a front-end CDN (like Cloudflare or Fastly), purge the cache for that specific form URL. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Explore Share & Embed](/features/share/overview) · [Discover Embed Modes](/features/share/embed-modes) </Panel> # Setup Wizard Source: https://flexforms.bjanczak.com/get-started/setup-wizard First-run wizard that asks for your Public API key (pk_forms_…) when Flex Forms is not activated yet — same data as Global Settings → License. The **Setup Wizard** is Flex Forms’ short onboarding screen for a brand-new (or not-yet-activated) install. It exists so you do not have to hunt for the License tab on day one: paste your Public API key, optionally set a couple of brand defaults, save, and land in the Forms Hub. It is **not** a second license system. Whatever you enter here is the **same** Public API key stored under **Global Settings → License**. Completing the wizard once is enough; you can always change the key later from Global Settings. <Info> The wizard only appears when Flex Forms does **not** already have a Public API key saved in your app. After a valid `pk_forms_…` key is stored, you will not see the wizard again on normal visits — use [Global Settings](/get-started/global-settings) if you need to update the key or brand defaults. </Info> *** ## When the wizard appears Flex Forms checks whether a **Public API key** is already saved for this installation. | Situation | What you see | | - | - | | Package installed, plugin registered, **no** Public API key saved yet | Setup Wizard (or a clear prompt that opens it) on first visit to the Flex Forms area | | Public API key already saved (from a previous wizard run or Global Settings) | Forms Hub / Studio as usual — wizard skipped | | Key saved but **wrong type**, truncated, or hostname not registered | Wizard may be gone, but Studio stays locked — fix via **Global Settings → License** and the [License Portal](https://license.bjanczak.com/flex-forms/panel) | Typical moments you meet the wizard: 1. Right after [Installation](/get-started/installation), the first time you open Flex Forms in Filament. 2. On a fresh database / new environment where Global Settings never received a `pk_forms_…` key. 3. After someone cleared license settings (rare) so the saved Public API key is empty again. You do **not** need the wizard if you prefer to go straight to **Global Settings → License** and paste the key there. Both paths write the same field. ```mermaid theme={} flowchart TD Start[Open Flex Forms in Filament] --> Need{Public_API_key_saved?} Need -->|No| Wizard[Setup Wizard] Wizard --> Paste[Paste pk_forms_ key] Paste --> Optional[Optional URL prefix and color] Optional --> Save[Save] Save --> Forms[Forms Hub] Need -->|Yes| Forms Forms --> Locked{Hostname registered and key valid?} Locked -->|Yes| Studio[Studio unlocked] Locked -->|No| Fix[Global Settings License plus portal domains] ``` *** ## What you need before you start Complete these before relying on the wizard (or you will save a key and still see a locked Studio): 1. **Package installed** — Composer require, migrate, panel plugin — see [Installation](/get-started/installation). 2. **License Portal account** — register with **email**, **password**, and your **Lemon Squeezy license key**. The portal then **generates** `cmp_…` and `pk_forms_…` — see [The License Portal](/plans/license-portal). 3. **Hostname registered** — the exact host in your browser address bar is on your portal domain list — see [Activate license](/get-started/activate-license). 4. **Public API key copied** — the portal-generated value starting with `pk_forms_…` (not the Lemon key). <Warning> Paste **Public API key** (`pk_forms_…`) only. Never paste the Composer token (`cmp_…`) and never paste the Lemon Squeezy license key into the wizard or into Global Settings. The Lemon key is only for portal registration; Composer auth uses `cmp_…`. </Warning> *** ## Exact fields in the wizard ### Public API key (required) | | | | - | - | | **Field label** | **Public API key** | | **Accepted value** | Starts with `pk_forms_` followed by **32 hexadecimal characters** | | **Where to copy from** | [License Portal](https://license.bjanczak.com/flex-forms/panel) → **Your Public API Key** | | **Same as** | **Global Settings → License → License public key** | This is the only credential the wizard needs to activate Flex Forms inside Filament. One Public API key covers **all** domains on your portal account — you do not get a different `pk_forms_…` per hostname. ### Optional brand defaults These are shortcuts so new installs look intentional on day one. You can skip them and set everything later in Global Settings. | Wizard option | What it does | Where to edit later | | - | - | - | | **Public URL prefix** | Optional path segment for public fill links (for example `forms` → `/{prefix}/{slug}`) | **Global Settings → Public URLs** | | **Studio color** (primary color) | Default accent color for the Studio chrome | **Global Settings → Appearance** | <Info> Changing the **public URL prefix** after forms are already shared can break live links. Prefer setting the prefix early, or leave it empty until you know the path you want. Details: [Global Settings](/get-started/global-settings). </Info> *** ## Step-by-step <Steps> <Step title="Install the package first"> Finish [Installation](/get-started/installation) so the Flex Forms plugin is registered on your Filament panel and migrations have run. The wizard cannot activate a package that is not installed. </Step> <Step title="Prepare the License Portal"> Sign in at [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel). Copy **Your Public API Key** (`pk_forms_…`). Add the exact hostname staff will open (production, staging, or local `.test`). Portal walkthrough: [The License Portal](/plans/license-portal). Domain rules: [Activate license](/get-started/activate-license). </Step> <Step title="Open the wizard"> Open the Flex Forms area in Filament. If no Public API key is saved yet, the Setup Wizard appears (or a prompt leads you into it). If you somehow land in Forms without the wizard and Studio is still locked, open **Global Settings → License** instead — that is the same Public API key field. </Step> <Step title="Paste Public API key"> In the field labeled **Public API key**, paste the full `pk_forms_…` value from the portal. Do not trim characters. Do not add spaces. Confirm the prefix is `pk_forms_`, not `cmp_`. </Step> <Step title="Optionally set brand defaults"> Set a **public URL prefix** and/or **Studio color** if you already know your branding. Skip if you are unsure — you can configure **Appearance** and **Public URLs** anytime under [Global Settings](/get-started/global-settings). </Step> <Step title="Save and continue"> Save. You should land in the **Forms Hub**. Next: [Create your first form](/get-started/first-form). If Studio or publish still looks locked after save, the key may be wrong **or** the browser hostname is not on the portal list — see Troubleshooting below and [Activate license](/get-started/activate-license). </Step> </Steps> *** ## Relationship to Global Settings → License Think of the Setup Wizard as a **first-run shortcut** to one tab of Global Settings. | Concern | Setup Wizard | Global Settings | | - | - | - | | Public API key | Field **Public API key** | Tab **License** → **License public key** | | URL prefix | Optional on wizard | Tab **Public URLs** | | Studio color | Optional on wizard | Tab **Appearance** | | Available when license is invalid / missing | Yes (so you can activate) | **Yes** — Global Settings stays reachable so you can always fix the key | | Shown after key is already saved | No (skipped) | Always available from the Flex Forms left rail | Updating the key in **Global Settings → License** overwrites what the wizard saved. There is no separate “wizard-only” key. <Panel> Deep dive on every Global Settings tab: [Global Settings](/get-started/global-settings). Full activation checklist (portal domains + Filament key): [Activate license](/get-started/activate-license). </Panel> *** ## Domain registration still required Saving `pk_forms_…` in the wizard (or in Global Settings) only stores the key **in your application**. The License Portal must still list the **exact hostname** where Filament is open. If the key is correct but the host is missing or mistyped, license checks fail and Studio / publish stay locked. Examples of exact hosts (each is its own seat): * Production: `admin.example.com` or `example.com` * Staging: `staging.example.com` * Local: `my-app.test` <Warning> `www.example.com` and `example.com` are different seats. Prefer the hostname staff actually type into the browser. Register it in the portal **before** or immediately after you paste the Public API key. </Warning> *** ## Troubleshooting <AccordionGroup> <Accordion title="I pasted a key but the wizard / Studio still rejects it"> Confirm you used a **Public API key** (`pk_forms_…`), not: * Composer token (`cmp_…`) from **Install via Composer** * Lemon Squeezy license key from your receipt / My Orders Re-copy from the portal’s **Your Public API Key** section. The expected shape is `pk_forms_` + 32 hex characters. Avoid trailing spaces or a truncated clipboard paste. </Accordion> <Accordion title="Key saves, but Studio stays locked (hostname mismatch)"> Look at the hostname in the browser address bar and compare it character-for-character with the portal domain list. Add the missing host, or remove a typo and re-add. Then reload Filament. The wizard does not register domains for you — only the [License Portal](https://license.bjanczak.com/flex-forms/panel) does. Full steps: [Activate license](/get-started/activate-license). </Accordion> <Accordion title="How do I reopen or fix activation without the wizard?"> Once a Public API key is stored, the Setup Wizard usually does not show again. Open the Flex Forms left rail → **Global Settings** → **License** tab → paste or replace **License public key** → save → reload. Global Settings remains available even when the license is invalid, so you can always recover. </Accordion> <Accordion title="I skipped the optional brand fields — is that OK?"> Yes. URL prefix and Studio color are optional. Set them later under **Global Settings → Public URLs** and **Appearance**. They do not affect whether the license is valid. </Accordion> <Accordion title="Can I skip the wizard entirely?"> Yes. After install, go to **Global Settings → License**, paste `pk_forms_…`, save, and ensure the hostname is registered. Then continue to [Create your first form](/get-started/first-form). </Accordion> <Accordion title="I rotated the Public API key in the portal"> Paste the new `pk_forms_…` into **Global Settings → License** (the wizard will not automatically reappear). Update every environment that stores the old key. </Accordion> </AccordionGroup> *** ## What success looks like After a correct Public API key **and** a matching registered hostname: * You can open **Forms**, create and edit forms in Studio * Publish / share / embed paths work according to your plan * Brand defaults (if you set them) show up in Studio color and public fill URLs If anything is still locked, treat it as an activation problem, not an install problem — return to [Activate license](/get-started/activate-license) and [The License Portal](/plans/license-portal). <Panel> **Next:** [Activate license](/get-started/activate-license) · [Installation](/get-started/installation) · [Create your first form](/get-started/first-form) · [Global Settings](/get-started/global-settings) </Panel> # The Thank-You Experience Source: https://flexforms.bjanczak.com/get-started/thank-you Design the final step of the user journey. Configure custom success messages or redirect respondents to external URLs. The moment after submission is critical. It's your opportunity to confirm receipt, set expectations, or drive the user to the next stage of your funnel. ## Configuration Options <Tabs> <Tab title="Success Message"> Show a beautifully branded confirmation screen immediately after submission. *Best for simple contact forms and surveys.* 1. Open the Studio and select the **Thank You** node at the bottom of the canvas. 2. Write a clear, concise headline (e.g., "We've received your request!"). 3. Add supporting text explaining the next steps (e.g., "Our team will reply within 24 hours."). </Tab> <Tab title="URL Redirect"> Bypass the success screen and instantly send the user to another webpage. *Best for continuing a complex SaaS onboarding flow or triggering a file download.* 1. Open **Form Settings → Behavior**. 2. Toggle **Redirect on Submit**. 3. Paste your destination URL. </Tab> </Tabs> *** ## Design Best Practices <CardGroup> <Card title="Be Explicit" icon="check-double"> Don't just say "Thanks." Tell them exactly what happens next. Will they get an email? Should they expect a call? </Card> <Card title="Provide an Escape" icon="door-open"> If using the Success Message, provide a button or link back to your homepage so they aren't trapped on a dead-end screen. </Card> </CardGroup> <Panel> **Deep Dive:** Master the final step in the [Thank-You Architecture Guide](/features/studio/thank-you). </Panel> # Upgrading Source: https://flexforms.bjanczak.com/get-started/upgrading Update Flex Forms safely: composer update, migrate, flex-forms:upgrade, CI notes, dry-run, and troubleshooting missing tables. When a new Flex Forms release ships, upgrade your Laravel app in three layers: **Composer** (package code), **database** (migrations), and **upgrade tasks** (one-off data fixes the package tracks between versions). <Banner> License keys (`pk_forms_…`) and Composer tokens (`cmp_…`) do **not** need a database upgrade — they live in the License Portal and your env/CI secrets. Upgrading the package does not invalidate them unless you regenerate tokens yourself. </Banner> ## Standard upgrade path <Steps> <Step title="Update the package"> From your Laravel project root, with Composer authenticated to the private registry ([Installation](/get-started/installation)): ```bash theme={} composer update janczakb/filament-flex-forms ``` </Step> <Step title="Run migrations"> Apply any new tables or columns: ```bash theme={} php artisan migrate ``` In production, use your normal deploy flow (`--force` when non-interactive). </Step> <Step title="Run the upgrade command"> Flex Forms bundles migrations **and** idempotent upgrade tasks (backfills, reindexes, health checks): ```bash theme={} php artisan flex-forms:upgrade ``` This runs `migrate --force`, executes pending upgrade tasks, and prints a health check for core tables. </Step> <Step title="Republish assets when needed"> After releases that touch Studio, fill, or embed JS/CSS, republish and refresh Filament assets: ```bash theme={} php artisan flex-forms:upgrade --assets ``` Or manually: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-assets --force php artisan filament:assets ``` </Step> <Step title="Clear caches"> After config or env changes: ```bash theme={} php artisan optimize:clear ``` </Step> </Steps> ## CI / CD Add the same steps to your deploy pipeline **after** `composer install`: ```yaml theme={} - name: Upgrade Flex Forms run: | php artisan migrate --force --no-interaction php artisan flex-forms:upgrade --no-interaction ``` <Info> In CI, pass `--skip-migrate` to `flex-forms:upgrade` only when you already ran `migrate` in an earlier step — the upgrade command calls migrate by default. </Info> Store `cmp_…` in CI secrets exactly as on [Installation](/get-started/installation). Regenerating a Composer token in the portal requires updating every secret in the same change window. ## Upgrade tasks `flex-forms:upgrade` may run package-owned data tasks after migrate. Recent tasks include backfilling **Integration Connections** from legacy Google Sheets / Salesforce global credentials when a Connection does not exist yet (global credentials remain as a fallback). Applied tasks are recorded in `flex_forms_upgrade_tasks` so they are durable across cache clears. Use `--dry-run` to preview pending task ids before applying them. ## Dry run (preview tasks) See what upgrade tasks would run **without** executing them: ```bash theme={} php artisan flex-forms:upgrade --dry-run --skip-migrate ``` Output lists pending task IDs and descriptions. Remove `--skip-migrate` when you are ready to apply everything. Useful flags: | Flag | Effect | | - | - | | `--dry-run` | List pending upgrade tasks only | | `--skip-migrate` | Skip the migrate step (when you ran it separately) | | `--assets` | Republish `filament-flex-forms-assets` and run `filament:assets` | ## Troubleshooting <AccordionGroup> <Accordion title="Health check shows ✗ flex_forms or ✗ flex_form_submissions"> Core tables are missing. Run: ```bash theme={} php artisan migrate --force php artisan flex-forms:upgrade ``` Confirm the database user can create tables. Read the failing migration name in the error output. </Accordion> <Accordion title="Studio loads but looks broken after upgrade"> Republish assets (`php artisan flex-forms:upgrade --assets`), hard-refresh the browser, and clear opcache if you use it in production. </Accordion> <Accordion title="Upgrade task failed mid-run"> Fix the underlying issue (permissions, disk space, missing column), then re-run `php artisan flex-forms:upgrade`. Tasks are idempotent — completed tasks are skipped on the next run. </Accordion> <Accordion title="Do I need to re-enter my license key?"> No. Your Public API key (`pk_forms_…`) in **Global Settings → License** is unchanged by package upgrades. Re-register domains only when you add new hostnames. </Accordion> <Accordion title="401 from composer.bjanczak.com during update"> Composer token missing or revoked. Re-copy **Install via Composer** from the [License Portal](https://license.bjanczak.com/flex-forms/panel) and update CI/server `auth.json`. </Accordion> </AccordionGroup> <Warning> Do not skip migrations permanently. Studio, submissions, Insights, and integrations depend on the full schema. </Warning> <Panel> **Related:** [Installation](/get-started/installation) · [Configuration](/get-started/configuration) · [Changelog](/resources/whats-new) </Panel> # Access Gates & Security Source: https://flexforms.bjanczak.com/guides/access-gates Ensure the right people access your forms at the exact right time. Layer passwords, schedules, and entry caps effortlessly. Flex Forms doesn't just collect data; it protects it. The **Access Gates** system provides enterprise-grade security controls directly in your Form Settings. Every gate is enforced at the server level. Even if a malicious user tries to bypass your website's frontend, the Flex Forms engine will slam the door shut. ```mermaid theme={} flowchart TD Req[User_Requests_Form] --> Closed{Is_Form_Closed?} Closed -->|Yes| Blocked[Display_Closed_Message] Closed -->|No| Sched{Inside_Schedule?} Sched -->|No| Blocked2[Display_Waiting_Message] Sched -->|Yes| Cap{Entry_Cap_Reached?} Cap -->|Yes| Blocked3[Display_Limit_Message] Cap -->|No| Open[Form_Authorized] Open --> Pw{Password_Protected?} Pw -->|Yes| Unlock[Prompt_for_Password] Pw -->|No| Fill[Render_Form] Unlock --> Fill ``` *** ## Security gates You can layer these gates together to create highly specific scenarios (e.g., *"Only allow 50 entries, and only on weekends, and only if they have the password"*). <Steps> <Step title="Password Protection"> Lock your form behind a cryptographic key. Perfect for internal HR surveys or VIP event registrations. The plaintext password is never exposed to the internet. </Step> <Step title="Automated Scheduling"> Don't stay up until midnight to launch a campaign. Define an exact Start Date, End Date, and Timezone. You can even uncheck Saturdays and Sundays to ensure your B2B forms only collect leads during office hours. </Step> <Step title="Entry Caps (Scarcity)"> Selling 100 limited-edition products? Set a strict maximum entry cap. The exact millisecond the 100th person submits, the form locks down globally. You can cap total entries, or limit velocity (e.g., *10 entries per day*). </Step> <Step title="Duplicate Prevention"> Running a democratic vote or a giveaway? Prevent users from submitting multiple times by locking the form to their IP Address, or more accurately, to their Email Address. Prefer email when accuracy matters. Behind a CDN or load balancer, configure [trusted proxies](/get-started/installation#trusted-proxies-production) so visitor IPs are real — private/proxy ranges are ignored for IP locks so one submit cannot block everyone. </Step> <Step title="Manual Override (The Kill Switch)"> If a campaign goes viral and you are overwhelmed with leads, simply flip the **Close Form** switch to instantly halt all new traffic. </Step> <Step title="CAPTCHA (one provider)"> After connecting reCAPTCHA and/or Turnstile under left-rail **Integrations**, enable CAPTCHA in **Form Settings → Access** and pick a single provider for that form. Details: [Access settings](/features/settings/access). </Step> </Steps> *** ## The Respondent Experience When a user hits a gate, they don't see a scary error page. Instead, they see a beautifully branded, customizable message that you control. <CardGroup> <Card title="Tailored Messaging" icon="message-bot"> Customize exactly what respondents see when they arrive too early ("Coming Soon!"), too late ("Campaign Ended"), or when capacity is reached ("Sold Out!"). </Card> <Card title="Seamless Redirects" icon="arrow-up-right-from-square"> Alternatively, if a user hits a gate (or successfully completes the form), you can automatically redirect them back to your main website or a specific landing page. </Card> </CardGroup> <Tip> **Entry-cap concurrency:** When an entry cap is enabled, Flex Forms takes a short exclusive database lock on the form row **only for the final count check + insert**. File promotion and other disk work happen outside that lock so high traffic does not serialize every submitter. Forms without a cap never take this lock. Optional Redis powers Insights scaling (uniques / today buffers), not entry-cap authority. </Tip> <Panel> **Next Steps:** [Managing Submissions](/features/submissions/overview) · [Building with Logic](/guides/logic-and-calculated) </Panel> # The Contacts CRM Workflow Source: https://flexforms.bjanczak.com/guides/contacts-workflow Automatically build a unified directory of every human who interacts with your forms. Search, sort, and export with ease. Forms don't just collect abstract data; they collect people. The **Contacts** directory is a built-in, lightweight CRM. Every time a user completes a submission that includes their Name or Email, the Flex Forms engine automatically extracts their identity and builds a unified profile across all your forms. ```mermaid theme={} flowchart LR Submit[User_Submits_Form] --> Extract[Engine_Extracts_Identity] Extract --> Contact[Profile_Created_or_Updated] Contact --> Directory[Global_Contacts_Directory] Directory --> Search[Search_and_Filter] Directory → Export[Export_to_CSV] Directory → CRM[Sync_to_External_CRM] ``` CSV export downloads as a streamed file (filters applied) so large directories do not freeze the Studio tab. *** ## The unified Profile Instead of hunting through hundreds of raw submissions to find "Jane Doe", you can simply open the Contacts directory. <Table> <thead> <tr> <th>Profile Intelligence</th> <th>What it tells you</th> </tr> </thead> <tbody> <tr> <td>**Core Identity**</td> <td>Their Full Name and Primary Email Address.</td> </tr> <tr> <td>**Origin Tracking**</td> <td>Exactly which form (e.g., *Summer Giveaway* vs. *Contact Us*) acquired this user.</td> </tr> <tr> <td>**Engagement Score**</td> <td>The total number of times this specific human has interacted with your brand across all active forms.</td> </tr> <tr> <td>**Lifecycle Timestamps**</td> <td>When they first discovered you (*Joined At*), and the last time they interacted (*Last Seen At*).</td> </tr> </tbody> </Table> <Callout type="info"> **Intelligent Deduplication:** If Jane Doe submits your "Contact Us" form on Monday, and your "Giveaway" form on Friday, the engine does *not* create two duplicate contacts. It intelligently updates her existing profile, incrementing her engagement score and updating her *Last Seen* timestamp. </Callout> *** ## Managing Your Audience The Contacts directory is built for speed, allowing you to instantly manipulate massive lists of leads. <Steps> <Step title="Lightning-Fast Search"> Type a name or email into the search bar to instantly isolate a specific high-value lead. </Step> <Step title="Behavioral Sorting"> Sort your audience by **Last Seen** to find your most active recent leads, or by **Submission Count** to identify your most loyal brand advocates. </Step> <Step title="CSV Exporting"> Click the **Export** button to instantly generate a clean CSV file of your filtered audience, ready to be dropped into Mailchimp, Excel, or a manual mail-merge. </Step> <Step title="Automated CRM Syncing"> For zero-touch operations, skip manual exports entirely. Use the [Integrations Engine](/features/settings/integrations) to automatically push these contacts directly into HubSpot, Salesforce, or Zapier the millisecond they hit submit. </Step> </Steps> <Panel> **Next Steps:** [Automating Emails & PDFs](/guides/emails-and-pdf) · [Connecting HubSpot](/integrations/hubspot) </Panel> # Design & branding Source: https://flexforms.bjanczak.com/guides/design-pro Brand your forms on every plan — logos, covers, colors, layout, custom CSS — plus Pro white-labeling. A form is a direct reflection of your brand's quality. Flex Forms provides powerful, non-technical design tools so public fill looks like part of your product — not a generic survey template. **Design panel + custom CSS are included on Standard, Pro, and Enterprise.** Only removing the “Powered by Flex Forms” watermark requires <Badge>Pro</Badge> or Enterprise. <Columns> <Card title="All plans" icon="image"> Upload logos and covers, social previews, accent colors, typography, advanced layout, and custom CSS via the [Design panel](/features/studio/customize). </Card> <Card title="White-labeling" icon="eye-slash"> <Badge>Pro</Badge> / Enterprise. Remove the "Powered by Flex Forms" watermark for a clean public experience. See [Hide branding](/plans/hide-branding). </Card> </Columns> ```mermaid theme={} flowchart TD Upload[Upload_Brand_Assets] --> Cloud[Secure_Media_Storage] Cloud --> Public[Global_Delivery_Network] Public --> Fill[Respondent_Sees_Branded_UI] Toggle[Toggle_White_Labeling] --> Check{Is_Pro_Plan?} Check -->|Yes| Hidden[Watermark_Removed_Instantly] Check -->|No| Shown[Watermark_Remains_Visible] ``` *** ## Crafting the Visual Identity You don't need to write a single line of CSS unless you want to. Visual identity is controlled through the [Design panel](/features/studio/customize) — including advanced layout and a sanitized custom CSS editor on every plan. <Steps> <Step title="Upload the Brand Anchor (Logo)"> Upload a crisp, square logo (up to 600px). This anchors the top of your form and establishes immediate trust with the respondent. </Step> <Step title="Set the Atmosphere (Cover Image)"> Upload a cinematic, high-resolution header image (up to 2000px). Flex Forms automatically compresses this into next-gen WebP formats to ensure the page loads instantly on mobile devices. </Step> <Step title="Define the Accent Color"> Select a Hex color that exactly matches your brand guidelines. The engine will instantly apply this color to all interactive elements, progress bars, and buttons. </Step> <Step title="Optimize for Social Media"> Upload a dedicated **Social Preview Image** (1200x630px). When you paste your form link into Slack, LinkedIn, or iMessage, this image will unfurl to create a highly clickable, beautiful preview card. </Step> </Steps> *** ## White-Labeling (Hiding Branding) By default, the bottom of every form features a small, subtle "Made with Flex Forms" badge. If you are an agency building forms for high-paying clients, or an enterprise requiring strict brand purity, you cannot have third-party watermarks on your assets. <Steps> <Step title="Access General Settings"> From Studio, open **Form settings (gear) → General** (not the Studio canvas Design rail). </Step> <Step title="Toggle White-Labeling"> Simply toggle **Flex Forms Branding** to *Off*. </Step> <Step title="Instant Removal"> The engine will instantly scrub all traces of Flex Forms from the public fill page, embeds, and popup modals. </Step> </Steps> <Callout type="warning"> **License Enforcement:** White-labeling is strictly enforced by the global license server. If you are on a Standard plan, toggling this switch will have no effect. You must upgrade to a **Pro** or **Enterprise** license to unlock this capability. </Callout> <Panel> **Next Steps:** [Comparing Pricing Plans](/plans/standard-pro-enterprise) · [Mastering the Studio](/features/studio/overview) </Panel> # Automated Emails & PDFs Source: https://flexforms.bjanczak.com/guides/emails-and-pdf Deliver instant gratification. Send beautiful auto-responders, team alerts, and branded HTML receipts directly from the form engine. When a user submits a form, silence is the absolute enemy of trust. Flex Forms features a dual-engine notification system that can simultaneously dispatch a data-rich alert to your internal team and a branded confirmation receipt to the respondent — both as polished HTML (plus plain text). ```mermaid theme={} flowchart LR Submit[User Submits Form] --> Notify[Notification Engine Engages] Notify --> Self[Is Team Alert On?] Notify --> Resp[Is Auto-Responder On?] Self -->|Yes| SendSelf[Dispatch HTML Alert To Staff] Resp -->|Yes| Extract[Extract Respondent Email] Extract --> SendResp[Dispatch HTML Receipt To User] ``` *** ## The Dual-Engine Architecture Control both pathways from **Form Settings → Email notifications**. ### 1. Internal Team Alerts (Self Notifications) Notify sales or support the millisecond a lead arrives. The engine attaches a structured HTML table of every answer below your custom message. ### 2. Respondent Auto-Responders Thank the user instantly. Bind the target to an [Email Block](/features/blocks/email), craft the copy, and optionally **Attach PDF of answers** (HTML receipt + PDF attachment). Merge tags in subject/message: `{form_title}`, `{form_name}`, `{submission_id}`, `{submitted_at}`. *** ## Customize HTML visually Publish the Blade email templates and edit them like any other HTML: ```bash theme={} php artisan vendor:publish --tag=filament-flex-forms-mail ``` Files land in `resources/views/vendor/filament-flex-forms/mail/` (`submission-admin`, `submission-respondent`, shared `partials`). Laravel prefers your published copies over the package defaults. *** ## Delivery notes <AccordionGroup> <Accordion title="How does the engine know the respondent email?"> From the Email Block you select under **Or send to answer from field**, and/or any addresses in **To**. Invalid addresses are skipped to protect sender reputation. </Accordion> <Accordion title="Do these emails trigger on abandoned forms?"> No — only completed submissions. Partial drafts never send mail. </Accordion> <Accordion title="Can I send leads to Slack instead?"> Yes — use the [Integrations Hub](/features/settings/integrations) alongside or instead of SMTP alerts. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Integrations overview](/integrations/overview) · [Reviewing submissions](/features/submissions/overview) </Panel> # Universal Website Embedding Source: https://flexforms.bjanczak.com/guides/embed-platforms Deploy your forms onto WordPress, Webflow, or custom web apps in seconds using zero-code HTML snippets. You don't need to hire a developer to put a form on your website. Flex Forms generates copy-and-paste snippets that work instantly on any platform—WordPress, Webflow, Shopify, Framer, or a custom React app. Your Filament server remains the central brain. When you update a form in the Studio, it instantly updates across every website where it is embedded. ```mermaid theme={} flowchart LR Share[Configure_in_Studio] --> Copy[Copy_Generated_Snippet] Copy --> Host[Paste_into_WordPress_or_Webflow] Host --> Loader[Engine_Initializes_Embed] Loader --> Iframe[Secure_Form_Renders_on_Site] Iframe --> Fill[Data_Flows_to_Backend] ``` *** ## Choosing Your Embed Architecture From the **Share** tab in the Studio, you can generate snippets for three distinct visual architectures. <Table> <thead> <tr> <th>Mode</th> <th>How it looks</th> <th>Best Use Case</th> </tr> </thead> <tbody> <tr> <td>**Standard (Inline)**</td> <td>Flows naturally inside your webpage content.</td> <td>"Contact Us" pages, long-form articles, or footer signups.</td> </tr> <tr> <td>**Popup (Button/Link)**</td> <td>Hides the form until a user clicks a specific trigger, opening a sleek modal.</td> <td>High-converting landing pages where space is limited.</td> </tr> <tr> <td>**Full Page**</td> <td>Consumes the entire browser window perfectly.</td> <td>Dedicated routing (e.g., creating a standalone `yourdomain.com/apply` page).</td> </tr> </tbody> </Table> *** ## The Zero-Code Workflow <Steps> <Step title="Publish the Form"> Embeds are a live, public feature. Ensure your form is officially **Published** in the Studio before attempting to embed it. </Step> <Step title="Configure the Aesthetics"> In the Share tab, tweak the settings. Need to remove the form's background so your website's beautiful gradient shows through? Toggle **Transparent Background**. Need to hide the form's title? Toggle **Hide Title**. </Step> <Step title="Copy the Snippet"> Click the "Copy Code" button. Flex Forms automatically writes perfectly structured HTML based on your exact toggle choices. </Step> <Step title="Paste and Launch"> Open your website builder (e.g., Webflow's HTML Embed element, or WordPress's Custom HTML block) and paste the code. Save the page, and your form is live. </Step> </Steps> *** ## What the Snippets Look Like You don't need to understand HTML to use these, but here is what Flex Forms is generating for you behind the scenes: <CodeGroup> ```html title="Standard Inline Embed" theme={} <iframe data-flex-form-src="https://your-app.com/forms/contact-us/embed?dynamicHeight=1" loading="lazy" width="100%" height="800" frameborder="0" title="Contact us" allow="fullscreen" ></iframe> <script async src="https://your-app.com/vendor/flex-forms/embed.js"></script> ``` ```html title="Popup Trigger Button" theme={} <script async src="https://your-app.com/vendor/flex-forms/embed.js"></script> <button type="button" data-flex-form-open="contact-us" data-flex-form-layout="modal" data-flex-form-width="376" data-flex-form-position="bottom_right" > Open form </button> ``` </CodeGroup> <Tip> **The Magic of Dynamic Height:** By default, Standard embeds include the `dynamicHeight` flag. This instructs the iframe to constantly talk to your website, automatically stretching or shrinking the container as the user moves between form pages, completely eliminating ugly scrollbars. </Tip> <Panel> **Next Steps:** [Injecting Data via URL Parameters](/features/share/query-params) · [Analyzing Embed Traffic](/features/insights/overview) </Panel> # The Logic & Calculation Engine Source: https://flexforms.bjanczak.com/guides/logic-and-calculated Master guide: Branch, Rules, Map, Simulator, Calculated fields, operators, actions, and end-to-end recipes. Static forms ask every question. Smart forms only ask what matters. Flex Forms logic is always the same sentence: **When** something is true about an answer → **Then** do something. This guide is the **instructional hub**. Deep reference pages sit under Features → Studio → Logic. *** ## Start here (read once) 1. [How logic works](/features/studio/logic/overview) — Branch, Rules, Map, Simulator, blanks, path validation, cascade scrub 2. [Operators (When)](/features/studio/logic/operators/overview) — full field-type matrix + every operator page 3. [Actions (Then)](/features/studio/logic/actions/overview) — show/hide/require/jump/calculate/hide submit Then pick a surface: | Surface | Instructions | | - | - | | Per-answer follow-up / jump | [Branch & field conditions](/features/studio/logic/field-conditions) | | Form-wide routing & gates | [Rules / Map / Simulator](/features/studio/logic-board) | | Live total / score | [Calculated fields](/features/studio/calculated-fields) | <Warning> Canvas **If / Else** cards are **deprecated** and removed from the catalog. Prefer Branch or Rules. See [If / Else (deprecated)](/features/studio/logic/if-else-block). </Warning> *** ## Golden rules (memorize these) <Warning> 1. **Blank fails closed** — unanswered fields do not match equals / not equals / most comparisons. Use [Is empty](/features/studio/logic/operators/empty). 2. **Hide clears answers** — never hide a field to “keep” a secret value for submit. 3. **Later matching rule wins** — Rules evaluation order. 4. **Tokens are block ids** — use the `{x}` inserter in Calculate / Calculated. 5. **Conflicts & flow health are release blockers** — clear chips and critical Map issues before publish. 6. **Deletes scrub logic** — removing a field/page/option cleans references automatically. </Warning> *** ## End-to-end recipe A — Other → specify <Steps> <Step title="Add fields"> Multiple choice with an `Other` option + Short text “Please specify”. </Step> <Step title="Branch on the choice"> Follow [Branch](/features/studio/logic/field-conditions): Other → **Show follow-up** specify. Optionally Require in Rules. </Step> <Step title="Preview"> Confirm specify appears only for Other and blocks Submit when required and empty. </Step> </Steps> *** ## End-to-end recipe B — Eligibility + hide Submit <Steps> <Step title="Ask budget"> Number field “Monthly budget”. </Step> <Step title="Open Rules"> Top bar → **Logic** → **Rules** → Add rule. </Step> <Step title="Gate Submit"> When Budget **less than** `1000` → [Hide submit](/features/studio/logic/actions/hide-submit) + Show a message block. </Step> <Step title="Preview"> Low budget removes Submit. Raising budget restores it. </Step> </Steps> *** ## End-to-end recipe C — Quiz score + jump <Steps> <Step title="Build questions"> Multiple pages of scored choices (see [Quiz recipe](/guides/quiz-recipe)). Mark terminal pages. </Step> <Step title="Add Calculated"> Sum point fields with `{q1}+{q2}+…` ([Calculated fields](/features/studio/calculated-fields)). </Step> <Step title="Branch on Rules"> When Score **greater than or equal** `80` → Jump to Winner; else Jump to Standard (two rules or Branch **Otherwise** carefully). </Step> <Step title="Verify on Map + Simulator"> Confirm edges and dry-run paths. Optional: Behavior → Auto-Jump for instant advances on choice. </Step> </Steps> *** ## End-to-end recipe D — Live pricing <Steps> <Step title="Collect variables"> Seats (number), priority support (yes/no), setup fee (number). </Step> <Step title="Calculated total"> Number formula e.g. `({seats} * {seat_price}) + {setup}` and optional priority uplift via a second Calculate rule. </Step> <Step title="Show the scoreboard"> Keep the Calculated block visible on the quote page. </Step> </Steps> *** ## Operator & action cheat sheet ### When (operators) Equality, comparisons, contains/starts/ends, choice sets (`in`, `eq_set`, `is_every_of`), empty/not empty, between, regex, relative dates, Always — each has its own page from the [operators index](/features/studio/logic/operators/overview). ### Then (actions) | Action | Remember | | - | - | | [Show](/features/studio/logic/actions/show-blocks) | Visibility only — pair with Require if needed | | [Hide](/features/studio/logic/actions/hide-blocks) | Clears answers; forces not required | | [Require](/features/studio/logic/actions/require-answer) / [Optional](/features/studio/logic/actions/make-optional) | Ignored while hidden | | [Jump](/features/studio/logic/actions/jump-to-page) | Last matching jump wins; check Map | | [Calculate](/features/studio/logic/actions/calculate) | Feeds later rules in the same pass | | [Hide submit](/features/studio/logic/actions/hide-submit) | Always explain why | *** ## Publish checklist 1. Preview every branch path (match, non-match, **Otherwise**). 2. Clear Rules conflict chips. 3. Clear **flow health** criticals (Map). 4. Confirm blank paths (Is empty) do what you intend. 5. Confirm Calculate blanks when inputs are empty. 6. Confirm hidden required fields never block Submit on the visited path. 7. Run **Simulator** on key answer sets. 8. Publish and retest on the live fill URL. <Panel> [How logic works](/features/studio/logic/overview) · [Workflow → Rules](/features/studio/logic-board) · [Calculated fields](/features/studio/calculated-fields) · [Quiz recipe](/guides/quiz-recipe) · [Multi-page forms](/guides/multi-page-stepper) </Panel> # Multi-Page Forms & Wizard Stepper Source: https://flexforms.bjanczak.com/guides/multi-page-stepper Dramatically increase completion rates by breaking long, intimidating forms into bite-sized, interactive steps. Long, single-page forms are terrifying to users and lead to massive abandonment rates. Flex Forms allows you to easily chop any form into multiple pages. When combined with the [Logic Engine](/guides/logic-and-calculated), you can even skip irrelevant pages entirely based on the user's answers. ```mermaid theme={} flowchart LR P1[Page_1_Intro] -->|Next| P2[Page_2_Questions] P2 -->|Logic_Rule_Matches| P4[Page_4_Special_Offer] P2 -->|Normal_Flow| P3[Page_3_Standard] P3 --> P4 P4 --> Submit[Final_Submission] ``` *** ## Designing the Wizard Experience <Steps> <Step title="Split the Pages in Studio"> Open the **Pages** sidebar in the Studio. Simply drag and drop your existing blocks into new Page columns. There is no limit to how many pages you can create. </Step> <Step title="Select a Stepper Style"> In **Studio → Form settings (gear) → General**, choose how you want to visualize progress (only when the form has more than one page): * **Numbered Tiles:** Circled step numbers (Step 1, Step 2, Step 3). * **Progress Bar:** A continuous line that fills as respondents move through pages. * **None:** Hide the stepper for a chat-style experience. </Step> <Step title="Define Brand Colors"> Set the **Stepper Accent Color** to your brand Hex code so the wizard matches your identity. </Step> </Steps> *** ## Frictionless Progression If you are building a rapid-fire quiz or a triage form, forcing users to click "Next" after every single question is annoying. Toggle **Auto-Jump** on in the Behavior settings. The exact millisecond a user clicks a multiple-choice answer, the form will instantly and smoothly transition to the next page, creating a polished, app-like experience. <Callout type="warning"> **Intelligent Validation:** You don't need to worry about users skipping required fields. The engine strictly validates the *current visible page* before allowing the user to progress. It intelligently ignores required fields that are hidden by Logic or located on future pages. </Callout> <Panel> **Next Steps:** [Building Quizzes & Calculators](/guides/quiz-recipe) · [Monitoring Page Drop-offs](/guides/reading-insights) </Panel> # Recovering Abandoned Leads Source: https://flexforms.bjanczak.com/guides/partials-save-later Never lose a lead to a dropped WiFi connection again. Capture partial submissions and save progress locally. In the real world, users get distracted. They close tabs, their batteries die, or they realize they need to go find a PDF document before they can finish your application. Flex Forms provides two distinct safety nets to ensure you never lose a hard-earned lead. <Columns> <Card title="Client-Side: Save for Later" icon="save"> (Enabled by default). Quietly saves the user's keystrokes directly into their own browser. If they accidentally close the tab, they can re-open the link and instantly resume. </Card> <Card title="Server-Side: Partial Submissions" icon="inbox"> (Disabled by default). Actively transmits abandoned data to your server every time a user turns a page, allowing you to manually follow up with lost leads. </Card> </Columns> ```mermaid theme={} flowchart LR Fill[User_Typing] -->|Save_For_Later| Draft[Saved_In_Browser] Fill -->|Page_Turn| Ingest[Engine_Captures_Data] Ingest -->|Partial_Submissions_On| Row[Logged_as_Abandoned_Lead] Row -->|User_Returns_and_Submits| Final[Converted_to_Completed_Lead] Row -->|User_Never_Returns| Dropoff[Counted_in_Drop-off_Analytics] ``` *** ## 1. Save Answers for Later (The UX Guardian) This feature is purely about user experience. It uses secure LocalStorage to remember what the user typed. * **Privacy First:** This data never leaves the user's computer until they hit submit. You cannot view it in your admin panel. * **Anonymous Resumes:** The user doesn't need to create an account or log in. As long as they return using the same device and browser, their answers will magically reappear. * **No step flash:** On reload, the fill page shows a short restoring state, then opens directly on the saved step — respondents do not see the form jump from page 1 through auto-jumps. *** ## 2. Partial Submissions (The Marketer's Guardian) If you are spending \$50 on ads to acquire a lead, you cannot afford to lose them on page 3 of your form. <Steps> <Step title="Enable Partial Tracking"> Go to **Form Settings $\rightarrow$ General** and toggle **Partial Submissions** on. </Step> <Step title="The Capture Engine"> Every time a user clicks "Next" to turn a page, the engine silently transmits everything they've typed so far to your secure database. </Step> <Step title="Manual Follow-Up"> Open your Inbox. You will see these entries clearly flagged as "Partial". If they filled out their email address on Page 1 before abandoning on Page 3, you can easily email them and ask if they need help completing the application. </Step> <Step title="Automated Recovery"> For advanced workflows, use the [Integrations Engine](/features/settings/integrations) to automatically push "Partial" leads into a specific Mailchimp "Abandoned Cart" sequence. </Step> </Steps> <Callout type="warning"> **Data Privacy Compliance:** Partial submissions allow you to read data before a user explicitly hits "Submit". You must ensure your organization's privacy policy clearly states that you capture in-progress form data, and you should leverage the [Automated Data Retention](/features/settings/general) feature to automatically purge old partial leads to remain GDPR compliant. </Callout> <Panel> **Next Steps:** [Analyzing the Drop-off Funnel](/guides/reading-insights) · [Setting up CRM Integrations](/features/settings/integrations) </Panel> # Building Quizzes & Calculators Source: https://flexforms.bjanczak.com/guides/quiz-recipe Scored quizzes, live pricing, and eligibility checks with Calculated fields + Conditional logic → Calculate. Build scored quizzes and live calculators with three Studio pieces: **Calculated fields**, **Conditional logic → Calculate**, and optional **Jump to page**. ```mermaid theme={} flowchart TD Score[Calculated Score = 0] Q1[Question 1] Q2[Question 2] Score --> Q1 Q1 -->|correct → Add 10| Score Q2 -->|correct → Add 10| Score Score --> Branch{Score check} Branch -->|≥ 70| Pass[Jump Pass page] Branch -->|else| Fail[Jump Fail page] Pass --> Thanks[Thank you shows score] Fail --> Thanks ``` This matches the usual scored quiz pattern: one **Score** field, then **Add** points when an answer is correct. See [Calculated fields](/features/studio/calculated-fields) for the same mental model. *** ## Scenario 1: Scored quiz <Steps> <Step title="Create Calculated Score"> Drag **Calculated** → name it **Score** (field name `score`) → **Number** → **=** `0`.\ Public Fill never shows Calculated fields — the score appears on thank you via `{score}`. </Step> <Step title="Add quiz questions"> Multiple choice (or similar) for each item. </Step> <Step title="Add points with Calculate"> For each correct answer:\ **When** that question **is** *(correct option)* → **Then Calculate** **Σ Score** **Add** `10`\ (use Subtract / other ops if you need penalties). </Step> <Step title="Route by score"> **When** Score **≥** `70` → [Jump to page](/features/studio/logic/actions/jump-to-page) Pass.\ Another rule (or else path) → Fail / other result page.\ Keep **Calculate** rules **before** Jump rules. Mark Pass / Fail pages as **terminal**. </Step> <Step title="Show score on Thank you"> In the thank-you message, use a merge tag with the **field name**:\ `Attempt recorded. Final score: {score}/100.`\ After submit, Fill replaces `{score}` with the calculated value. </Step> </Steps> <Tip> Merge tags use the answer **name** (e.g. `{score}`, `{email}`), not the Studio block id. Calculated values always stay in the submission and thank-you tags even though Fill never renders the field. </Tip> *** ## Scenario 2: Dynamic pricing <Steps> <Step title="Collect inputs"> Quantity, plan, add-ons, etc. </Step> <Step title="Calculated Total"> **Calculated** → **Number** → initial `0` or a Formula such as `{price} * {quantity}`. </Step> <Step title="Conditional adjustments"> e.g. **When** plan **is** Pro → **Calculate** Total **Multiply** `1.2`, or Formula `({price} * {quantity}) - {discount}`. </Step> <Step title="Show or charge"> Echo Total on thank-you with `{total}`, or map it to payment **price** when your payment block supports Calculated targets. Public Fill does not render the Calculated field itself. </Step> </Steps> *** ## Scenario 3: Eligibility gate <Steps> <Step title="Ask the qualifier"> e.g. monthly budget. </Step> <Step title="Explain low fits"> **When** budget is too low → **Show** a message block. Prefer **Require** / **Jump** over hiding Next/Submit. </Step> <Step title="Optional score"> Use a Calculated lead score the same way as the quiz (Add points per answer), then branch or sync. Fill never shows Calculated fields. </Step> </Steps> <Panel> [Calculated fields](/features/studio/calculated-fields) · [Calculate action](/features/studio/logic/actions/calculate) · [Harbor quiz recipe](/features/studio/logic/recipes/harbor-quiz) · [Logic guide](/guides/logic-and-calculated) </Panel> # Mastering Your Analytics Source: https://flexforms.bjanczak.com/guides/reading-insights Understand the KPIs, dissect the drop-off funnel, and translate raw data into conversion rate optimization. The Insights Dashboard provides enterprise-grade BI (Business Intelligence) without requiring you to write a single SQL query. Understanding how to read the three core panels—**Answers**, **Visits**, and **Drop-offs**—is the key to turning a 2% conversion rate into a 20% conversion rate. ```mermaid theme={} flowchart LR Beacon[Live_Traffic_Events] --> Engine[Insights_Analytics_Engine] Submissions[Completed_Submissions] --> Engine Engine --> Answers[Answers_Distribution] Engine --> Visits[Traffic_&_Demographics] Engine --> Dropoffs[Funnel_Abandonment] ``` *** ## Decoding the KPIs At the top of the dashboard, you will see your core performance metrics. The engine automatically calculates the **Delta** (the green/red percentage arrows) by comparing your current date range against the exact previous period of equal length. <Table> <thead> <tr> <th>Metric</th> <th>What it actually means</th> </tr> </thead> <tbody> <tr> <td>**Visits**</td> <td>The total number of unique times the form was loaded on a screen.</td> </tr> <tr> <td>**Starts**</td> <td>The number of times a user actually typed a keystroke or clicked an answer.</td> </tr> <tr> <td>**Conversion Rate**</td> <td>The holy grail. (Submissions ÷ Visits). If 100 people visit, and 5 submit, your rate is 5%.</td> </tr> <tr> <td>**Completion Rate**</td> <td>(Submissions ÷ Starts). This tells you how many people who *began* the form actually finished it. A high conversion rate but a low completion rate means your form is too long or too confusing.</td> </tr> </tbody> </Table> *** ## The Drop-Off Funnel (Identifying Friction) The **Drop-offs** tab is a diagnostic X-Ray of your form's UX. It generates a literal funnel visualization of every single question. <Steps> <Step title="Locate the Cliff"> Look at the visual bars. If Page 1 has a 98% continuation rate, and Page 2 drops to a 40% continuation rate, you have found a "Cliff". </Step> <Step title="Identify the Offending Question"> Drill down into the specific block. Did you ask for their Phone Number? Did you ask a highly sensitive question too early in the relationship? </Step> <Step title="Apply the Fix"> Go to the Studio. Either make the offending question **Optional**, move it to the very last page, or use the [Logic Board](/guides/logic-and-calculated) to ensure it only shows up for highly qualified leads. </Step> </Steps> <Callout type="info"> **Bot Intelligence:** You don't need to worry about Google crawlers or spam bots ruining your conversion rate metrics. The Insights engine utilizes a highly advanced filtration layer that automatically scrubs known bots, ensuring your KPIs reflect actual, human behavior. </Callout> <AccordionGroup> <Accordion title="Why don't Visits match my Google Analytics exactly?"> Google Analytics relies heavily on third-party cookies, which are frequently blocked by ad-blockers and iOS privacy features. Flex Forms Insights operates server-side, meaning it is immune to ad-blockers and often provides a much more accurate picture of actual form loads. </Accordion> <Accordion title="Are abandoned entries included in the Answers tab?"> No. The Answers tab strictly displays data from users who successfully hit the final "Submit" button. Abandoned data is exclusively handled in the Drop-offs tab and the [Partial Submissions](/guides/partials-save-later) engine. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Sharing Dashboards with Clients](/guides/share-insights) · [Enterprise Scaling for High Traffic](/guides/redis-production) </Panel> # Enterprise Scaling (Redis) Source: https://flexforms.bjanczak.com/guides/redis-production How Flex Forms handles viral traffic spikes without crashing — Insights Redis from Global Settings or env. Standard form builders often buckle under sudden concurrent traffic (product launches, TV spots, influencer campaigns). Flex Forms is built for those spikes. By default the Insights engine is fast on SQL. When **Insights Redis** is enabled, heavy analytics move into memory so dashboards stay responsive while respondents keep submitting. ```mermaid theme={} flowchart TD Traffic[Traffic spike] --> Engine{Insights Redis on?} Engine -->|No| SQL[Standard SQL processing] Engine -->|Yes| Redis[Redis memory layer] Redis --> Hashes[Today counters via hashes] Redis --> HLL[HyperLogLog uniques] ``` *** ## What Redis accelerates <AccordionGroup> <Accordion title="Today metrics (O(1) hashes)"> **Standard:** Recalculated with database queries — fine at moderate volume, can contend under extreme load. **With Redis:** Live counters in memory hashes for near-instant Insights loads regardless of event volume. </Accordion> <Accordion title="Unique visitors (HyperLogLog)"> **Standard:** Expensive distinct counts on raw events. **With Redis:** Probabilistic HyperLogLog cardinality — the same class of algorithm used at large scale elsewhere on the web. </Accordion> <Accordion title="Entry caps (scarcity)"> **Standard:** Database counts to decide if a form cap is reached. **With Redis:** Atomic counters keep caps accurate even when many people submit in the same millisecond. </Accordion> </AccordionGroup> *** ## Performance defaults (always on) Redis is **optional**. Flex Forms still uses your app’s normal Laravel Cache for Studio hubs, fill form snapshots, listing counts, and integration catalogs — so installs without Redis stay correct, just not as fast under extreme Insights load. When you enable Insights Redis, those same cache keys can ride the Redis connection for lower latency. Versioned namespaces (forms index, fill by slug, submission counts, transaction counts, contacts, integrations) invalidate in one bump when you publish, save, or ingest — so respondents and Studio never see stale published schemas for long. *** ## How to turn it on You can configure Redis from the product UI **or** from the server environment. <Steps> <Step title="Decide if you need it"> A few hundred submissions a day: SQL mode is enough. Tens of thousands in an hour: enable Redis. </Step> <Step title="Studio (Global Settings → Insights)"> Open **Global Settings** → **Insights** tab. Set Redis mode to **Auto** (recommended), **On**, or **Off**, then adjust connection name, key prefix, HyperLogLog, today hashes, and cache TTL if your host team requires it. See [Global Settings](/get-started/global-settings). </Step> <Step title="Environment (optional override)"> DevOps can also force scaling from Laravel `.env`: <ParamField type="boolean"> When `true`, the engine routes Insights acceleration to Redis (in addition to whatever you set in Global Settings). </ParamField> </Step> <Step title="Failover"> Redis is for speed only. Durable rollups still land in SQL. If Redis disappears mid-spike, Flex Forms falls back to SQL without dropping submissions. </Step> </Steps> <Callout type="info"> **HyperLogLog:** Unique counts at scale without huge RAM. Leave it enabled unless your team has a specific reason to turn it off. </Callout> <Panel> **Next:** [Access gates](/guides/access-gates) · [Reading Insights](/guides/reading-insights) · [Redis scaling overview](/features/insights/redis-scaling) </Panel> # Client Reporting & Shared Dashboards Source: https://flexforms.bjanczak.com/guides/share-insights Generate secure, read-only dashboard links to present campaign performance to external stakeholders. When a marketing campaign ends, clients and executives want to see the results. Instead of spending hours taking screenshots and building PowerPoint presentations, Flex Forms allows you to issue a **Secure Share Link**. This provides the stakeholder with a beautiful, read-only, interactive version of the Insights Dashboard—without requiring them to create an account or log into your admin panel. ```mermaid theme={} flowchart LR Create[Generate_Share_Link] --> Scope[Define_Visible_Tabs] Scope --> Password{Add_Password?} Password -->|Yes| Locked[Stakeholder_Must_Unlock] Password -->|No| Open[Direct_Access] Locked --> View[Interactive_Read-Only_Dashboard] Open --> View View --> Revoke[Revoke_Access_Instantly] ``` *** ## Generating the Presentation <Steps> <Step title="Open the Share Hub"> Navigate to the Insights tab for your form and click the **Share Insights** button in the top right corner. </Step> <Step title="Scope the Permissions"> You have absolute granular control over what the client sees. *Example: You can expose the **Visits** and **Drop-offs** tabs to prove traffic volume, but hide the **Answers** tab to ensure the client cannot read sensitive PII or confidential responses.* </Step> <Step title="Apply security"> Leave the link open, or require a password. Password-protected links show a lock screen before the dashboard. </Step> <Step title="Link lifetime"> Shared Insights links expire after **30 days** by default. Revoke access earlier anytime from the share panel. </Step> </Steps> *** ## The Stakeholder Experience When the executive or client opens the URL, they land in a branded Insights view you control. While they cannot edit the form, they *can* interact with the data. They can adjust Date Ranges, apply Live Filters, and explore the charts exactly as if they were inside the platform. <Callout type="warning"> **Bulletproof Security:** When you uncheck a tab (like "Answers"), the data is not just visually hidden using CSS. The Flex Forms engine completely redacts the payload at the server level. Even if a highly technical client inspects the browser's network requests, it is mathematically impossible for them to extract the hidden data. </Callout> *** ## Managing Active Links You retain complete control over the distribution of your data. From the Share Hub, you can view a real-time ledger of every active link currently in circulation. If a client contract is terminated early, simply click **Revoke**. The link is instantly destroyed globally, and anyone attempting to view it will receive a standard 404 error. <Panel> **Next Steps:** [Mastering the Insights Dashboard](/guides/reading-insights) · [Exporting to CSV](/features/submissions/export-csv) </Panel> # Flex Forms Documentation Source: https://flexforms.bjanczak.com/index Premium multi-page forms inside your Filament app — Studio, fill, Insights, integrations, and production-grade delivery. New here? [Install](/get-started/installation) → [activate the license](/get-started/activate-license) → [publish your first form](/get-started/first-form). Prefer video? [Product walkthrough](/resources/product-walkthrough). <div> <img alt="Flex Forms — Studio form builder for Filament" /> </div> ## Why teams choose Flex Forms <CardGroup> <Card title="Studio that ships production forms" icon="pencil-ruler" href="/features/studio/overview"> Drag-and-drop canvas, multi-page flows, Logic Board, calculated fields, Design + custom CSS — then **Publish** a live schema operators can trust. </Card> <Card title="Lean public fill" icon="smartphone" href="/features/forms/fill-link"> Dedicated fill & embed runtime — not your Filament panel JS. Access gates, CAPTCHA, partials, and embeds served from **your** app. </Card> <Card title="Data you already own" icon="database" href="/features/submissions/overview"> Submissions and Contacts live in Laravel. Optional answer encryption, retention controls, CSV / Excel export — no SaaS silo. </Card> <Card title="Insights under real traffic" icon="chart-column" href="/features/insights/overview"> Visits, starts, completes, drop-offs. Beacon → today buffer → rollups; optional Redis when unique counts get heavy. </Card> <Card title="Integrations built for ops" icon="plug" href="/integrations/overview"> Save the submission first, deliver CRM / ESP / Slack **async**. Named Connections, delivery ledger + Replay, circuit breaker, hardened outbound HTTP. </Card> <Card title="Payments in the same product" icon="credit-card" href="/features/transactions/overview"> Stripe Payment block and a Transactions hub — not a bolted-on third party form tool. </Card> <Card title="Extensible like first-party" icon="code" href="/developers/custom-integrations"> Custom drivers reuse FieldMapper, Connections, ledger, and the same reliability stack as HubSpot or Slack. </Card> <Card title="Same design system as Flex Fields" icon="blocks" href="/features/blocks/overview"> Forty-plus Studio blocks on the Flex Fields component family — consistent UI in Studio and classic Filament forms. </Card> </CardGroup> <Tip> Comparing options? See [where Flex Forms fits](/resources/compare) and [plans & pricing](/plans/overview) (Standard, Pro, Enterprise, Lifetime). </Tip> *** ## Start here <Columns> <Card title="Installation" href="/get-started/installation"> Lemon purchase → License Portal → Composer → panel plugin. </Card> <Card title="License" href="/get-started/activate-license"> Portal Public API key (`pk_forms_…`) + hostname activation — never the Lemon key in Filament. </Card> <Card title="Quickstart" href="/get-started/first-form"> Create in Studio, publish, share a live fill link. </Card> <Card title="Blocks & components" href="/features/blocks/overview"> Text, choice, uploads, maps, payments, and more. </Card> <Card title="Integrations" href="/integrations/overview"> Catalog, Connections, form feeds, inbound webhooks, reliability model. </Card> <Card title="Analytics & security" href="/features/insights/overview"> Insights, gates, CAPTCHA, encryption, retention. </Card> <Card title="Architecture" href="/architecture/overview"> How Studio, fill, Insights, and license checks fit together. </Card> <Card title="Plans & pricing" href="/plans/overview"> Four plans — seats, white-label, yearly or Lifetime. </Card> <Card title="Support" href="/resources/support"> Help Center paths, contact options, and issue templates. </Card> </Columns> # ActiveCampaign Integration Source: https://flexforms.bjanczak.com/integrations/activecampaign A comprehensive, enterprise-grade guide to syncing contacts, triggering automations, and managing dynamic tags in ActiveCampaign. <Banner type="info"> 📚 **Developer Reference:** For deep dives into the payload structure and webhook architecture, please read the [Official ActiveCampaign API Documentation](https://developers.activecampaign.com/reference/overview). </Banner> The **ActiveCampaign** integration is a powerhouse for enterprise marketing automation. It goes far beyond simply adding an email address to a list. It allows you to dynamically append behavioral tags, populate custom fields, and trigger complex automated workflows the absolute second a form is submitted, effectively removing any manual data entry from your marketing team. ## Enterprise Business Use Cases <CardGroup> <Card title="Dynamic Tag-Based Segmentation" icon="tags"> Automatically tag users based on their exact form selections. For example, if a user selects "Enterprise" in a pricing dropdown, Flex Forms will instantly append the `interest: enterprise_plan` tag to their profile, instantly triggering a VIP sales automation sequence. </Card> <Card title="Instant Drip Campaigns" icon="droplet"> Push high-value leads straight into a specific ActiveCampaign List. This acts as the entry trigger for a 5-day educational welcome email sequence, ensuring your brand stays top-of-mind immediately after the conversion. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide ActiveCampaign makes API integration incredibly simple and secure. You only need a specific Base URL and a single API key. Follow these exact instructions to find them. <Steps> <Step title="Step 1: Log into ActiveCampaign"> Open your web browser and navigate to your ActiveCampaign login URL. Enter your email and password to log in. *Note: You must have Administrator privileges to access developer settings.* </Step> <Step title="Step 2: Locate the Settings Gear"> Once you are logged into the main dashboard, look at the absolute **bottom left corner** of your screen. You will see a **gear icon** (Settings). Click it to open the administrative menu. </Step> <Step title="Step 3: Navigate to Developer Settings"> In the left-hand sidebar menu of the Settings page, scroll down until you see the section labeled **Developer**. Click exactly on this link. </Step> <Step title="Step 4: Locate the API Access Box"> You are now on the Developer settings page. At the very top, you will see a prominent box labeled **API Access**. Inside this box are the two pieces of information you need: the **URL** and the **Key**. </Step> <Step title="Step 5: Copy the URL"> Highlight the entire string in the **URL** field (it will look something like `https://yourcompany.api-us1.com`). Right-click and select **Copy** (or press `Ctrl+C` / `Cmd+C`). *Do not copy any trailing slashes.* </Step> <Step title="Step 6: Create a Connection (recommended)"> Switch to Flex Forms → **Integrations** → **Connections**. Create an **ActiveCampaign** connection, paste the **API URL**, then continue with the key in the next steps. </Step> <Step title="Step 7: Copy the API Key"> Switch back to the ActiveCampaign tab. In that same "API Access" box, highlight the extremely long string of characters in the **Key** field. Right-click and select **Copy**. </Step> <Step title="Step 8: Save credentials and wire feeds"> Paste the key into the same Connection (or Catalog → ActiveCampaign for a single shared account). On each form hub **Integrations** tab, enable ActiveCampaign and pick the **Connection**. </Step> </Steps> *** ## Masterclass: Mapping Data Payloads ActiveCampaign handles standard fields easily, but true marketing power comes from mapping data to highly specific Custom Fields and Lists. By default, Flex Forms automatically syncs the primary `Email Block` to the Contact's email address. <Tabs> <Tab title="Standard Field Mapping"> Map additional fields one per line in your specific form's Integration settings. The format is always: `activecampaign_field=flex_forms_field` Standard fields include: * `firstName` * `lastName` * `phone` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} firstName=first_name_input lastName=last_name_input phone=mobile_phone_block %COMPANY_SIZE%=company_size_dropdown %INDUSTRY%=industry_selector ``` </CodeGroup> </Tab> </Tabs> ### How Custom Fields Work in ActiveCampaign When you map to a custom field in ActiveCampaign, you cannot just use the field's text name. ActiveCampaign strictly requires you to map to its internal **Numeric ID** (e.g., `12`). <Tree> <Tree.Folder name="Finding Custom Field IDs"> <Tree.File name="1. In ActiveCampaign, go to Settings > Manage Fields" /> <Tree.File name="2. Use your browser's Developer Tools (Network tab)" /> <Tree.File name="3. Or simply use Flex Forms' built-in Field Catalog dropdown!" /> </Tree.Folder> </Tree> <Callout type="info"> **The + Prefix Trick:** If you don't want to hunt down numeric IDs, Flex Forms offers a massive quality-of-life feature. If you prefix a text key with a plus sign (`+`), Flex Forms will tell ActiveCampaign to automatically create that custom text field if it doesn't exist. *Example:* `+CompanySize=size_dropdown` </Callout> *** ## Enterprise Features & Troubleshooting <AccordionGroup> <Accordion title="List Subscriptions (Double Opt-in)"> In the form's specific integration settings in the Flex Forms Studio, you can define a comma-separated list of `List IDs`. Any user who submits the form will be instantly subscribed to those lists. *Note: If your ActiveCampaign list is configured to require Double Opt-in, the user will be added in an 'Unconfirmed' state until they click the link in the email ActiveCampaign sends them.* </Accordion> <Accordion title="Dynamic Tagging Strategies"> You can define static tags to apply to every submission (e.g., `source: website_form`). However, for true enterprise automation, you should configure your Flex Forms Dropdown values to perfectly match your ActiveCampaign tags (e.g., set the Dropdown Value to `interest_b2b`). This allows for dynamic, conditional segmentation without building complex logic rules inside ActiveCampaign. </Accordion> <Accordion title="Duplicate Contact Management"> ActiveCampaign uses the email address as the universal primary key. If a user submits a Flex Form and they already exist in your ActiveCampaign database, Flex Forms will safely update their custom fields and append the new tags/lists to their profile without duplicating the contact record. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="text"> **API URL** Your account-specific ActiveCampaign API endpoint. You can find this by logging into ActiveCampaign, navigating to **Settings → Developer**, and copying the **URL** from the API access section. </ParamField> <ParamField type="password"> **API key** The master API key that grants Flex Forms permission to manage your contacts and lists. Also found in **Settings → Developer**. Treat this like a password. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Subscriber Placement <ParamField type="remote_select"> **ActiveCampaign list** The primary mailing list that the new contact will be subscribed to. Flex Forms automatically queries the ActiveCampaign API to load a live dropdown of all your available lists. </ParamField> <ParamField type="text"> **Tags** A comma-separated list of tags to instantly apply to the new contact (e.g., `lead, webinar-2024, highly-engaged`). You can use merge tags to dynamically apply tags based on form answers (e.g., `{{industry_dropdown}}`). </ParamField> #### Field Mapping <ParamField type="select"> **Email field** The primary email block to sync. Required for ActiveCampaign's deduplication and creation logic. </ParamField> <ParamField type="select"> **First name field** </ParamField> <ParamField type="select"> **Last name field** </ParamField> <ParamField type="select"> **Phone field** </ParamField> <ParamField type="select"> **Organization field** </ParamField> <ParamField type="textarea"> **Custom fields** The routing engine for mapping Flex Form answers into ActiveCampaign Custom Contact Fields. Unlike HubSpot, ActiveCampaign identifies custom fields using numeric IDs, not text names. You must provide one rule per line using the format: `activecampaign_field_id=flex_forms_block_name`. **Pro-tip:** If you prefix a key with `+` (e.g., `+FavoriteColor=color_input`), Flex Forms will automatically create that custom text field inside ActiveCampaign for you on the fly if it doesn't already exist. </ParamField> <ParamField type="remote_select"> **Available fields (reference)** A helper tool. Open this dropdown to view a live list of all your existing ActiveCampaign custom fields and their required numeric IDs, so you can easily construct your `custom_field_map`. </ParamField> #### Contact Processing & Overrides <ParamField type="select"> **Overwrite with empty values** Controls how Flex Forms handles blank form submissions when updating an *existing* contact. **Options:** * `1`: Yes — If a user leaves a form field blank, Flex Forms will wipe out the corresponding data in ActiveCampaign (destructive). * `0`: No — If a user leaves a form field blank, Flex Forms will preserve the existing data in ActiveCampaign for that field (safe). </ParamField> <ParamField type="textarea"> **Note** An optional block of text appended to the Contact's Activity Stream as a Note. Perfect for summarizing their inquiry. Supports merge tags (e.g., `Reason for contacting: {{reason}}`). </ParamField> #### Email Automation Triggers <ParamField type="remote_select"> **Double opt-in form** If you are strictly enforcing GDPR/CAN-SPAM, select an existing ActiveCampaign form here. Flex Forms will trigger ActiveCampaign to send the official double opt-in confirmation email associated with that specific ActiveCampaign form. </ParamField> <ParamField type="select"> **Instant responders** If enabled (`1`), ActiveCampaign will immediately send any auto-responder emails attached to the selected `list_id` the moment the contact is created. </ParamField> <ParamField type="select"> **Send last broadcast** If enabled (`1`), ActiveCampaign will automatically forward the very last broadcast campaign you sent to this list to the new contact as a welcome gesture. </ParamField> # Breeze Integration Source: https://flexforms.bjanczak.com/integrations/breeze A comprehensive guide to instantly converting form submissions into actionable Tasks and Projects inside Breeze PM. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API structures Projects, Lists, and Tasks, please read the [Official Breeze API Documentation](https://www.breeze.pm/api). </Banner> The **Breeze** integration turns your website forms into an automated project management engine. Instead of manually copying client intake data from emails, Flex Forms connects directly to the Breeze API to instantly generate structured Tasks in specific Lists on specific Projects the moment a form is submitted. ## Enterprise Business Use Cases <CardGroup> <Card title="Automated Client Intake" icon="clipboard-list"> When a new client completes a massive 50-question onboarding form, Flex Forms instantly generates a master Task containing all their answers and places it directly in the "Awaiting Review" list for your project managers in Breeze. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Breeze requires generating a highly secure **API Token**. Follow these exact instructions. <Steps> <Step title="Step 1: Log into Breeze"> Open your web browser and navigate to the Breeze login portal (`app.breeze.pm`). Enter your credentials to access the main dashboard. </Step> <Step title="Step 2: Access the Personal Settings Menu"> Once logged in, look at the absolute **top right corner** of your screen. Click on your profile picture (or your initials) to open the main account dropdown menu. </Step> <Step title="Step 3: Navigate to Personal Settings"> In the dropdown menu that appears, click exactly on the link labeled **Personal Settings**. </Step> <Step title="Step 4: Navigate to the API Section"> You are now viewing your personal profile settings. Look at the **left-hand sidebar menu**. Click exactly on the link labeled **API**. </Step> <Step title="Step 5: Copy the API Token"> On the API page, you will see a section prominently displaying your **API Token**. It is a long string of alphanumeric characters. Highlight the entire string, right-click, and select **Copy** (or press `Ctrl+C` / `Cmd+C`). Make absolutely sure you do not highlight any blank spaces before or after the token. </Step> <Step title="Step 6: Inject the Token into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Breeze. 2. Click inside the **API Token** input field. 3. Right-click and select **Paste** (or press `Ctrl+V` / `Cmd+V`) to inject the token. 4. Click the **Save Settings** button to finalize the secure connection. </Step> </Steps> *** ## Masterclass: Routing to Specific Projects Establishing the connection allows data to flow, but you must instruct Flex Forms exactly where to place the new Tasks within Breeze's architecture. <Callout type="info"> **Project ID Requirement:** You must provide the specific **Project ID** in the form's integration settings. **How to find it:** Open your specific Project board in Breeze. Look at the URL in your browser. It will look like `app.breeze.pm/projects/1234567/boards`. The numeric ID (`1234567`) is your Project ID. Copy that number. </Callout> ### Field Mapping Architecture Breeze is highly unstructured compared to a CRM. Every Task essentially has a Name and a Description. By default, Flex Forms intelligently compiles every single answer the user provided into a clean, HTML-formatted list and injects it directly into the **Task Description**. <Tabs> <Tab title="Task Name Mapping"> You can map a specific form field to act as the primary **Name** of the Breeze Task. The format is always: `name=flex_forms_block_name` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} name=subject_dropdown ``` </CodeGroup> </Tab> </Tabs> If you do not map the `name` field, Flex Forms will generate a generic task name (e.g., "New Form Submission - \[Date]"). *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 401 Unauthorized"> **The Problem:** The server logs show a `401 Unauthorized` error when attempting to create a Task. **The Solution:** This almost always means the API Token you pasted in Step 6 is incorrect, or contains a trailing space. Ensure you copied the entire token perfectly. If the user who generated the token is deleted from Breeze, the token will expire. </Accordion> <Accordion title="API Error: 404 Project Not Found"> **The Problem:** The server logs show a `404 Not Found` error regarding the Project. **The Solution:** The Project ID you pasted into the form settings is incorrect. Ensure you extracted the numeric `id` of the actual Project, NOT a specific Task ID. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **API token** From Breeze → Profile → API. Used as the Basic auth username (password is empty). </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. <ParamField type="remote_select"> **Project stage** Project › stage where the new card will be created. </ParamField> <ParamField type="text"> **Card title** Supports merge tags. </ParamField> <ParamField type="textarea"> **Card description** Optional. Leave blank to send all fields as key: value lines. Supports . </ParamField> <ParamField type="select"> **Due date field** Optional. Value should parse as a date. </ParamField> <ParamField type="text"> **Due in (days)** Optional fallback when the due date field is empty — days from today. </ParamField> <ParamField type="remote_checkboxes"> **Invitees** Breeze project users loaded from your workspace. Selected emails are invited to the card. </ParamField> # Brevo Source: https://flexforms.bjanczak.com/integrations/brevo Sync contacts to Brevo lists with double opt-in and attribute mapping. The Brevo integration (formerly Sendinblue) adds each respondent to a Brevo list, with full contact attribute mapping and GDPR-friendly double opt-in support. ## What it does * Creates or updates a contact on the list you choose, matched by email. * Maps first/last name and an SMS/phone field to Brevo's standard attributes, plus any extra attributes you define. * Guesses each extra attribute's type (date, boolean, number, or text) from its name, so values are sent in the format Brevo expects. * With **Double opt-in** enabled, new contacts (not already on the list) go through Brevo's confirmation flow using a template and redirect URL instead of being added directly. * Respects blacklisted contacts by default — you can allow resubscription per feed. ## Steps to enable <Steps> <Step title="Get your Brevo API key"> In Brevo, go to **SMTP & API → API Keys** and copy a key. </Step> <Step title="Enable Brevo in Integrations"> Open **Integrations** in the Flex Forms left rail → **Brevo** → paste the API key → Save. </Step> <Step title="Attach a feed to your form"> Open the form → hub tab **Integrations** → add a Brevo feed → pick the list. </Step> <Step title="Map fields and attributes"> Set the email field, optional first/last name and SMS fields, and any extra attributes using `BREVO_ATTRIBUTE=field_name` (attribute names are matched from Contacts → Attributes in your account). </Step> <Step title="Configure double opt-in (optional)"> Turn on **Double opt-in**, pick a template containing the `{{ doubleoptin }}` merge tag, and set a redirect URL for after confirmation. </Step> <Step title="Test it"> Submit the form and confirm the contact appears on the list (or receives a confirmation email, if double opt-in is on). </Step> </Steps> <CodeGroup> ```text Extra attributes theme={} JOB_TITLE=role COMPANY=company ``` </CodeGroup> ## Practical tips <Tip> Only DOI templates containing the `{{ doubleoptin }}` tag show up in the **DOI email template** picker — create or edit a Brevo template to include that tag if it's missing from the list. </Tip> <Tip> Attribute type is guessed from the name: keys containing `DATE` become dates, `BOOL`/`IS_`/`HAS_` become booleans, and `NUMBER`/`COUNT`/`AMOUNT` become numbers — name your Brevo attributes accordingly for automatic type handling. </Tip> <Warning> Double opt-in only applies to contacts not already on the target list — an existing member of the list is updated directly, skipping the confirmation step, to avoid re-confirming existing subscribers. </Warning> ## Example <Examples> <Example title="GDPR-compliant newsletter signup"> Enable double opt-in with a confirmation template and `https://example.com/thanks` as the redirect — new subscribers must click the confirmation email before joining the list. </Example> </Examples> <AccordionGroup> <Accordion title="Connection test fails"> Confirm the API key was copied from SMTP & API → API Keys and hasn't been deleted or regenerated in Brevo since. </Accordion> <Accordion title="Double opt-in fails immediately"> Both a DOI template and a redirect URL are required when double opt-in is enabled — the dispatch fails outright if either is missing. </Accordion> <Accordion title="Blacklisted contact never gets re-added"> This is expected when **Allow resubscription of blacklisted emails** is off for the feed. Turn it on if you want previously blacklisted contacts to be added again. </Accordion> </AccordionGroup> <Panel> Related: [Mailchimp](/integrations/mailchimp) · [GetResponse](/integrations/getresponse) · [Conditional feeds](/integrations/conditional-feeds) </Panel> # Campaign Monitor Source: https://flexforms.bjanczak.com/integrations/campaign-monitor Automatically sync respondents to your Campaign Monitor lists with advanced resubscribe and consent-to-track controls. The **Campaign Monitor** integration allows you to instantly route form respondents directly into your Campaign Monitor subscriber lists. It features deep custom field mapping, robust consent tracking options, and granular control over autoresponder re-triggers. ## Business Use Cases <CardGroup> <Card title="Marketing Automation" icon="robot"> Inject leads into an automated drip campaign the moment they submit a form. </Card> <Card title="GDPR Compliance" icon="shield-check"> Ensure strict data privacy by explicitly declaring the respondent's `consent_to_track` status upon insertion. </Card> <Card title="Win-back Campaigns" icon="rotate-left"> Use the `resubscribe` feature to automatically revive dead leads who fill out a new form after previously unsubscribing. </Card> </CardGroup> *** ## Step 1: Global Connection Before you can push data to Campaign Monitor, you must authorize Flex Forms to communicate with your account. <Steps> <Step title="Locate your API Key"> Log into your Campaign Monitor dashboard. Navigate to **Account Settings → API keys**. Generate and copy your **API Key**. </Step> <Step title="Establish the Connection"> In your Flex Forms dashboard, open **Integrations** in the left rail (next to Global Settings). Locate the **Campaign Monitor** card and enter your API Key. </Step> <Step title="Test and Verify"> Click **Save & Verify**. Flex Forms will ping the `https://api.createsend.com/api/v3.3` endpoint to ensure the credentials are valid and that your client lists can be fetched. </Step> </Steps> *** ## Step 2: Form-Level Configuration Once the global connection is established, you must activate the integration on a per-form basis. Open your specific form in the Studio and navigate to the **Integrations** tab. ### The Masterclass: Data Mapping & Subscriber Controls When mapping data from Flex Forms to Campaign Monitor, the system fetches all of your lists across all of your clients via live `remote_select`. <ParamField type="remote_select"> **Target Contact List** Loaded live from your Campaign Monitor account. All new submissions will be added to this specific list. </ParamField> <ParamField type="select"> **Email Field** Select the block on your form that collects the respondent's primary email. </ParamField> <ParamField type="select"> **Name Field** Optional. Lists only **Name** blocks on this form. Leave empty to use the form’s Name field automatically. </ParamField> <ParamField type="textarea"> **Custom Field Mapping** Map your form block answers to Campaign Monitor Custom Fields. **Syntax:** `CampaignMonitorFieldKey=flex_forms_block_name` (One per line). **Example Mapping:** ```text theme={} phone_number=contact_phone company_name=company_input ``` </ParamField> ### Advanced Subscriber States Campaign Monitor allows for very strict control over how a subscriber enters (or re-enters) a list. <ParamField type="toggle"> **Resubscribe previously unsubscribed contacts** When enabled, if a respondent previously clicked "Unsubscribe" on one of your emails, but then voluntarily fills out this Flex Form, they will be forcibly moved from the 'Unsubscribed' state back to the 'Active' state on the list. </ParamField> <ParamField type="toggle"> **Restart subscription-based autoresponders** If this contact already existed on the list, enabling this toggle will force Campaign Monitor to restart any welcome sequences or autoresponders attached to the list for this specific user. </ParamField> <ParamField type="select"> **Consent to Track (GDPR)** Controls email tracking behavior for this specific respondent. * `Yes`: Consent is granted. Campaign Monitor tracks opens and clicks. * `No`: Consent is denied. Campaign Monitor will not track engagement. * `Unchanged`: Only use this if updating an existing subscriber whose consent status shouldn't be overridden. </ParamField> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Campaign Monitor API Key** Your master API key. Generate this in your Campaign Monitor account under **Account Settings → API keys**. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Subscriber Placement <ParamField type="remote_select"> **Target Contact List** Loaded live from your Campaign Monitor account. All new submissions will be added to this specific list. </ParamField> <ParamField type="select"> **Email Field** Select the block on your form that collects the respondent's primary email. </ParamField> <ParamField type="select"> **Name Field** Optional. Lists only **Name** blocks on this form. Leave empty to use the form’s Name field automatically. </ParamField> #### Field Mapping <ParamField type="textarea"> **Custom Field Mapping** Map your form block answers to Campaign Monitor Custom Fields. **Syntax:** `CampaignMonitorFieldKey=flex_forms_block_name` (One per line). </ParamField> <ParamField type="remote_select"> **Available custom fields (reference)** A read-only helper. Select a list to view its custom fields and their exact keys, so you can easily copy/paste them into the `custom_field_map` above. </ParamField> #### Advanced Options <ParamField type="toggle"> **Resubscribe previously unsubscribed contacts** When enabled, if a respondent previously clicked "Unsubscribe" on one of your emails, but then voluntarily fills out this Flex Form, they will be forcefully moved back to the 'Active' state. </ParamField> <ParamField type="toggle"> **Restart subscription-based autoresponders** If this contact already existed on the list, enabling this toggle will force Campaign Monitor to restart any welcome sequences. </ParamField> <ParamField type="select"> **Consent to Track (GDPR)** Controls email tracking behavior for this specific respondent (`Yes`, `No`, or `Unchanged`). </ParamField> # Capsule CRM Integration Source: https://flexforms.bjanczak.com/integrations/capsule-crm A comprehensive, enterprise-grade guide to instantly syncing Flex Forms submissions to Capsule CRM as People, Organizations, and Opportunities. <Banner type="info"> 📚 **Developer Reference:** To deeply understand the data payloads and available object relationships, please read the [Official Capsule REST API Documentation](https://developer.capsulecrm.com/v2/overview/reading-from-the-api). </Banner> The **Capsule CRM** integration is an enterprise-grade pipeline designed to seamlessly route form submissions into your sales ecosystem. Instead of manually downloading CSVs and importing them into your CRM, this integration allows Flex Forms to automatically generate structured `Person` records, link them to `Organizations`, and even initiate sales `Opportunities` the exact second a user clicks submit. ## Enterprise Business Use Cases <CardGroup> <Card title="Automated Sales Pipeline Entry" icon="arrow-right-to-bracket"> When a high-value prospect fills out a "Request a Demo" form on your website, Flex Forms instantly creates a new "Person" record in Capsule CRM. It simultaneously attaches an "Opportunity" to their profile, automatically placing them into your SDR's active pipeline for immediate follow-up. </Card> <Card title="Client Onboarding & Intake" icon="handshake"> During a complex B2B onboarding process, you can collect vast amounts of client intake data (e.g., company size, industry, budget). Flex Forms intelligently maps this data directly to your predefined Custom Fields on the Person or Organization record in Capsule. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide To establish a secure, authenticated connection between Flex Forms and your Capsule CRM environment, you must generate a **Personal Access Token (PAT)**. Follow these exact, step-by-step instructions carefully to ensure a successful integration. <Steps> <Step title="Step 1: Log into your Capsule Dashboard"> Open your web browser and navigate to your specific Capsule CRM login URL (this usually looks like `https://[your-company].capsulecrm.com`). Enter your administrator email and password to log in. *Note: You must have administrator or developer privileges in Capsule to generate API tokens.* </Step> <Step title="Step 2: Locate the Profile Menu"> Once you are logged into the main dashboard, look at the absolute **top right corner** of your screen. You will see your name and your profile picture (or a placeholder avatar). Click on your profile picture to open the dropdown menu. </Step> <Step title="Step 3: Access 'My Preferences'"> In the dropdown menu that appears, locate and click on the option labeled **My Preferences**. This will take you to your personal account settings page. </Step> <Step title="Step 4: Navigate to the API Tokens Section"> On the "My Preferences" page, look at the **left-hand sidebar menu**. Scroll down the list until you find the section related to development and integrations. Click exactly on the link labeled **API Personal Access Tokens**. </Step> <Step title="Step 5: Initiate Token Generation"> You are now on the API Tokens management page. In the top right area of the main content window, click the prominent button labeled **Add New Token**. This will open a configuration modal. </Step> <Step title="Step 6: Configure the Token Parameters"> In the modal, you must provide a **Description**. Type exactly: `Flex Forms Production Integration`. This ensures that if you review your security logs months from now, you know exactly what this token is used for. *Optional:* You will see a field for "Allowed IPs". Unless your Flex Forms server is hosted on a strict, dedicated static IP address, leave this field completely blank. </Step> <Step title="Step 7: Generate and Secure the Token"> Click the **Generate Token** button at the bottom of the modal. <Callout type="critical"> **CRITICAL WARNING:** Capsule will now display a long string of alphanumeric characters on your screen. **You must copy this string immediately.** Capsule will *never* show you this exact token again for security reasons. If you lose it, you must revoke it and start over at Step 5. </Callout> Highlight the entire string, right-click, and select **Copy** (or press `Ctrl+C` / `Cmd+C`). </Step> <Step title="Step 8: Inject the Token into Flex Forms"> Leave Capsule open and switch to your Flex Forms administrative dashboard in a new tab. 1. Open **Integrations** in the Flex Forms left rail (separate from Global Settings). 2. Find the **Capsule CRM** card. 3. Paste the token into the API key field. 4. Save to finalize the connection. </Step> </Steps> *** ## Masterclass: Mapping Data Payloads Establishing the connection is only half the battle. Now, you must instruct Flex Forms on exactly how to translate your form fields into Capsule CRM's specific database architecture. Capsule CRM segregates standard, built-in fields (like first name, last name, and job title) from Custom Fields that you define yourself. <Tabs> <Tab title="Standard Field Mapping"> Standard fields must be mapped using Capsule's exact internal JSON keys. You define these mappings on the form hub **Integrations** tab. The format is always: `capsule_internal_key=flex_forms_block_name` Here are the most common standard Capsule keys you will use: * `firstName` (The person's first name) * `lastName` (The person's last name) * `jobTitle` (Their role at the company) * `organizationName` (The company they work for) * `about` (A long text description or biography) </Tab> <Tab title="Exact Mapping Example"> If you have a Short Text block named `first_name_input` and a Long Text block named `user_biography`, your mapping configuration would look exactly like this: <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} firstName=first_name_input lastName=last_name_input jobTitle=job_title_dropdown about=user_biography ``` </CodeGroup> </Tab> </Tabs> ### How Custom Fields Work in Capsule If you map a key that is *not* a standard Capsule field (for example, if you map `industry_type=industry_dropdown`), Flex Forms intelligently recognizes this. Instead of throwing an error, Flex Forms will automatically package that data and attempt to save it as a **Custom Field** attached to the newly created Person record in Capsule. <Tree> <Tree.Folder name="Data Routing Architecture"> <Tree.File name="Match: 'firstName' -> Saved to Standard Schema" /> <Tree.File name="Match: 'lastName' -> Saved to Standard Schema" /> <Tree.File name="No Match: 'industry_type' -> Routed to Custom Fields Array" /> </Tree.Folder> </Tree> <Callout type="warning"> **The Custom Field Trap:** While Flex Forms will route unknown keys to the Custom Fields array, **the Custom Field must already exist in Capsule CRM**. If you try to send `industry_type`, but you haven't manually created a Custom Field named exactly `industry_type` in your Capsule settings, the Capsule API will reject the entire payload and the integration will fail. Always build your Capsule Custom Fields *before* you map them in Flex Forms. </Callout> *** ## Troubleshooting & Enterprise FAQs Even with a perfect setup, enterprise environments can experience edge cases. Here is how to diagnose and resolve them. <AccordionGroup> <Accordion title="API Error: 403 Forbidden"> **The Problem:** The form submission failed, and the server logs show a `403 Forbidden` error returned by Capsule. **The Solution:** This almost always means your Personal Access Token is invalid. This can happen for three reasons: 1. The token was accidentally deleted or revoked in the Capsule dashboard. 2. The employee who generated the token left the company, and their Capsule user account was disabled. 3. The token has expired. To fix this, you must log in with an active Administrator account and repeat Steps 4-8 in the setup guide above to generate and apply a brand new token. </Accordion> <Accordion title="Duplicate Contact Management"> **The Problem:** You are worried that if the same person fills out the form twice, it will create two messy duplicate records in Capsule. **The Solution:** You don't need to worry. Flex Forms handles this natively. When a submission is processed, Flex Forms uses the email address to perform a pre-flight search via the Capsule API. If it finds an existing Person with that exact email address, it switches from a `POST` (create) request to a `PUT` (update) request, safely appending the new data to their existing profile without creating a duplicate. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Personal access token** Capsule → My Preferences → API Authentication Tokens. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. <ParamField type="select"> **Create person** **Options:** * `1`: Yes * `0`: No </ParamField> <ParamField type="select"> **Create case** **Options:** * `1`: Yes * `0`: No </ParamField> <ParamField type="select"> **Create opportunity** **Options:** * `1`: Yes * `0`: No </ParamField> <ParamField type="select"> **Create task** **Options:** * `1`: Yes * `0`: No </ParamField> <ParamField type="select"> **Email field** </ParamField> <ParamField type="select"> **First name field** </ParamField> <ParamField type="select"> **Last name field** </ParamField> <ParamField type="textarea"> **Person about** Supports merge tags. </ParamField> <ParamField type="select"> **Job title field** </ParamField> <ParamField type="select"> **Organization field** </ParamField> <ParamField type="select"> **Phone field (legacy Work)** Legacy single Work phone. Prefer Contact details map below for typed emails/phones/addresses/websites. </ParamField> <ParamField type="typed_field_map"> **Contact details** Left labels are fixed Capsule contact types. Right side picks your form field by its current name — rename the field anytime and remapping stays valid as long as you pick it here again if needed. </ParamField> <ParamField type="select"> **Update existing person by email** **Options:** * `1`: Yes * `0`: No </ParamField> <ParamField type="select"> **Update person mode** **Options:** * `replace`: Replace contact details * `append`: Append contact details </ParamField> <ParamField type="text"> **Case name** Supports merge tags. </ParamField> <ParamField type="textarea"> **Case description** Supports merge tags. </ParamField> <ParamField type="select"> **Case status** **Options:** * `OPEN`: Open * `CLOSED`: Closed </ParamField> <ParamField type="remote_select"> **Case owner** </ParamField> <ParamField type="text"> **Opportunity name** Supports merge tags. </ParamField> <ParamField type="textarea"> **Opportunity description** Supports merge tags. </ParamField> <ParamField type="remote_select"> **Opportunity milestone** </ParamField> <ParamField type="remote_select"> **Opportunity owner** </ParamField> <ParamField type="text"> **Task description** Supports merge tags. </ParamField> <ParamField type="textarea"> **Task detail** Supports merge tags. </ParamField> <ParamField type="text"> **Task due in (days)** </ParamField> <ParamField type="select"> **Task status** **Options:** * `OPEN`: Open * `COMPLETED`: Completed </ParamField> <ParamField type="remote_select"> **Task category** </ParamField> <ParamField type="remote_select"> **Task owner** </ParamField> <ParamField type="select"> **Assign task to** **Options:** * `none`: None * `person`: Created person * `case`: Created case * `opportunity`: Created opportunity </ParamField> # Conditional Integrations Source: https://flexforms.bjanczak.com/integrations/conditional-feeds A comprehensive, enterprise-grade guide to triggering API integrations based on dynamic form logic. The **Conditional Integrations** engine represents the absolute pinnacle of Flex Forms routing capabilities. Instead of blindly firing every single form submission to the same CRM or API, this feature allows you to build highly complex, conditional `if/then` logic gates that determine exactly which integrations execute based on how the user answered the form. ## Enterprise Business Use Cases <CardGroup> <Card title="Multi-CRM Routing" icon="diagram-project"> If a user selects "Enterprise ($100k+)" in a budget dropdown, trigger the Salesforce integration to alert your senior sales team. If they select "Small Business ($5k)", trigger the ActiveCampaign integration to place them in an automated email drip campaign instead. </Card> <Card title="Departmental Notifications" icon="building"> If a user selects "Report a Bug", trigger a Slack Webhook to the `#engineering` channel. If they select "Billing Issue", trigger a Help Scout integration to create a ticket for the finance team. </Card> </CardGroup> *** ## Ultra-Detailed Setup Guide Conditional Integrations are configured at the *Form Level* directly within the Flex Forms Studio. Follow these exact instructions to construct a conditional logic gate. <Steps> <Step title="Step 1: Open the Flex Forms Studio"> Navigate to your administrative dashboard and open the specific form you wish to configure inside the drag-and-drop Studio. </Step> <Step title="Step 2: Access the Integrations Panel"> Open the form hub and select the **Integrations** tab (alongside Insights, Submissions, and Share). </Step> <Step title="Step 3: Enable an Integration"> Locate the specific integration you want to conditionally trigger (e.g., Slack). Toggle the main switch to **On** and fill out the required credentials (e.g., Webhook URL). </Step> <Step title="Step 4: Locate the Logic Gate"> Scroll to the absolute bottom of that specific integration's settings panel. You will see a highly advanced section labeled **Conditional Logic**. </Step> <Step title="Step 5: Activate Conditional Logic"> Toggle the switch labeled **Enable Conditional Logic** to the **On** position. A complex rule-builder interface will instantly appear. </Step> <Step title="Step 6: Construct the Rule"> You must now build the `if/then` statement. 1. **Field:** Select the specific form block you want to evaluate (e.g., `Department Dropdown`). 2. **Operator:** Select how you want to evaluate it (e.g., `Equals`, `Not Equals`, `Contains`, `Is Empty`). 3. **Value:** Type the exact value that must be met (e.g., `Support`). </Step> <Step title="Step 7: Add Compound Logic (Optional)"> If your enterprise requires strict logic, click the **Add Rule** button to create an `AND` / `OR` condition. For example: Trigger this integration IF Department `Equals` Support AND Priority `Equals` Urgent. </Step> <Step title="Step 8: Save the Form"> Click the prominent **Save** button in the top right corner of the Studio. The integration will now ONLY execute when that exact logical condition is met during a submission. </Step> </Steps> *** ## Masterclass: The Validation Architecture <Tree> <Tree.Folder name="How the Logic Engine Works Under the Hood"> <Tree.File name="1. The user submits the form." /> <Tree.File name="2. Flex Forms safely records the data to the internal database." /> <Tree.File name="3. The Integration Engine wakes up and looks at the Salesforce Integration." /> <Tree.File name="4. It sees a Logic Gate: IF 'budget' > 50000." /> <Tree.File name="5. It evaluates the user's payload. The user submitted 'budget' = 10000." /> <Tree.File name="6. The evaluation returns FALSE." /> <Tree.File name="7. The Salesforce Integration is silently aborted." /> <Tree.File name="8. The Engine moves to the Mailchimp Integration, which has no Logic Gate, and executes it normally." /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="The Logic is Evaluating Incorrectly"> **The Problem:** The integration is firing when it shouldn't, or not firing when it should. **The Solution:** This is almost always caused by a mismatch in the "Value" you typed in Step 6. If your Dropdown block has an option with a Label of "High Priority" but a hidden Value of `priority_high`, you MUST use the hidden value (`priority_high`) in your logic rule. The engine evaluates raw data values, not human-readable labels. </Accordion> <Accordion title="Conflicting Integrations"> **The Problem:** Can I trigger HubSpot and Salesforce at the same time using different logic? **The Solution:** Yes, absolutely. The Flex Forms Integration Engine evaluates every single integration independently. You can construct entirely separate, complex logical rules for HubSpot, Salesforce, Slack, and Zapier on the exact same form. They will not interfere with each other. </Accordion> </AccordionGroup> # Kit (ConvertKit) Source: https://flexforms.bjanczak.com/integrations/convertkit Automatically sync respondents to your Kit (formerly ConvertKit) forms, sequences, and tags with dynamic mapping. The **Kit (formerly ConvertKit)** integration allows you to instantly route form respondents directly into your Kit ecosystem. It goes far beyond simple list sync by allowing you to dynamically assign Tags, enroll users in Sequences (Courses), and map deep custom demographic fields. ## Business Use Cases <CardGroup> <Card title="Creator Newsletters" icon="envelope"> Automatically push new blog readers straight into your main Kit Form. </Card> <Card title="Drip Courses" icon="graduation-cap"> Instantly enroll respondents into a specific Kit Sequence when they sign up for a webinar. </Card> <Card title="Dynamic Tagging" icon="tags"> Apply specific tags (e.g., "Enterprise Lead" vs "SMB Lead") based on the exact answers they provide in Flex Forms. </Card> </CardGroup> *** ## Step 1: Global Connection Before you can push data to Kit, you must authorize Flex Forms to communicate with your account. <Steps> <Step title="Locate your Kit v4 API Key"> Log into your Kit dashboard. Navigate to **Settings → Developer**. Locate and copy your **v4 API Key**. </Step> <Step title="Establish the Connection"> In your Flex Forms dashboard, open **Integrations** in the left rail (next to Global Settings). Locate the **Kit (ConvertKit)** card and enter your API Key. </Step> <Step title="Test and Verify"> Click **Save & Verify**. Flex Forms will ping the `https://api.kit.com/v4` endpoint to ensure the credentials are valid and that your forms/sequences can be fetched. </Step> </Steps> *** ## Step 2: Form-Level Configuration Once the global connection is established, you must activate the integration on a per-form basis. Open your specific form in the Studio and navigate to the **Integrations** tab. ### The Masterclass: Data & Tag Mapping Unlike older CRMs that use "Lists", Kit is primarily organized around Forms, Sequences, and Tags. Flex Forms fetches all of your Kit assets live via `remote_select` so you never have to hunt for internal IDs. <ParamField type="remote_select"> **Target Kit Form** Loaded live from your Kit account. Contacts must be subscribed to a Form to enter your Kit ecosystem. </ParamField> <ParamField type="remote_select"> **Kit Sequence (Optional)** Optionally add the subscriber directly to a Kit sequence (email course) upon submission. </ParamField> <ParamField type="remote_select"> **Primary Tag (Optional)** Select a primary tag to be applied to every respondent who fills out this form. </ParamField> <ParamField type="string"> **Extra Tag IDs** Comma-separated Kit tag IDs to apply in addition to the primary tag (e.g., `12345, 67890`). </ParamField> <ParamField type="select"> **Dynamic Tags Field** Select a block from your form (like a Checkbox Group). If the respondent selects options that exactly match the names of Tags in your Kit account, the engine will automatically apply those tags to their profile. </ParamField> <ParamField type="textarea"> **Custom Field Mapping** Map your form block answers to Kit Custom Fields. **Syntax:** `KitCustomFieldKey=flex_forms_block_name` (One per line). **Example Mapping:** ```text theme={} company_size=company_size_dropdown job_title=job_title_input ``` </ParamField> *** ## Technical Resources & Troubleshooting <AccordionGroup> <Accordion title="Does this update existing Kit subscribers?"> Yes. If a respondent submits the form and their email address already exists in your Kit account, the API performs an upsert. It will append any new Tags and update their Custom Fields without duplicating the contact. </Accordion> <Accordion title="Where do I find my Kit Custom Field Keys?"> Inside your Kit account, navigate to a Subscriber profile to view your Custom Fields. The exact lowercase key of that field must be placed on the left side of the `=` sign in the mapping text area. </Accordion> <Accordion title="Official Documentation Reference"> For advanced architectural questions regarding the v4 payload, refer to the official [Kit v4 API Documentation](https://developers.kit.com/v4). </Accordion> </AccordionGroup> *** ## Configuration Reference ### Global Settings <ParamField type="password"> **ConvertKit API Secret** The legacy master V3 API key. (Often labeled API Secret in ConvertKit). </ParamField> <ParamField type="password"> **ConvertKit Public API Key** The public API key used for some V3 endpoint requests. </ParamField> ### Form-Level Settings #### Subscriber Data <ParamField type="select"> **Email Field** The primary email field for the subscriber. </ParamField> <ParamField type="select"> **Name Field** The subscriber's first name field. </ParamField> #### Field Mapping <ParamField type="remote_select"> **Available custom fields (reference)** A read-only helper to fetch live custom fields from ConvertKit for mapping reference. </ParamField> #### Advanced State <ParamField type="select"> **Subscriber State** Allows you to bypass Double Opt-in by explicitly setting the creation state (e.g., `active`, `inactive`). </ParamField> # EmailOctopus Source: https://flexforms.bjanczak.com/integrations/emailoctopus Automatically sync respondents to your EmailOctopus lists with custom field mapping and double opt-in controls. The EmailOctopus integration allows you to instantly route form respondents directly into your EmailOctopus subscriber lists. It supports deep custom field mapping (including numbers and dates) and gives you explicit control over double opt-in behavior. ## Business Use Cases <CardGroup> <Card title="Newsletter Signups" icon="envelope"> Automatically push new blog readers straight into your weekly digest list. </Card> <Card title="Lead Magnets" icon="magnet"> Trigger automated EmailOctopus drip campaigns the moment someone downloads your PDF. </Card> <Card title="Event Registration" icon="calendar-check"> Build a dedicated segment of webinar attendees with perfectly mapped custom demographic fields. </Card> </CardGroup> *** ## Step 1: Global Connection Before you can push data to EmailOctopus, you must authorize Flex Forms to communicate with your account. <Steps> <Step title="Locate your API Key"> Log into your EmailOctopus dashboard. Navigate to **Developer → API keys**. Generate a new **API v2** key (do not use legacy keys). </Step> <Step title="Establish the Connection"> In your Flex Forms dashboard, open **Integrations** in the left rail (next to Global Settings). Locate the **EmailOctopus** card and enter your API Key. </Step> <Step title="Test and Verify"> Click **Save & Verify**. Flex Forms will ping the `https://api.emailoctopus.com` endpoint to ensure the credentials are valid. </Step> </Steps> *** ## Step 2: Form-Level Configuration Once the global connection is established, you must activate the integration on a per-form basis. Open your specific form in the Studio and navigate to the **Integrations** tab. ### The Masterclass: Data Mapping When mapping data from Flex Forms to EmailOctopus, the engine uses the internal `Name` of your form blocks. You do not need to manually hunt for List IDs; the system fetches your lists via live `remote_select` directly from the EmailOctopus API. <ParamField type="remote_select"> **Target List** Loaded live from your EmailOctopus account. All new submissions will be added to this specific list. </ParamField> <ParamField type="select"> **Opt-In Status** Control the subscription state of the new contact. * `SUBSCRIBED`: The contact is added immediately and can receive campaigns. * `PENDING`: Triggers the EmailOctopus double opt-in flow. *Note: When the list uses double opt-in, EmailOctopus may still send a confirmation email regardless of this setting.* </ParamField> <ParamField type="textarea"> **Custom Field Mapping** Map your form block answers to EmailOctopus Custom Fields. **Syntax:** `EmailOctopusFieldTag=form_field_name` (One per line). *Crucial Data Casting:* The Flex Forms engine automatically casts Number fields to integers and Date fields to `Y-m-d` format to ensure they are accepted cleanly by the EmailOctopus API. **Example Mapping:** ```text theme={} FirstName=first_name LastName=last_name Age=age_number Company=company_name ``` </ParamField> *** ## Technical Resources & Troubleshooting If you encounter issues where contacts are not appearing in your EmailOctopus lists, the issue is almost always a mismatch in Custom Field mapping syntax. <AccordionGroup> <Accordion title="Where do I find my EmailOctopus Field Tags?"> Inside your EmailOctopus list settings, view your Custom Fields. The "Tag" column (e.g., `FirstName`, `CompanySize`) is the exact string you must place on the left side of the `=` sign in the mapping text area. </Accordion> <Accordion title="Does this update existing subscribers?"> Yes. If a respondent submits the form and their email address already exists in the selected EmailOctopus list, the engine will perform an `update` operation, refreshing their custom fields with the newest data. </Accordion> <Accordion title="Official Documentation Reference"> For advanced architectural questions, refer to the official [EmailOctopus API v2 Documentation](https://emailoctopus.com/api-documentation/v2). </Accordion> </AccordionGroup> *** ## Configuration Reference ### Global Settings <ParamField type="password"> **EmailOctopus API Key** Your master API key. Generate this in your EmailOctopus account settings. </ParamField> ### Form-Level Settings #### Subscriber Data <ParamField type="select"> **Email Field** The primary email field for the subscriber. </ParamField> <ParamField type="select"> **First Name Field** </ParamField> <ParamField type="select"> **Last Name Field** </ParamField> #### Field Mapping <ParamField type="textarea"> **Custom Fields** Map your form blocks to EmailOctopus Custom Field Tags. **Syntax:** `EmailOctopusTag=flex_forms_block_name` </ParamField> <ParamField type="remote_select"> **Available fields (reference)** A read-only helper to fetch live custom fields from EmailOctopus for mapping reference. </ParamField> # Emma Source: https://flexforms.bjanczak.com/integrations/emma Automatically sync respondents to your Emma audience groups with dynamic custom field creation and double opt-in controls. The **Emma** integration allows you to instantly route form respondents directly into your Emma audience groups. It features an intelligent custom field mapping engine that can autonomously generate new fields inside your Emma account on the fly if they don't already exist. ## Business Use Cases <CardGroup> <Card title="Audience Growth" icon="users"> Automatically push new blog readers straight into your primary Emma subscriber group. </Card> <Card title="Compliance" icon="shield-check"> Enforce strict double opt-in requirements for new subscribers to maintain pristine deliverability rates. </Card> <Card title="Dynamic Enrichment" icon="database"> Map complex demographic data (like company size or industry) and instruct Flex Forms to automatically build those fields in Emma if your marketing team forgot to create them. </Card> </CardGroup> *** ## Step 1: Global Connection Before you can push data to Emma, you must authorize Flex Forms to communicate with your account. <Steps> <Step title="Locate your Credentials"> Log into your Emma dashboard. Navigate to **Account Settings**. You will need to locate three distinct pieces of information: Your **Account ID**, your **Public API Key**, and your **Private API Key**. </Step> <Step title="Establish the Connection"> In your Flex Forms dashboard, open **Integrations** in the left rail (next to Global Settings). Locate the **Emma** card and securely enter all three credentials. </Step> <Step title="Test and Verify"> Click **Save & Verify**. Flex Forms will ping the `https://api.myemma.com/` endpoint to ensure the credentials are valid and that your groups can be fetched. </Step> </Steps> *** ## Step 2: Form-Level Configuration Once the global connection is established, you must activate the integration on a per-form basis. Open your specific form in the Studio and navigate to the **Integrations** tab. ### The Masterclass: Data Mapping When mapping data from Flex Forms to Emma, the system fetches your groups via live `remote_select` directly from the API. <ParamField type="remote_select"> **Target Emma Group (Optional)** Loaded live from your Emma account. Submissions will be added to this specific group. If left blank, the subscriber is added to your audience but not assigned to a specific group. </ParamField> <ParamField type="select"> **Double Opt-In** Control the subscription state of the new contact. * `No`: Uses the `/members/add` endpoint. The contact is added immediately. * `Yes`: Uses the `/members/signup` endpoint. Triggers Emma's automated confirmation email before they are fully subscribed. </ParamField> <ParamField type="textarea"> **Custom Field Mapping** Map your form block answers to Emma Custom Fields using their shortcut names. **Syntax:** `emma_shortcut_name=form_field_name` (One per line). **The "+" Operator:** If you prefix an Emma shortcut name with a `+`, the Flex Forms engine will automatically create that field in your Emma account as a Text field if it doesn't already exist. **Example Mapping:** ```text theme={} company=company_dropdown +Industry=industry_input ``` </ParamField> <ParamField type="textarea"> **Auto-Create Custom Fields** A list of field shortcut names (one per line). During the sync, if the engine detects that any of these fields are missing from your Emma account, it will autonomously generate them as Text fields before attempting to insert the data. </ParamField> *** ## Technical Resources & Troubleshooting <AccordionGroup> <Accordion title="Where do I find my Emma Shortcut Names?"> The Flex Forms inspector provides a helper dropdown labeled **Available fields (reference)**. This will populate with all valid field shortcut names currently existing in your Emma account. Copy those keys into the `custom_field_map` textarea. </Accordion> <Accordion title="Does this update existing subscribers?"> Yes. If a respondent submits the form and their email address already exists, the engine will perform an `update` operation, refreshing their custom fields and adding them to the new group without creating duplicates. </Accordion> <Accordion title="Why is my sync being rejected?"> If the sync fails, check your Submissions Inbox. If the error says "Emma member is opted out", it means the user previously unsubscribed from your emails, and Emma's API strictly prohibits re-adding them via API. They must re-subscribe manually through a native Emma form. </Accordion> <Accordion title="Official Documentation Reference"> For advanced architectural questions, refer to the official [Emma API Documentation](https://api.myemma.com/). </Accordion> </AccordionGroup> *** ## Configuration Reference ### Global Settings <ParamField type="text"> **Account ID** Your Emma Account ID. </ParamField> <ParamField type="password"> **Public API Key** Your Emma Public API Key. </ParamField> <ParamField type="password"> **Private API Key** Your Emma Private API Key. </ParamField> ### Form-Level Settings #### Subscriber Data <ParamField type="remote_select"> **Emma Group** Optional. Loaded live from your Emma account. </ParamField> <ParamField type="select"> **Email Field** Select the block that collects the respondent's primary email. </ParamField> #### Field Mapping <ParamField type="textarea"> **Custom fields** One per line: `emma_shortcut_name=form_field_name`. Prefix a key with `+` to create a new text field when missing. </ParamField> <ParamField type="textarea"> **Create new custom fields** One field name per line. Created as text fields in Emma on sync when they do not already exist. </ParamField> <ParamField type="remote_select"> **Available fields (reference)** Loaded from Emma. Copy the shortcut name into Custom fields above. </ParamField> #### Advanced Options <ParamField type="select"> **Double opt-in** When enabled, uses `members/signup` instead of `members/add`. </ParamField> # GetResponse Source: https://flexforms.bjanczak.com/integrations/getresponse Automatically sync respondents to your GetResponse campaigns with custom field mapping and autoresponder sequences. The **GetResponse** integration allows you to instantly route form respondents directly into your GetResponse ecosystem. It dynamically maps Custom Fields and gives you the ability to inject respondents directly into specific Autoresponder cycles. ## Business Use Cases <CardGroup> <Card title="Marketing Automation" icon="robot"> Inject leads into an automated 7-day email course the moment they submit a form. </Card> <Card title="List Segmentation" icon="filter"> Map complex demographic data (like company size or industry) directly into GetResponse custom fields. </Card> <Card title="Webinar Registration" icon="video"> Seamlessly push registrants into a specific campaign built exclusively for event attendees. </Card> </CardGroup> *** ## Step 1: Global Connection Before you can push data to GetResponse, you must authorize Flex Forms to communicate with your account. <Steps> <Step title="Locate your API Key"> Log into your GetResponse dashboard. Navigate to **Integrations & API → API**. Generate and copy your **API Key**. </Step> <Step title="Establish the Connection"> In your Flex Forms dashboard, open **Integrations** in the left rail (next to Global Settings). Locate the **GetResponse** card and enter your API Key. </Step> <Step title="Test and Verify"> Click **Save & Verify**. Flex Forms will ping the `https://api.getresponse.com/v3` endpoint to ensure the credentials are valid and that your campaigns can be fetched. </Step> </Steps> *** ## Step 2: Form-Level Configuration Once the global connection is established, you must activate the integration on a per-form basis. Open your specific form in the Studio and navigate to the **Integrations** tab. ### The Masterclass: Data Mapping When mapping data from Flex Forms to GetResponse, the system fetches your campaigns via live `remote_select` directly from the API. <ParamField type="remote_select"> **Target Campaign** Loaded live from your GetResponse account. All new submissions will be added to this specific campaign. </ParamField> <ParamField type="select"> **Name Field** Optional. Lists only **Name** blocks on this form (not every field). Leave empty to use the form’s Name field automatically when present. GetResponse may default the contact name to “Friend” when no name is sent. </ParamField> <ParamField type="number"> **Autoresponder Cycle Day (Optional)** If your campaign has an autoresponder configured, input the exact Day (e.g., `0`) to inject the user into the sequence immediately. Leave blank to bypass autoresponders. </ParamField> <ParamField type="textarea"> **Custom Field Mapping** Map your form block answers to GetResponse Custom Fields. **Syntax:** `GetResponseCustomFieldId=flex_forms_block_name` (One per line). *Warning: You must use the alphanumeric Custom Field ID from GetResponse, not the human-readable name.* **Example Mapping:** ```text theme={} xyz123=company_size_dropdown abc987=job_title_input ``` </ParamField> <ParamField type="select"> **IP Address (Optional)** Map the respondent's IP address if you require geolocation tracking within GetResponse. </ParamField> *** ## Technical Resources & Troubleshooting <AccordionGroup> <Accordion title="Where do I find my GetResponse Custom Field IDs?"> You must fetch the specific ID of the custom field. You can find this in your GetResponse account under Custom Fields, or by querying the API. The Flex Forms inspector will often display a helper list of loaded fields if available. </Accordion> <Accordion title="Does this update existing subscribers?"> Yes. If a respondent submits the form and their email address already exists in your GetResponse campaign, the engine will perform an `update` operation, refreshing their name and custom fields. </Accordion> <Accordion title="Official Documentation Reference"> For advanced architectural questions, refer to the official [GetResponse API v3 Documentation](https://apireference.getresponse.com/). </Accordion> </AccordionGroup> *** ## Configuration Reference ### Global Settings <ParamField type="select"> **Account Type** Whether you use standard GetResponse or GetResponse MAX. </ParamField> <ParamField type="password"> **API Key** Your GetResponse API Key. </ParamField> <ParamField type="text"> **Domain (MAX only)** Required if you are on GetResponse MAX. </ParamField> <ParamField type="select"> **MAX TLD** The TLD for your GetResponse MAX account (e.g., `com`, `pl`). </ParamField> ### Form-Level Settings #### Subscriber Data <ParamField type="remote_select"> **Target List (Campaign)** The GetResponse list to add the contact to. </ParamField> <ParamField type="select"> **Email Field** The primary email field for the subscriber. </ParamField> <ParamField type="select"> **Name Field** Optional. Only Name blocks from this form. </ParamField> #### Field Mapping <ParamField type="textarea"> **Custom Fields Mapping** Map your form blocks to GetResponse custom fields. </ParamField> <ParamField type="remote_select"> **Available custom fields (reference)** A read-only helper to fetch live custom fields from GetResponse. </ParamField> #### Advanced Options <ParamField type="text"> **Autoresponder cycle day** Add subscriber to an autoresponder cycle on a specific day (e.g., `0`). </ParamField> <ParamField type="select"> **Include IP address** If enabled, the respondent's IP address will be sent to GetResponse. </ParamField> # Google Analytics 4 (GA4) Integration Source: https://flexforms.bjanczak.com/integrations/google-analytics A comprehensive guide to securely routing form conversion events directly into Google Analytics 4 via the Measurement Protocol API. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API bypasses ad-blockers using server-side event tracking, please read the [Official Google Analytics 4 Measurement Protocol API Documentation](https://developers.google.com/analytics/devguides/collection/protocol/ga4). </Banner> The **Google Analytics 4 (GA4)** integration provides absolute enterprise-grade conversion tracking. Instead of relying on fragile frontend JavaScript pixels (which are frequently blocked by ad-blockers or iOS privacy features), Flex Forms connects directly to the GA4 Measurement Protocol API. This ensures that every single form submission is securely tracked as a server-side conversion event in your GA4 property with 100% accuracy. ## Enterprise Business Use Cases <CardGroup> <Card title="Bulletproof Conversion Tracking" icon="bullseye"> Frontend ad-blockers can cause you to lose up to 30% of your conversion data, ruining your marketing attribution models. Server-side tracking via the GA4 API guarantees that every lead is recorded, regardless of the user's browser privacy settings. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to GA4 requires generating an **API Secret** and finding your **Measurement ID**. Follow these exact instructions to ensure the integration is properly authenticated. <Steps> <Step title="Step 1: Log into Google Analytics"> Open your web browser and navigate to `analytics.google.com`. Ensure you are logged into the Google Account that has Administrator access to the specific GA4 Property you want to track. </Step> <Step title="Step 2: Access the Admin Panel"> Look at the absolute **bottom left corner** of your screen. Click the **gear icon** labeled **Admin**. </Step> <Step title="Step 3: Navigate to Data Streams"> In the Admin panel, under the **Property settings** column, locate and click exactly on the link labeled **Data Streams**. </Step> <Step title="Step 4: Select Your Web Stream"> You will see a list of data streams (usually just one called "Web"). Click on the specific Web Stream you want to track conversions for. A detailed settings panel will slide open. </Step> <Step title="Step 5: Copy the Measurement ID"> At the top right of this panel, you will see a string labeled **Measurement ID** (it always starts with `G-`, for example, `G-XXXXXXXXXX`). Click the small copy icon next to it. In Flex Forms, open **Integrations** → **Google Analytics** and paste this into the **Measurement ID** field. </Step> <Step title="Step 6: Navigate to API Secrets"> Switch back to the Google Analytics tab. Scroll down the Data Stream settings panel until you find the section labeled **Events**. Under that, click exactly on **Measurement Protocol API secrets**. </Step> <Step title="Step 7: Create a New Secret"> Click the blue **Create** button. Google will ask you for a nickname. Type exactly: `Flex Forms Server Integration`. Click **Create**. </Step> <Step title="Step 8: Copy the Secret Value"> You will now see your new secret listed in the table. Copy the long string of characters in the **Secret value** column. Switch back to Flex Forms, paste this into the **API Secret** field, and click **Save Settings** to finalize the secure server-side connection. </Step> </Steps> *** ## Configuration & Masterclass Usage Once authenticated, Flex Forms automatically begins tracking. There is no field mapping required. Every time a user submits a form, Flex Forms silently fires a server-side `generate_lead` event directly into your GA4 property. ### The Client ID Architecture To correctly attribute the conversion to the user's previous website browsing behavior (e.g., tracking that they clicked a Google Ad three days ago before submitting the form today), GA4 requires a `client_id`. <Tree> <Tree.Folder name="How Flex Forms Handles Client IDs"> <Tree.File name="1. The user visits your website." /> <Tree.File name="2. The standard GA4 JavaScript snippet generates a cookie named '_ga'." /> <Tree.File name="3. The user submits the Flex Form." /> <Tree.File name="4. Flex Forms intelligently intercepts the submission, extracts the exact '_ga' cookie value from their browser, and packages it into the server-side API payload." /> <Tree.File name="5. GA4 receives the payload and perfectly links the conversion to their historical session data." /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="Where is the data in GA4?"> **The Problem:** I submitted a test form, but I don't see the conversion in my main GA4 reports. **The Solution:** GA4 takes 24-48 hours to process data into standard reports. To verify the integration is working immediately, go to GA4 > Reports > Realtime. Submit a test form, and you should see the `generate_lead` event appear in the Realtime Events table within 60 seconds. </Accordion> <Accordion title="API Error: Missing Client ID"> **The Problem:** The server-side event fired, but GA4 didn't link it to the user's session. **The Solution:** This happens if the user has strict anti-tracking extensions installed that block the initial `_ga` cookie from being created. In this scenario, Flex Forms will generate a fallback, randomized Client ID to ensure the conversion is still tracked, but it cannot retroactively link to session data that was blocked from existing in the first place. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="text"> **Measurement ID** Your core Google Analytics 4 tracking ID. You can find this in GA4 by navigating to Admin → Data streams → Measurement ID. It usually starts with `G-`. </ParamField> <ParamField type="password"> **Measurement Protocol API secret** **Highly Recommended:** This secret key allows Flex Forms to bypass ad-blockers and send conversion events directly from the Laravel server to Google Analytics via the Measurement Protocol. Find this in GA4: Data stream → Measurement Protocol API secrets. </ParamField> <ParamField type="select"> **Install gtag.js on public forms** Determines if Flex Forms should automatically inject the `<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXX">` tracking code into your form pages. **Options:** * `1`: Yes (recommended if the form is standalone). * `0`: Off (choose this if you embed the form on a website that *already* has Google Analytics or GTM installed, to prevent double-firing). </ParamField> <ParamField type="select"> **Send page\_view with gtag config** If `install_gtag` is enabled, this setting controls whether a standard `page_view` event fires immediately when the form loads. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Event Tracking Rules <ParamField type="toggle"> **Track successful submissions** The master switch for this form. If enabled, Flex Forms will fire a conversion event to GA4 the exact moment the respondent successfully completes the form without validation errors. </ParamField> <ParamField type="text"> **Event name** The specific name of the event that appears in your GA4 reports. Default is `flex_form_submission`. *Tip: Use snake\_case (e.g., `generate_lead` or `contact_sales`).* </ParamField> #### Delivery Methods <ParamField type="toggle"> **Send via Measurement Protocol (server)** **Enterprise Grade:** Sends the event directly from your server to Google's servers. This guarantees 100% conversion tracking accuracy because it is completely immune to browser privacy blockers (Brave, Safari ITP, uBlock Origin) and network failures. *Requires `api_secret` under left-rail **Integrations** → Google Analytics.* </ParamField> <ParamField type="toggle"> **Send client gtag event** Fires `gtag('event')` in the user's browser on the thank-you screen. Use this alongside Measurement Protocol as a fallback, or if you rely heavily on client-side GTM triggers. </ParamField> #### Custom Dimensions <ParamField type="textarea"> **Custom parameters** Allows you to push specific form answers directly into GA4 as Custom Event Parameters. Built-in metadata (`form_id`, `form_title`, `form_slug`) and URL UTM parameters (`utm_source`, `utm_campaign`, etc.) are attached automatically and do not need to be mapped here. *Format: One per line as `ga_parameter_name=flex_forms_block_name`.* *(Note: GA4 limits you to 25 custom parameters per event).* </ParamField> # Google Sheets Integration Source: https://flexforms.bjanczak.com/integrations/google-sheets A comprehensive guide to instantly exporting structured form data directly into a Google Spreadsheet. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API manages secure OAuth flows and writes to specific cell ranges, please read the [Official Google Sheets API Documentation](https://developers.google.com/sheets/api/guides/concepts). </Banner> The **Google Sheets** integration provides an incredibly powerful, decentralized database alternative. Instead of logging into the Flex Forms dashboard to view submissions, this integration instantly appends a new row to a specific Google Spreadsheet the exact second a form is submitted, allowing your team to analyze data in real-time. ## Enterprise Business Use Cases <CardGroup> <Card title="Instant Data Collaboration" icon="users-viewfinder"> Route survey or registration data directly into a shared Google Sheet. Your entire marketing team can watch the rows populate in real-time and leave comments on specific leads without needing administrative access to the Flex Forms backend. </Card> </CardGroup> *** ## Connect Google Sheets You need a Google Cloud **OAuth client** plus a **refresh token** with Sheets access. Store credentials once, then attach them per form. ### Recommended: Integrations → Connections Use a **named Connection** when you have more than one Google account (Production vs Marketing) or want feeds to pick which account to write with. <Steps> <Step title="Create the Google Cloud OAuth client"> In [Google Cloud Console](https://console.cloud.google.com), create or select a project, enable **Google Sheets API**, configure the OAuth consent screen, then create an **OAuth client ID** of type **Web application**. Copy the **Client ID** and **Client Secret**. </Step> <Step title="Obtain a refresh token"> Authorize the client with the `https://www.googleapis.com/auth/spreadsheets` scope and capture a long-lived **refresh token** (Google OAuth Playground, your own authorize script, or your IdP tooling). Flex Forms refreshes short-lived access tokens automatically from this value. </Step> <Step title="Create a Connection in Flex Forms"> Open **Integrations** (left rail) → **Connections** tab. Choose **Google Sheets**, give it a clear label (for example `Marketing workbook`), paste Client ID, Client Secret, and Refresh Token, then **Create**. Click **Test** until the status is Connected. </Step> <Step title="Enable Google Sheets in Catalog"> Still under **Integrations**, open the **Catalog** tab, enable **Google Sheets**, and Save. Catalog can stay empty of tokens if every feed uses a Connection — enable only so the driver appears on forms. </Step> <Step title="Attach the Connection on the form"> Open the form hub **Integrations** tab, enable Google Sheets, pick your **Connection**, set Spreadsheet ID and sheet tab, map columns, then save. Submit a test response to confirm a new row appears. </Step> </Steps> ### Alternative: Catalog (global) credentials For a single shared Google account across all forms, paste Client ID / Secret / Refresh Token under **Integrations → Catalog → Google Sheets** instead of creating a Connection. Form feeds leave **Connection** empty to use those global credentials. <Callout type="info"> Upgrading from an older install? `php artisan flex-forms:upgrade` can backfill a Connection from legacy global Google credentials. Globals remain as a fallback until you switch feeds to `connection_id`. </Callout> *** ## Route submissions to a spreadsheet Establishing the connection allows Flex Forms to access your Google account, but you must instruct it exactly which Spreadsheet to write data to. <Callout type="info"> **Spreadsheet ID Requirement:** You must provide the specific **Spreadsheet ID** in the form's integration settings. **How to find it:** Open your target Google Sheet in a browser. Look at the URL: `https://docs.google.com/spreadsheets/d/1BxiMVs0X_X.../edit`. The long string of characters exactly between `/d/` and `/edit` is your Spreadsheet ID. Copy that string. </Callout> ### Creating the Header Row Flex Forms does not blindly dump data. It intelligently matches your form blocks to the **Headers** you define in Row 1 of your Google Sheet. <Tabs> <Tab title="Spreadsheet Setup"> 1. Open your target Google Sheet. 2. In Row 1, type the exact **Block Names** you defined in the Flex Forms Studio across the columns (e.g., A1: `first_name_input`, B1: `email_address`, C1: `company_name`). 3. When a user submits the form, Flex Forms scans Row 1, matches the keys, and correctly appends the data in the corresponding columns in a new row. </Tab> <Tab title="Exact Column Mapping Example"> <CodeGroup> ```text Google Sheet Layout (Row 1) theme={} | Column A | Column B | Column C | Column D | |-------------------|----------------|----------------------|--------------| | first_name_input | last_name_input| email_address_block | phone_number | ``` </CodeGroup> </Tab> </Tabs> <Callout type="warning"> **The Spelling Trap:** The names in Row 1 of your Google Sheet MUST perfectly match the block names in the Flex Forms Studio. If you name your block `first_name`, but you type `First Name` in the Google Sheet column header, the API will silently ignore that data and the column will remain blank. </Callout> *** ## Troubleshooting <AccordionGroup> <Accordion title="Test connection fails"> Confirm the refresh token was issued for the same Client ID/Secret, and that the Google account can edit the target spreadsheet. Prefer refresh tokens over short-lived access tokens. </Accordion> <Accordion title="403 Permission Denied when appending a row"> The Google account behind the Connection (or Catalog credentials) does not have Edit access to the Spreadsheet ID on the form feed. Share the sheet with that account. </Accordion> </AccordionGroup> *** ## Configuration reference ### Credentials (Catalog or Connection) Same fields appear under **Integrations → Catalog → Google Sheets** and **Integrations → Connections** when you create a Google Sheets connection. <ParamField type="text"> **OAuth Client ID** — Google Cloud OAuth 2.0 web client ID. </ParamField> <ParamField type="password"> **OAuth Client Secret** — paired with the Client ID for refresh exchanges. </ParamField> <ParamField type="password"> **OAuth Refresh Token** — preferred. Flex Forms refreshes access tokens automatically. </ParamField> <ParamField type="password"> **OAuth Access Token (fallback)** — short-lived; use only for temporary tests. </ParamField> ### Form feed Located on the form hub **Integrations** tab. <ParamField type="select"> **Connection** — named account from Integrations → Connections, or Catalog (global) when empty. </ParamField> #### Destination Sheet <ParamField type="text"> **Spreadsheet ID** The unique identifier of the target Google Sheet. You can extract this from the URL of your document. *Example:* If the URL is `https://docs.google.com/spreadsheets/d/1BxiMVs0X_x/edit`, your ID is `1BxiMVs0X_x`. </ParamField> <ParamField type="text"> **Sheet tab name** The exact name of the specific tab inside your spreadsheet (e.g., `Sheet1` or `Leads_Q4`). If you rename the tab in Google Sheets, you must update this field or the integration will throw a 400 error. </ParamField> #### Data Formatting <ParamField type="select"> **Include meta columns** Determines whether Flex Forms automatically prefixes your row data with system metadata. **Options:** * `1`: Yes — Automatically prepends columns for Timestamp, Submission ID, and Form Name before mapping your form answers. * `0`: No — Only inserts the exact fields you map in the `column_map`, giving you strict control over every cell. </ParamField> <ParamField type="textarea"> **Column map** The mapping engine for strict column placement. By default (if left empty), Flex Forms simply dumps all payload fields into the sheet sorted alphabetically by their name. To lock fields to specific columns, define one rule per line using the format: `COLUMN_LETTER=flex_forms_block_name`. *Example:* `A=email_input` `B=full_name` `C=phone_number` </ParamField> # Help Scout Integration Source: https://flexforms.bjanczak.com/integrations/helpscout A comprehensive guide to instantly converting form submissions into Support Conversations inside Help Scout. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API structures customer profiles and Conversation objects, please read the [Official Help Scout API Documentation](https://developer.helpscout.com/mailbox-api/endpoints/conversations/create/). </Banner> The **Help Scout** integration seamlessly connects your website forms to your customer support helpdesk. Instead of relying on email forwarding (which strips out crucial metadata and ruins threading), Flex Forms connects directly to the Help Scout API to generate clean, native "Conversations" in a specific Mailbox. ## Enterprise Business Use Cases <CardGroup> <Card title="Instant Support Ticketing" icon="ticket"> When a customer fills out a complex bug report form, Flex Forms creates a new Conversation in Help Scout. It correctly maps their email address as the "Customer", meaning when your agents reply in Help Scout, it goes directly to the user. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Help Scout requires generating an **App ID** and an **App Secret** via an OAuth2 flow. Follow these exact instructions to ensure the integration is properly authenticated. <Steps> <Step title="Step 1: Log into Help Scout"> Open your web browser and navigate to your Help Scout dashboard. Enter your credentials to log in. *Note: You must have Administrator privileges to create OAuth applications.* </Step> <Step title="Step 2: Access the User Profile Menu"> Look at the absolute **top right corner** of your screen. Click on your profile icon (or the avatar silhouette). </Step> <Step title="Step 3: Navigate to Your Profile"> In the dropdown menu that appears, click exactly on the link labeled **Your Profile**. </Step> <Step title="Step 4: Access 'My Apps'"> You are now viewing your profile settings. Look at the **left-hand sidebar menu**. Click exactly on the link labeled **My Apps**. </Step> <Step title="Step 5: Create a New App"> On the My Apps page, click the prominent blue button labeled **Create My App**. A configuration form will appear. </Step> <Step title="Step 6: Configure the Application Details"> Fill out the form with the following exact details: * **App Name:** `Flex Forms Website Integration` * **Redirection URL:** You MUST enter `https://your-domain.com` (Replace with your actual website URL). Even though this is a server-to-server integration, Help Scout requires a valid, secure HTTPS URL here. Click the **Create** button. </Step> <Step title="Step 7: Copy the App ID and Secret"> You will be redirected back to the My Apps overview, and your new `Flex Forms Website Integration` app will be listed. Click on it. You will now see two strings of text: the **App ID** and the **App Secret**. Highlight the **App ID**, right-click, and select **Copy**. </Step> <Step title="Step 8: Inject Credentials into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Help Scout. 2. Paste the App ID into the **App ID** field. 3. Switch back to Help Scout, copy the **App Secret**, and paste it into the **App Secret** field in Flex Forms. 4. Click the **Save Settings** button to finalize the secure OAuth connection. </Step> </Steps> *** ## Masterclass: Routing to Mailboxes Establishing the connection allows data to flow, but you must instruct Flex Forms exactly which "Mailbox" should receive the new Support Conversations. <Callout type="info"> **Mailbox ID Requirement:** You must provide the specific **Mailbox ID** in the form's integration settings. To find this, open your Help Scout dashboard, click on the specific Mailbox you want to route to (e.g., "Support"), and look at the URL in your browser. The URL will look like `.../mailbox/123456/...`. That number is your Mailbox ID. </Callout> ### Field Mapping Architecture Flex Forms handles the complex API logic of associating the user's email address with a Help Scout Customer Profile automatically (meaning you do not need to manually map the email field). Furthermore, Flex Forms intelligently compiles all the other answers the user provided into a clean, HTML-formatted block and injects it into the **Conversation Thread**. <Tabs> <Tab title="Subject Line Mapping"> You can map a specific form field to act as the primary **Subject Line** of the Help Scout Conversation. The format is always: `subject=flex_forms_block_name` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} subject=support_topic_dropdown firstName=first_name_input lastName=last_name_input ``` </CodeGroup> </Tab> </Tabs> If you do not map the `subject` field, Flex Forms will generate a generic subject (e.g., "New Form Submission - \[Date]"). *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 401 Unauthorized"> **The Problem:** The server logs show a `401 Unauthorized` error when attempting to create a Conversation. **The Solution:** This almost always means either your App ID or App Secret is incorrect, or contains a trailing space. Verify both credentials against the Help Scout dashboard. </Accordion> <Accordion title="API Error: 400 Bad Request (Mailbox Not Found)"> **The Problem:** The server logs show a `400 Bad Request` regarding the Mailbox. **The Solution:** The Mailbox ID you pasted into the form settings is incorrect, or the OAuth App you created does not have permission to access that specific Mailbox. Double-check the ID from the URL. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Access token** Help Scout OAuth access token with mailbox and customer scopes. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. <ParamField type="remote_select"> **Mailbox** </ParamField> <ParamField type="remote_select"> **Assign to** Mailbox-scoped Help Scout users and teams (Teams listed as “Team: …”). </ParamField> <ParamField type="select"> **Customer email field** </ParamField> <ParamField type="select"> **Customer first name field** </ParamField> <ParamField type="select"> **Customer last name field** </ParamField> <ParamField type="select"> **Customer phone field** </ParamField> <ParamField type="text"> **Tags** Comma-separated. Supports merge tags. </ParamField> <ParamField type="text"> **Subject** Supports merge tags. </ParamField> <ParamField type="textarea"> **Message body** Supports merge tags. </ParamField> <ParamField type="textarea"> **Internal note** Optional note thread prepended to the conversation. Supports . </ParamField> <ParamField type="select"> **Status** **Options:** * `active`: Active * `pending`: Pending * `closed`: Closed * `spam`: Spam </ParamField> <ParamField type="select"> **Type** **Options:** * `email`: Email * `chat`: Chat * `phone`: Phone </ParamField> <ParamField type="select"> **Send auto reply** **Options:** * `0`: No * `1`: Yes </ParamField> <ParamField type="text"> **Attachment fields** Comma-separated upload field names to attach to the conversation. </ParamField> <ParamField type="text"> **CC** Comma-separated. Supports merge tags. </ParamField> <ParamField type="text"> **BCC** Comma-separated. Supports merge tags. </ParamField> # HubSpot CRM Integration Source: https://flexforms.bjanczak.com/integrations/hubspot A comprehensive, enterprise-grade guide to instantly syncing Flex Forms submissions to HubSpot as Contacts, Companies, and Deals. <Banner type="info"> 📚 **Developer Reference:** To deeply understand the data payloads and available object relationships, please read the [Official HubSpot Forms API Documentation](https://developers.hubspot.com/docs/api/marketing/forms). </Banner> The **HubSpot** integration is an enterprise-grade pipeline designed to seamlessly route form submissions into your marketing ecosystem. Instead of relying on fragile Zapier connections, this integration allows Flex Forms to automatically generate structured `Contact` records, update their properties, and trigger advanced Marketing Hub workflows the exact second a user clicks submit. ## Enterprise Business Use Cases <CardGroup> <Card title="Automated Lead Generation" icon="funnel-dollar"> When a prospect fills out a "Contact Sales" form on your website, Flex Forms instantly creates a new Contact in HubSpot. You can simultaneously map hidden UTM parameters so your marketing team knows exactly which ad campaign generated the lead, triggering your sales outreach SLA. </Card> <Card title="Marketing Workflow Triggers" icon="robot"> By mapping specific dropdown selections (e.g., "Company Size") directly to HubSpot Contact Properties, you can trigger highly complex, conditional email drip campaigns in HubSpot the moment the data arrives. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide To establish a secure, authenticated connection between Flex Forms and your HubSpot environment, you must generate a **Private App Access Token**. Follow these exact, step-by-step instructions carefully to ensure a successful integration. (HubSpot deprecated legacy API keys in 2022). <Steps> <Step title="Step 1: Log into your HubSpot Dashboard"> Open your web browser and navigate to your HubSpot portal (e.g., `https://app.hubspot.com`). Enter your credentials to log in. *Note: You must have Super Admin privileges in HubSpot to create Private Apps.* </Step> <Step title="Step 2: Locate the Settings Gear"> Once you are logged into the main dashboard, look at the absolute **top right corner** of your screen, right next to your profile picture. You will see a **gear icon** (Settings). Click it. </Step> <Step title="Step 3: Navigate to Private Apps"> On the Settings page, look at the **left-hand sidebar menu**. Scroll down until you find the **Integrations** section. Expand it, and click exactly on the link labeled **Private Apps**. </Step> <Step title="Step 4: Initiate App Creation"> You are now on the Private Apps management page. In the top right area, click the prominent orange button labeled **Create a private app**. This will open a configuration screen. </Step> <Step title="Step 5: Configure Basic Info"> In the "Basic Info" tab, you must provide a **Name**. Type exactly: `Flex Forms Production Integration`. You can also upload the Flex Forms logo here so your team knows what this app is for. </Step> <Step title="Step 6: Grant Scopes (Crucial Step)"> Click on the **Scopes** tab at the top. You MUST search for and check the boxes for the following permissions: * `crm.objects.contacts.write` * `crm.objects.contacts.read` <Callout type="critical"> **CRITICAL WARNING:** Without these exact scopes, Flex Forms will not have permission to create or read contacts, and the API will return a 401 Unauthorized error. </Callout> </Step> <Step title="Step 7: Generate and Secure the Token"> Click the **Create app** button in the top right. A warning modal will appear; click **Continue creating**. Finally, click **Show token**. Highlight the entire long string of text, right-click, and select **Copy** (or press `Ctrl+C` / `Cmd+C`). Keep this safe, as HubSpot will only show it to you once. </Step> <Step title="Step 8: Create a Connection (recommended)"> Leave HubSpot open and switch to Flex Forms → **Integrations** → **Connections**. 1. Create a **HubSpot** connection and label it (for example `Production portal`). 2. Paste the Private App token into the connection credentials. 3. Connect so the status shows **Connected**. </Step> <Step title="Step 9: Optional Catalog fallback"> For a single shared portal only, open Integrations → Catalog → **HubSpot**, paste the token, and save. Prefer Connections when you may add another portal later. </Step> </Steps> ### Wire the form feed 1. Open the form in Studio → hub **Integrations** → **HubSpot**. 2. Enable the feed and pick your **Connection**. 3. Map fields / forms as needed, then save. ### Inbound (CRM → Flex Forms) HubSpot can call Flex Forms when a contact changes. Configure the inbound webhook secret on the same Connection or Catalog credentials, then point HubSpot at: `POST /flex-forms/integrations/hubspot/webhook` Matching contacts update name fields and last-seen timestamps in Flex Forms Contacts (not a full CRM mirror). *** ## Masterclass: Mapping Data Payloads Establishing the connection is only half the battle. Now, you must instruct Flex Forms on exactly how to translate your form fields into HubSpot's specific database architecture. By default, Flex Forms will automatically map your primary `Email Block` to HubSpot's core `email` property. Everything else must be explicitly mapped using HubSpot's **Internal Names**. <Tabs> <Tab title="Standard Field Mapping"> You define these mappings on the form hub **Integrations** tab. The format is always: `hubspot_internal_name=flex_forms_block_name` Here are the most common standard HubSpot keys you will use: * `firstname` (The person's first name) * `lastname` (The person's last name) * `phone` (Their mobile number) * `company` (The company they work for) * `website` (Their company URL) </Tab> <Tab title="Exact Mapping Example"> If you have a Short Text block named `first_name_input` and a Phone block named `user_phone`, your mapping configuration would look exactly like this: <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} firstname=first_name_input lastname=last_name_input phone=user_phone company=company_name ``` </CodeGroup> </Tab> </Tabs> ### How Custom Properties Work in HubSpot If you created a custom property in HubSpot (e.g., "Favorite Color"), you must map to its exact Internal Name. <Tree> <Tree.Folder name="Finding HubSpot Internal Names"> <Tree.File name="1. Go to HubSpot Settings > Properties" /> <Tree.File name="2. Click on your custom property (e.g., 'Favorite Color')" /> <Tree.File name="3. Look for the '<> button' (Source code icon) next to the name" /> <Tree.File name="4. Copy the Internal Name (e.g., 'favorite_color_custom')" /> <Tree.File name="5. Map it: favorite_color_custom=favorite_color_field" /> </Tree.Folder> </Tree> <Callout type="warning"> **The Label Trap:** Never use the human-readable Label from HubSpot. If your HubSpot property is labeled "Job Title", its internal name is actually `jobtitle`. If you try to map `Job Title=job_title`, the API will instantly reject the payload. </Callout> *** ## Troubleshooting & Enterprise FAQs Even with a perfect setup, enterprise environments can experience edge cases. Here is how to diagnose and resolve them. <AccordionGroup> <Accordion title="API Error: 401 Unauthorized"> **The Problem:** The form submission failed, and the server logs show a `401 Unauthorized` error returned by HubSpot. **The Solution:** You likely copied a legacy HubSpot API Key instead of generating a modern Private App Token. HubSpot completely disabled legacy API keys in November 2022. You must go back to Step 3 and create a Private App to get a valid token. </Accordion> <Accordion title="API Error: Property does not exist"> **The Problem:** You get a 400 Bad Request error stating that a property does not exist. **The Solution:** You have a typo in your Field Mapping, or you used the human-readable Label instead of the Internal Name. Check your spelling against HubSpot's internal property names (e.g., use `firstname`, not `first_name`). </Accordion> <Accordion title="Duplicate Contact Management"> **The Problem:** You are worried that if the same person fills out the form twice, it will create two messy duplicate records in HubSpot. **The Solution:** You don't need to worry. Flex Forms relies on HubSpot's core deduplication logic. HubSpot uses the email address as the primary unique identifier. When a submission is processed, if HubSpot finds an existing Contact with that exact email address, it safely updates their existing properties with the new data instead of creating a duplicate. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Private App access token** The OAuth token used to authenticate with HubSpot. You must generate this from HubSpot → Settings → Integrations → Private Apps. <Callout type="warning"> **Required Scopes:** Ensure your token is granted `crm.objects.contacts.write` and `crm.objects.contacts.read` permissions. </Callout> </ParamField> <ParamField type="text"> **Portal ID (Hub ID)** Optional. Flex Forms automatically detects your Hub ID via the API `account-info` endpoint. You only need to provide this manually if you have multiple nested Portals and the API detects the wrong one. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Form Mapping & Creation <ParamField type="remote_select"> **HubSpot form** Select an existing form directly from your HubSpot account to pipe data into. If left blank, Flex Forms can automatically generate a matching form in HubSpot for you. </ParamField> <ParamField type="select"> **Auto-create HubSpot form** If enabled and `form_guid` is empty, Flex Forms will use the HubSpot API to dynamically generate a new form inside your HubSpot account the very first time a user submits this Flex Form. **Options:** * `1`: Yes — create when GUID is empty * `0`: No — require selecting an existing form manually </ParamField> <ParamField type="text"> **HubSpot form name** The exact name applied to the auto-created HubSpot form. If left blank, it defaults to the title of your Flex Form. </ParamField> #### Contact Processing <ParamField type="select"> **Always create contact for new email** Determines how HubSpot's backend processes the submission. **Options:** * `default`: Relies on your global HubSpot account deduplication settings. * `enabled`: Forces the creation of a brand new contact record, bypassing deduplication. * `disabled`: Updates an existing contact if found, but drops the payload if the contact does not already exist. </ParamField> <ParamField type="select"> **Email field** Select the block that collects the respondent's primary email. Required for HubSpot deduplication. </ParamField> <ParamField type="select"> **First name field** </ParamField> <ParamField type="select"> **Last name field** </ParamField> <ParamField type="select"> **Phone field** </ParamField> <ParamField type="select"> **Company field** </ParamField> <ParamField type="select"> **Lifecycle stage field** Map a specific form block (e.g. a dropdown) directly to HubSpot's internal `lifecyclestage` property (e.g., `subscriber`, `lead`, `marketingqualifiedlead`, `customer`). </ParamField> <ParamField type="textarea"> **Additional contact properties** The core mapping engine for custom properties. You must use exact internal HubSpot property names. *Format: One per line as `hubspot_internal_name=flex_forms_block_name`.* </ParamField> <ParamField type="remote_select"> **Available properties (reference)** Loaded live from your HubSpot account. Use this dropdown to find the correct internal property names to use in the `field_map` above. </ParamField> #### Advanced Owner Routing <ParamField type="select"> **Contact owner mode** Allows you to automatically assign a HubSpot user (Owner) to the newly created contact, bypassing the need for complex HubSpot workflows. **Options:** * `none`: Do not assign an owner. * `select`: Assign a fixed owner to all submissions from this form. * `conditional`: Use logic rules to assign different owners based on how the user answered the form. </ParamField> <ParamField type="remote_select"> **Contact owner** Select the specific HubSpot user (e.g., "John Salesman") to assign to all contacts. *Requires `owner_mode` to be set to `select`.* </ParamField> <ParamField type="textarea"> **Conditional owner rules** The routing engine for conditional owner assignment. Provide one rule per line using the exact format: `owner_id|field|operator|value`. *Example:* `55|country_dropdown|=|United States` (If they select US, assign to Owner ID 55). Supported operators: `=`, `!=`, `contains`, `>`, `<` </ParamField> #### Telemetry & Tracking <ParamField type="select"> **HUTK field** Map to a form field that stores the HubSpot tracking cookie (`hubspotutk`) if you capture it manually (often a text field with **Hide** enabled so respondents never see it). </ParamField> <ParamField type="select"> **Exclude hutk cookie** By default, Flex Forms extracts the `hubspotutk` cookie from the user's browser and attaches it to the API payload, allowing HubSpot to tie the submission to their browsing history. Use this setting to disable tracking for strict GDPR compliance. </ParamField> <ParamField type="text"> **Submission page URI** The URL where the form was submitted. Overrides the automatically detected URL sent to HubSpot analytics. </ParamField> <ParamField type="text"> **Submission page name** The title of the page where the form was submitted. Overrides the automatically detected page title sent to HubSpot analytics. </ParamField> # Mailchimp Integration Source: https://flexforms.bjanczak.com/integrations/mailchimp A comprehensive guide to instantly piping form submissions directly into your Mailchimp Audiences (lists), updating Merge Tags, and triggering Customer Journeys. <Banner type="info"> 📚 **Developer Reference:** To deeply understand advanced payload schemas, `md5` hashing requirements for updating existing contacts, and subscriber status definitions, please refer to the [Official Mailchimp Marketing API Documentation](https://mailchimp.com/developer/marketing/guides/quick-start/). </Banner> The **Mailchimp** integration provides an automated pipeline for feeding leads directly into your email marketing engine. Instead of manually exporting CSVs of your form submissions, Flex Forms intelligently handles the `md5` hashing required by the Mailchimp API to securely add new subscribers, gracefully update existing contacts with new data, and assign them to specific Audiences. ## Enterprise Business Use Cases <CardGroup> <Card title="Instant Newsletter Growth" icon="envelope"> Instantly subscribe users to your main weekly newsletter list the exact moment they fill out an opt-in form on your website. Flex Forms handles Double Opt-in (if required) automatically. </Card> <Card title="Triggering Customer Journeys" icon="route"> Apply specific tags (e.g., `webinar_attendee` or `ebook_downloader`) to a contact based on which form they submitted. These tags act as immediate entry points to trigger complex, automated welcome sequences in Mailchimp's Customer Journey builder. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Prefer **Connections** when you have more than one Mailchimp account (agency clients, Production vs Sandbox). Catalog credentials still work for a single shared account. Connecting Flex Forms to Mailchimp requires generating a specific API Key. Follow these exact instructions to ensure the integration is properly authenticated. <Steps> <Step title="Step 1: Log into Mailchimp"> Open your web browser and navigate to Mailchimp's login page (`https://login.mailchimp.com`). Enter your username and password to access the main dashboard. </Step> <Step title="Step 2: Access the Account Menu"> Once logged in, look at the absolute **bottom-left corner** of your screen. Click on your profile picture (or the circular icon with your initials) to open the main account drawer menu. </Step> <Step title="Step 3: Navigate to Account Settings"> In the drawer menu that pops up, click on the option labeled **Account & billing** (or simply **Account** depending on your Mailchimp tier). </Step> <Step title="Step 4: Find the Extras Menu"> You are now on the Account overview page. Look at the horizontal navigation bar at the top of the page. Click on the dropdown menu labeled **Extras**. </Step> <Step title="Step 5: Navigate to API Keys"> In the **Extras** dropdown menu, click exactly on the option labeled **API keys**. This will take you to the Developer security center. </Step> <Step title="Step 6: Initiate Key Creation"> On the API keys page, scroll down until you see the section titled "Your API keys". Click the prominent button labeled **Create A Key**. </Step> <Step title="Step 7: Name and Generate the Key"> Mailchimp will ask you to name the key. Type exactly: `Flex Forms Website Integration`. Naming the key ensures you don't accidentally delete it during a security audit later. Click **Generate Key**. </Step> <Step title="Step 8: Copy the Server-Prefixed Key"> Mailchimp will generate a long string of alphanumeric characters ending with a hyphen and a server prefix (for example, `a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6-us14`). <Callout type="critical"> **CRITICAL STEP:** You must highlight and copy the ENTIRE string, **including the hyphen and the server prefix (e.g., `-us14`)**. The server prefix tells Flex Forms which exact datacenter in the world holds your data. Without it, the API will fail. </Callout> Right-click and select **Copy** (or press `Ctrl+C` / `Cmd+C`). </Step> <Step title="Step 9: Create a Connection (recommended)"> Switch to Flex Forms → **Integrations** → **Connections**. 1. Create a connection, choose **Mailchimp**, and label it clearly (for example `Production` or a client name). 2. Paste the entire API key (including `-us14`) into the connection credentials. 3. Save / connect so the status shows **Connected**. </Step> <Step title="Step 10: Optional Catalog fallback"> For a single shared account only, you can instead open Integrations → Catalog → **Mailchimp**, paste the same key, and save. Prefer Connections when you may add another account later. </Step> </Steps> ### Wire the form feed 1. Open the form in Studio → hub **Integrations** → **Mailchimp**. 2. Enable the feed and pick your **Connection** (leave blank only if you rely on Catalog). 3. Choose the Audience and mapping options, then save the form. *** ## Masterclass: Mapping Data Payloads Establishing the connection is only half the battle. Now, you must instruct Flex Forms on exactly how to translate your form fields into Mailchimp's database architecture. <Callout type="info"> **Built-in API Sync:** You do NOT need to manually hunt for Audience IDs in the Mailchimp dashboard. As long as your Global API Key is valid, Flex Forms automatically queries MailerLite and provides a live dropdown of all your available Audiences directly on the form hub **Integrations** tab. </Callout> Mailchimp automatically handles the primary `Email Block`. For all other data (names, phone numbers, custom data), you must map them using Mailchimp's **Merge Tags**. <Tabs> <Tab title="Standard Field Mapping"> You define these mappings on the form hub **Integrations** tab. The format is always: `MERGE_TAG=flex_forms_block_name` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} FNAME=first_name_input LNAME=last_name_input PHONE=mobile_phone MMERGE3=custom_company_dropdown ``` </CodeGroup> </Tab> </Tabs> ### How to Find Exact Merge Tags If you try to map `first_name=first_name_input`, the API will silently ignore the data because Mailchimp does not use "first\_name" as a database key. It uses a Merge Tag like `FNAME`. <Tree> <Tree.Folder name="Finding Merge Tags"> <Tree.File name="1. In Mailchimp, go to Audience > Settings" /> <Tree.File name="2. Click on 'Audience fields and *|MERGE|* tags'" /> <Tree.File name="3. Look at the rightmost column for the 'Put this tag in your content' value" /> <Tree.File name="4. Copy the tag WITHOUT the asterisks and pipes (e.g., FNAME, not *|FNAME|*)" /> <Tree.File name="5. Map it: FNAME=first_name" /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="Double Opt-in and Subscriber Status"> By default, Flex Forms instructs Mailchimp to set the subscriber's status to `subscribed`. However, if your company strictly enforces Double Opt-in (to comply with strict GDPR interpretations), you can change the default status to `pending` in the form's integration settings. This will force Mailchimp to send an automated confirmation email to the user before officially adding them to the Audience. </Accordion> <Accordion title="API Error: The resource could not be found"> **The Problem:** The server logs show a 404 error when attempting to sync. **The Solution:** This almost always means the **Audience ID** you provided in the form settings is incorrect. Ensure you copied the "Audience ID" from the settings page, NOT the generic URL ID or the Audience Name. </Accordion> <Accordion title="Updating Existing Subscribers"> Mailchimp is notoriously strict about duplicates. If a user tries to subscribe twice, a standard POST request will fail. Flex Forms bypasses this by calculating an `md5` cryptographic hash of the submitted email address. It then uses the `PUT` method against the Mailchimp API, which tells Mailchimp: "If this user exists, gracefully update their Merge Tags and append new Tags. If they do not exist, create them." </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Mailchimp API Key** Your master API key. You can generate this in your Mailchimp account under **Account → Extras → API keys**. *Note: The key MUST include the datacenter suffix (e.g., `xxxxxxxxxxxxxxxxxxxx-us21`). Flex Forms parses this suffix to route API calls to the correct Mailchimp server.* </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Audience & Opt-in Mechanics <ParamField type="remote_select"> **Mailchimp audience** The master Audience list that this form will feed into. Flex Forms dynamically queries the API to populate this dropdown with your live Mailchimp Audiences. </ParamField> <ParamField type="toggle"> **Double opt-in** If enabled (`true`), the subscriber will be added with a `pending` status. Mailchimp will immediately send them an automated confirmation email, and they will not be officially subscribed until they click the link inside it. If disabled, they are added as `subscribed` immediately. </ParamField> <ParamField type="toggle"> **Allow resubscription of unsubscribed contacts** If a user previously unsubscribed from your Mailchimp audience and they submit this form, this toggle determines if Flex Forms is allowed to forcefully change their status back to `subscribed` (or `pending`). </ParamField> #### Data Mapping <ParamField type="select"> **Email field** The primary email block from your form. Mailchimp requires this to match or create the subscriber. </ParamField> <ParamField type="textarea"> **Merge fields** The mapping engine for syncing form data to Mailchimp Merge Tags (e.g., First Name, Phone Number). You must provide one rule per line using the format: `MERGE_TAG=flex_forms_block_name`. *(Note: You do not need to map the primary `EMAIL` tag. Flex Forms handles the primary email automatically).* </ParamField> <ParamField type="remote_select"> **Available merge tags (reference)** A read-only helper. Select a field to see its exact Mailchimp Merge Tag (e.g., `FNAME`), so you can copy/paste it into the `merge_field_map` above. </ParamField> #### Segmentation & Tags <ParamField type="text"> **Tags** A comma-separated list of string tags to append to the contact (e.g., `website-lead, q4-promo`). Supports merge tags (e.g., `{{industry_dropdown}}`) to dynamically tag users based on their answers. </ParamField> <ParamField type="text"> **Interest / group IDs** If you use Mailchimp Groups (Interests) to segment your audience, you must pass the strict numeric ID of the Interest, *not* its text name. Comma-separated. </ParamField> <ParamField type="remote_select"> **Available interests (reference)** A read-only helper to find the extremely long alphanumeric ID required for Mailchimp Interests. Copy the ID into the `interest_ids` field. </ParamField> <ParamField type="textarea"> **Contact note** An optional block of text appended to the Contact's profile as an internal Note. Supports merge tags. </ParamField> #### Advanced Options <ParamField type="textarea"> **Marketing permissions** If you have GDPR fields enabled in Mailchimp, you must map the specific `marketing_permission_id` to a Checkbox block in Flex Forms. Format: `permission_id=checkbox_block_name`. If the checkbox is checked, the permission is granted. </ParamField> <ParamField type="toggle"> **Mark subscriber as VIP** Instantly upgrades the subscriber to VIP status in Mailchimp upon submission. </ParamField> # MailerLite Integration Source: https://flexforms.bjanczak.com/integrations/mailerlite A comprehensive guide to syncing subscribers, updating custom demographic fields, and assigning granular Groups in MailerLite. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API handles Group assignments and strict custom field typing, please refer to the [Official MailerLite API Documentation](https://developers.mailerlite.com/docs/). </Banner> The **MailerLite** integration provides an incredibly fast and reliable pipeline for pushing form submissions directly into your email marketing ecosystem. Flex Forms handles the complex API routing required to not just add subscribers, but to intelligently assign them to specific MailerLite Groups for granular segmentation. ## Enterprise Business Use Cases <CardGroup> <Card title="Automated Lead Magnet Delivery" icon="magnet"> When a user fills out a form to download an eBook, Flex Forms instantly assigns them to a specific MailerLite Group (e.g., "Ebook Downloaders"). This Group assignment acts as the trigger for a MailerLite automation to instantly deliver the PDF via email. </Card> <Card title="Hyper-Personalized Newsletters" icon="newspaper"> Seamlessly collect custom demographic data (like location or industry) via a Flex Form and map it directly to Custom Fields in MailerLite. This allows you to send highly personalized, hyper-targeted weekly broadcast emails. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to MailerLite requires generating a specific API Token. Follow these exact instructions to ensure the integration is properly authenticated. <Steps> <Step title="Step 1: Log into MailerLite"> Open your web browser and navigate to your MailerLite login portal. Enter your credentials to access the main dashboard. </Step> <Step title="Step 2: Access the Integrations Menu"> Once logged in, look at the **left-hand sidebar navigation menu**. Scroll down the list until you find the section labeled **Integrations**. Click exactly on this link. </Step> <Step title="Step 3: Locate the MailerLite API Section"> You are now on the Integrations overview page, which lists dozens of third-party apps. Look specifically for the box labeled **MailerLite API**. </Step> <Step title="Step 4: Enter the API Management Interface"> Click the prominent button labeled **Use** (or **Manage**) located inside the "MailerLite API" box. This will take you to the secure token generation center. </Step> <Step title="Step 5: Initiate Token Generation"> Look for the button labeled **Generate new token**. Click it. A configuration modal will appear. </Step> <Step title="Step 6: Name the Token"> In the "Token name" field, type exactly: `Flex Forms Website Integration`. Giving it a descriptive name ensures you will not accidentally delete it during future security reviews. Click the **Create token** button. </Step> <Step title="Step 7: Copy the API Token"> MailerLite will instantly generate a very long string of alphanumeric characters. <Callout type="critical"> **CRITICAL WARNING:** You must copy this token immediately. For security reasons, MailerLite will *never* display this token to you again. If you lose it or close the window too early, you must revoke it and generate a new one. </Callout> Click the **Copy** button (or highlight the string and press `Ctrl+C` / `Cmd+C`). After verifying it is on your clipboard, click "Download" just to be safe, then click the button to close the modal. </Step> <Step title="Step 8: Create a Connection (recommended)"> Switch to Flex Forms → **Integrations** → **Connections**. Create a **MailerLite** connection, paste the API token, and connect. Catalog → MailerLite remains available for a single shared account. </Step> </Steps> On the form hub **Integrations** tab, enable MailerLite and pick your **Connection**. *** ## Masterclass: Mapping Data Payloads Establishing the connection allows data to flow, but you must instruct Flex Forms on exactly how to organize that data once it arrives in MailerLite. In MailerLite, you organize and segment contacts using **Groups** (formerly called Lists). You MUST provide the specific `Group ID` in the Flex Forms integration settings for the target form to ensure the subscriber is categorized correctly. ### Finding the Group ID In MailerLite, you organize and segment contacts using **Groups** (formerly called Lists). <Callout type="info"> **Built-in API Sync:** You do NOT need to manually hunt for Group IDs. As long as your Global API Key is valid, Flex Forms automatically queries MailerLite and provides a live dropdown of all your available Groups directly on the form hub **Integrations** tab. </Callout> <Tabs> <Tab title="Standard Field Mapping"> The primary Email address is synced automatically by Flex Forms. You must map any additional fields to MailerLite's standard fields (like `name`, `last_name`, `company`, `city`, `phone`). The format is always: `mailerlite_field=flex_forms_block_name` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} name=first_name_input last_name=last_name_input company=company_name_field city=address_city_field phone=mobile_number ``` </CodeGroup> </Tab> </Tabs> ### How Custom Fields Work in MailerLite If you want to send data that MailerLite doesn't support by default (e.g., `Dietary_Preference`), you must manually create that Custom Field in MailerLite first (Subscribers > Custom Fields). When mapping, you MUST use the exact **Internal Key** generated by MailerLite, NOT the human-readable name. <Callout type="warning"> **The Formatting Trap:** If you name your field "Dietary Preference" in MailerLite, its internal key is actually `dietary_preference`. If you map `Dietary Preference=dropdown` (with spaces and capital letters), the MailerLite API will instantly reject the entire payload as a malformed request. </Callout> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="Updating Existing Subscribers"> **The Problem:** What happens if a user who is already subscribed to my MailerLite account fills out the Flex Form again to download a new eBook? **The Solution:** Flex Forms intelligently handles this without throwing duplicate errors. It uses the email address as the primary key. If the subscriber already exists, Flex Forms will gracefully update their custom fields with any new information provided in the form, and it will safely append the new Group assignment to their existing profile. </Accordion> <Accordion title="API Error: 401 Unauthorized"> **The Problem:** The server logs show a `401 Unauthorized` error when attempting to sync. **The Solution:** This means the API Token you pasted in Step 8 is invalid. Ensure you did not accidentally copy a trailing space at the end of the token. If the issue persists, the token may have been revoked by another admin in your MailerLite account. Generate a new token and update Flex Forms. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **MailerLite API Token** Your secure API token for MailerLite's new v2 API. Generate this inside your MailerLite account by navigating to **Integrations → API → Generate new token**. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Subscriber Placement <ParamField type="remote_select"> **MailerLite group** Optional. Select the exact MailerLite Subscriber Group you want these leads added to. Flex Forms queries the API in real-time to load your actual groups into this dropdown. </ParamField> <ParamField type="text"> **Tag IDs** Unlike ActiveCampaign which accepts text tags, MailerLite strictly requires numeric Tag IDs (e.g., `123456789`). You can provide a comma-separated list of IDs to attach to the subscriber. </ParamField> <ParamField type="remote_select"> **Available tags (reference)** A read-only helper dropdown. Select a tag to view its numeric ID, then copy/paste it into the `tag_ids` field above. </ParamField> #### Field Mapping <ParamField type="select"> **Email field** The primary email block from your form. MailerLite requires this to identify the subscriber. </ParamField> <ParamField type="select"> **Name field** </ParamField> <ParamField type="select"> **Last name field** </ParamField> <ParamField type="textarea"> **Custom fields** The routing map for injecting form answers into MailerLite subscriber properties. Format requires one rule per line: `mailerlite_field_key=form_block_name`. *Note: MailerLite strictly types its fields. If a MailerLite field is set to 'date', Flex Forms will automatically attempt to coerce your form answer into a `Y-m-d` format.* **Pro-tip:** Prefix any key with a `+` (e.g., `+company_name=company_input`), and if that field doesn't exist in MailerLite, Flex Forms will immediately call the `/api/fields` endpoint to create a new text field for you on the fly. </ParamField> <ParamField type="textarea"> **Create new custom fields** A bulk-creation tool. Enter one field name per line (e.g., `Job Title`). Flex Forms will create them all as text fields in MailerLite during the next sync. You can then map to them using the generated key. </ParamField> <ParamField type="remote_select"> **Available fields (reference)** A read-only helper. Shows a live list of all your MailerLite fields (including their required keys and data types like `text`, `date`, or `number`) for easy copy/pasting. </ParamField> #### Consent & Opt-in Status <ParamField type="select"> **Subscriber status** Controls the subscriber's exact opt-in state when injected into MailerLite. **Options:** * `active`: The user is fully opted-in and ready to receive emails immediately. * `unconfirmed`: Triggers Double Opt-in. MailerLite will send them an automated confirmation email. They won't receive marketing until they click the link in that email. * `unsubscribed`: Explicitly blocks the user from receiving emails (useful for GDPR suppression lists). </ParamField> # Mailgun Integration Source: https://flexforms.bjanczak.com/integrations/mailgun A comprehensive guide to overriding standard SMTP and sending robust, high-deliverability transactional emails directly through the Mailgun API. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API overrides SMTP and structures the message payloads, please read the [Official Mailgun API Documentation](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages). </Banner> The **Mailgun** integration is an enterprise-grade transport layer that completely bypasses your server's standard, often unreliable SMTP configuration. By connecting Flex Forms directly to the Mailgun API, you guarantee lightning-fast delivery for critical transactional emails, such as autoresponders, submitter receipts, and internal administrative alerts. ## Enterprise Business Use Cases <CardGroup> <Card title="Bulletproof Deliverability" icon="shield-check"> Standard PHP SMTP can often be flagged as spam or suffer from severe rate limits on shared hosting. The Mailgun API integration ensures your critical "Thank You for Contacting Us" receipts actually land in the primary inbox, instantly. </Card> <Card title="High-Volume Routing" icon="route"> If your form receives thousands of submissions per hour, standard SMTP queues will crash. The Mailgun API handles massive concurrency, effortlessly routing thousands of administrative notification emails simultaneously. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Mailgun requires generating a highly secure API Key and strictly defining your verified sending domain and geographical region. Follow these exact instructions. <Steps> <Step title="Step 1: Log into Mailgun"> Open your web browser and navigate to the Mailgun login portal. Enter your credentials to access the main administrative dashboard. </Step> <Step title="Step 2: Access the Sending Menu"> Once logged in, look at the **left-hand sidebar navigation menu**. Locate the section labeled **Send** and expand it. Then, click exactly on the sub-menu link labeled **Sending**. </Step> <Step title="Step 3: Navigate to Domains"> Under the "Sending" section, click exactly on **Domains**. You will now see a list of domains you have registered with Mailgun. *Note: You MUST have a fully verified domain (e.g., `mg.yourcompany.com`) with green checkmarks next to the DNS records before proceeding.* </Step> <Step title="Step 4: Select Your Verified Domain"> Click directly on the verified domain name you intend to use for sending Flex Forms emails. </Step> <Step title="Step 5: Navigate to Domain Settings"> You are now looking at the overview for that specific domain. Look at the sub-navigation tabs near the top of this specific page. Click exactly on **Domain settings**. </Step> <Step title="Step 6: Access Sending API Keys"> In the "Domain settings" menu, locate and click on the tab labeled **Sending API keys**. </Step> <Step title="Step 7: Generate the API Key"> Click the prominent button labeled **Add API key**. Mailgun will generate a highly secure, long string of alphanumeric characters. Highlight the entire string, right-click, and select **Copy** (or press `Ctrl+C` / `Cmd+C`). Make absolutely sure you do not highlight any blank spaces. </Step> <Step title="Step 8: Inject Credentials into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Mailgun. 2. Paste the API Key you copied into the **API Key** input field. 3. Enter the exact **Domain** you selected in Step 4 (e.g., `mg.yourcompany.com`) into the Domain field. 4. Select your **Region** (US or EU). This tells Flex Forms whether to ping `api.mailgun.net` or `api.eu.mailgun.net`. If you select the wrong one, the API will fail instantly. 5. Click the **Save Settings** button. </Step> </Steps> *** ## Configuration & Masterclass Usage Once Mailgun is authenticated and active, it silently takes over the email transport layer for all notifications generated by Flex Forms (such as the "Submitter Receipt" or "Admin Alert" emails configured in the Studio). There is no field mapping required for Mailgun, as it simply acts as the delivery engine for emails formatted by Flex Forms. ### The Sender Authentication Trap <Tree> <Tree.Folder name="Strict Sender Validation"> <Tree.File name="If you verified the domain: mg.yourcompany.com in Mailgun." /> <Tree.File name="You configure a Flex Forms Admin Alert to send FROM: sales@yourcompany.com." /> <Tree.File name="Mailgun intercepts the email." /> <Tree.File name="Mailgun sees the FROM domain (yourcompany.com) DOES NOT match the verified domain (mg.yourcompany.com)." /> <Tree.File name="Mailgun instantly DROPS the email and throws a 400 error." /> </Tree.Folder> </Tree> <Callout type="warning"> **CRITICAL SENDER RULE:** To guarantee delivery, the "From Address" configured in your Flex Forms Notification Settings in the Studio MUST exactly match the verified domain you configured in Mailgun. If your verified domain is a subdomain like `mg.yourcompany.com`, your From address MUST be something like `noreply@mg.yourcompany.com`. </Callout> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 401 Unauthorized"> **The Problem:** The server logs show a `401 Unauthorized` error when attempting to send an email. **The Solution:** This almost always means the API Key you pasted in Step 8 is incorrect, or you selected the wrong Region (US vs EU). If your Mailgun account is hosted in Europe, but you set the Flex Forms region to US, the API will reject your key as invalid. Verify your region and re-paste the key. </Accordion> <Accordion title="API Error: Free accounts are restricted"> **The Problem:** The server logs show an error stating "Free accounts are restricted to verified routing addresses." **The Solution:** If you are using a free Mailgun sandbox domain (e.g., `sandbox123.mailgun.org`), Mailgun strictly prohibits you from sending emails to anyone except yourself. You must upgrade to a paid Mailgun tier and verify a custom domain to send emails to your customers. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Mailgun Private API Key** The master API key that allows Flex Forms to send emails through your Mailgun account. Do *not* use a public validation key. </ParamField> <ParamField type="select"> **Region** Mailgun isolates EU data from US data. If you created your Mailgun account in Europe, you *must* select `EU` here, otherwise API requests will fail with a 401/404 error. </ParamField> <ParamField type="text"> **Default from email** The fallback sender address (e.g., `noreply@mg.yourdomain.com`). **CRITICAL:** The domain in this email address *must* be exactly verified within your Mailgun account. Mailgun will permanently reject any emails sent from unverified domains. </ParamField> <ParamField type="text"> **Default from name** The fallback sender name (e.g., `Flex Forms System`). </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Envelope & Addressing <ParamField type="text"> **To** The destination email address. You can provide a hardcoded email (e.g., `sales@example.com`) or use a merge tag to send the email directly to the person who filled out the form (e.g., `{{email_input}}`). Separate multiple addresses with commas. </ParamField> <ParamField type="text"> **From email** Overrides the Global Default From Email for this specific form. Must still belong to a verified Mailgun domain. </ParamField> <ParamField type="text"> **From name** Overrides the Global Default From Name. </ParamField> <ParamField type="text"> **Reply-To** When the recipient clicks "Reply" in their email client, their response will go here. *Highly recommended:* Set this to the user's email block (e.g., `{{email_input}}`) so your sales team can reply directly to the submitter. </ParamField> <ParamField type="text"> **CC** Carbon Copy addresses. Comma-separated. </ParamField> <ParamField type="text"> **BCC** Blind Carbon Copy addresses. Comma-separated. Excellent for silent auditing. </ParamField> #### Email Content <ParamField type="text"> **Subject** The subject line of the email. Supports merge tags (e.g., `New Lead: {{company_name}}`). </ParamField> <ParamField type="textarea"> **Message body** The actual content of the email. You have full control over the layout. Use merge tags to inject form answers. </ParamField> <ParamField type="select"> **Content type** Determines how Mailgun parses your `body`. **Options:** * `text/plain`: Standard, unformatted text. Safe and reliable. * `text/html`: Allows you to write raw HTML in the `body` (e.g., `<h1>New Lead</h1>`). </ParamField> #### Telemetry & Attachments <ParamField type="select"> **Track clicks** Instructs Mailgun to rewrite links inside the email to track if the recipient clicks them. </ParamField> <ParamField type="select"> **Track opens** Instructs Mailgun to inject an invisible tracking pixel to monitor open rates. </ParamField> <ParamField type="text"> **Attachment fields** If your form contains File Upload blocks, type their exact names here (comma-separated). Flex Forms will automatically extract the files from the submission and attach them directly to the Mailgun email payload. </ParamField> # Mapbox Integration Source: https://flexforms.bjanczak.com/integrations/mapbox A comprehensive guide to powering Location and Address blocks with lightning-fast Mapbox geocoding APIs. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API resolves unstructured text into precise coordinates, please read the [Official Mapbox Geocoding API Documentation](https://docs.mapbox.com/help/getting-started/access-tokens/). </Banner> The **Mapbox** integration provides enterprise-grade geocoding capabilities for your forms. By connecting Flex Forms to Mapbox, you enable advanced Address Autocomplete features, allowing users to type a few letters of their address and instantly select perfectly formatted, verified location data from a dropdown. ## Enterprise Business Use Cases <CardGroup> <Card title="Address Autocomplete" icon="keyboard"> Drastically reduce user friction on complex shipping or intake forms. Instead of making users manually type their city, state, and zip code across 5 different fields, Mapbox allows them to search one single field and auto-populates everything perfectly. </Card> <Card title="Data Standardization" icon="spell-check"> Ensure clean data enters your CRM. Mapbox standardizes spelling (e.g., forcing "New York" instead of "NY" or "NYC") and verifies the address actually exists before allowing the submission. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Mapbox requires generating an **Access Token**. Mapbox uses a highly secure, restricted token architecture. Follow these exact instructions. <Steps> <Step title="Step 1: Log into Mapbox"> Open your web browser and navigate to the Mapbox login portal (`account.mapbox.com`). Enter your credentials to access the main administrative dashboard. </Step> <Step title="Step 2: Access the Tokens Menu"> Once logged in, look at the **top navigation menu**. Click exactly on the link labeled **Tokens**. </Step> <Step title="Step 3: Initiate Token Creation"> On the Access Tokens page, you will see a Default Public Token. While you *could* use this, it is not secure. Click the prominent blue button on the right side labeled **+ Create a token**. A configuration screen will appear. </Step> <Step title="Step 4: Configure Token Details"> Fill out the top section with the following exact details: * **Token name:** Type exactly `Flex Forms Integration`. Under the "Public scopes" section, ensure the following are checked (they usually are by default): * `styles:read` * `fonts:read` </Step> <Step title="Step 5: Apply URL Restrictions (Crucial Step)"> Scroll down to the bottom section labeled **URL restrictions**. <Callout type="critical"> **CRITICAL SECURITY WARNING:** Because this token will be exposed in the frontend JavaScript to provide autocomplete, you MUST restrict it. If you do not restrict it, anyone can copy your token and use it on their own website, running up massive billing charges on your Mapbox account. </Callout> Type the exact URL where your forms are hosted (e.g., `https://yourcompany.com`) and click **Add URL**. </Step> <Step title="Step 6: Generate and Copy the Token"> Click the blue **Create token** button at the absolute bottom of the page. You will be redirected back to the Tokens overview. Locate your new `Flex Forms Integration` token. It will be a very long string starting with `pk.eyJ1...`. Highlight this entire string, right-click, and select **Copy**. </Step> <Step title="Step 7: Inject the Token into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Mapbox. 2. Click inside the **Access Token** input field. 3. Right-click and select **Paste** (or press `Ctrl+V` / `Cmd+V`) to inject the token. 4. Click the **Save Settings** button to finalize the secure connection. </Step> </Steps> *** ## Configuration & Masterclass Usage Once the Access Token is saved, Mapbox is globally activated. There is no field mapping required in the integration settings. Instead, this integration "unlocks" specific Blocks inside the Flex Forms Studio. ### Unlocking the Address Autocomplete Block Now that Mapbox is connected, you can use the advanced **Address Autocomplete** block in your forms. <Tree> <Tree.Folder name="How Autocomplete Works Under the Hood"> <Tree.File name="1. You drag the Address block into your form in the Studio." /> <Tree.File name="2. A user visits your form and starts typing '123 Main S...'." /> <Tree.File name="3. Flex Forms securely pings the Mapbox Geocoding API using your restricted token." /> <Tree.File name="4. Mapbox instantly returns 5 perfectly formatted address suggestions." /> <Tree.File name="5. The user clicks a suggestion, and the data is locked in." /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 403 Forbidden"> **The Problem:** The autocomplete dropdown is not appearing when users type, and the browser console shows a `403 Forbidden` error from Mapbox. **The Solution:** You have encountered the URL Restriction Trap. The domain you entered in Step 5 does not perfectly match the domain where the form is actually embedded. For example, if you restricted it to `https://yourcompany.com`, but the form is embedded on `https://www.yourcompany.com` (with the 'www'), Mapbox will block the request. Ensure you add all possible subdomains to the restriction list. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Access token** Public token with Geocoding API enabled. Map / address fields appear in the form builder only after this integration is ready. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. # Meta (Facebook) Pixel & Conversions API Source: https://flexforms.bjanczak.com/integrations/meta Track form views and submissions with Meta Pixel plus server-side Conversions API for reliable ad optimization. <Banner type="info"> Meta Events Manager → your Pixel → **Settings** for the Pixel ID and Conversions API access token. Official reference: [Conversions API](https://developers.facebook.com/docs/marketing-api/conversions-api). </Banner> The **Meta** integration sends form activity to Facebook / Instagram ads in two complementary ways: 1. **Meta Pixel** on public fill pages (PageView + conversion on thank-you) 2. **Conversions API** from the server when someone submits (works when browsers block the Pixel) Both events share the same `event_id`, so Meta can deduplicate client and server hits. ## Setup <Steps> <Step title="Open Integrations"> In Flex Forms, open **Integrations** in the left rail and choose **Meta (Facebook)**. </Step> <Step title="Paste Pixel ID"> In Events Manager, open your Pixel → **Settings** → copy **Pixel ID** into Flex Forms. </Step> <Step title="Generate access token"> In the same Settings screen, generate a **Conversions API** access token and paste it into Flex Forms. Keep it secret — Flex Forms stores it encrypted. </Step> <Step title="Optional test code"> While verifying, copy a **Test event code** from Events Manager → Test events. Remove it before going live. </Step> <Step title="Save and enable"> Turn the integration on, save, and confirm the connection test succeeds. </Step> <Step title="Enable per form"> In Studio → form settings → **Integrations**, enable Meta for that form. Choose the event (usually **Lead**) and whether to send server / client events. </Step> </Steps> ## What gets sent * **Server (Conversions API):** hashed email and name from the form’s primary identity fields, optional phone field, IP, user agent, `_fbp` / `_fbc` cookies when present, and form title. * **Client (Pixel):** `PageView` on load; standard event (e.g. `Lead`) on the thank-you screen with matching `eventID`. Turn off **Install Meta Pixel on public forms** if your host site or Tag Manager already loads the Pixel — Flex Forms will still send Conversions API events when configured. ## Tips * Prefer **Lead** for contact / demo / quote forms. * Use a **test event code** only while debugging. * Pair with [Google Analytics](/integrations/google-analytics) when you need both ad platforms and product analytics. # Integrations Overview Source: https://flexforms.bjanczak.com/integrations/overview Complete catalog of Flex Forms native integrations — Connections, Catalog, form feeds, delivery ledger, inbound, and every shipped provider. The **Integrations** rail is where Flex Forms authenticates providers, stores reusable Connections, and wires each form’s outbound feeds. Submissions always save first; delivery runs asynchronously so a slow CRM never freezes the public fill page. This page is the map of everything that ships today. Each provider below has its own setup guide. <img alt="Flex Forms integrations — catalog, Connections, form feeds, and delivery reliability" /> ## How it fits together ```mermaid theme={} flowchart TD Catalog[Integrations Catalog] --> Enable[Enable provider] Catalog --> GlobalCreds[Optional panel-wide credentials] Connections[Connections] --> NamedAcct[Named API key or OAuth account] Enable --> FormFeed[Form hub Integrations feed] GlobalCreds --> FormFeed NamedAcct --> FormFeed FormFeed --> Queue[Async DispatchFormIntegrationJob] Queue --> Delivery[Delivery ledger on submission] Inbound[Inbound webhooks] --> Contacts[Flex Forms contacts / ledger] ``` | Layer | Where | What it does | | - | - | - | | **Catalog** | Integrations → Catalog | Enable/disable providers; optional shared credentials (fallback when a feed has no Connection) | | **Connections** | Integrations → Connections | Named, encrypted accounts (Production vs Sandbox, client A vs B). Prefer this for multi-account | | **Form feed** | Form hub → Integrations | Per-form routing, field maps, Connection picker, conditions | | **Delivery ledger** | Submission detail | Succeeded / failed / skipped attempts + **Replay** | | **Scheduled sync** | Background | Refreshes remote pickers (lists, channels, sheets) for Connection-aware catalogs | | **Inbound** | `POST /flex-forms/integrations/{driver}/webhook` | Provider → Flex Forms (HubSpot, Slack, Webhooks) | Platform unlockers (**reCAPTCHA**, **Turnstile**, **Mapbox**, **Pexels**, **Stripe**) stay **Catalog-only** — they unlock Studio/fill features, not multi-account CRM feeds. **Stripe exception:** payment options live on the [Stripe Payment](/features/blocks/stripe-payment) block. Stripe never appears on the form Integrations tab. Ledger: [Transactions](/features/transactions/overview). Related: [Conditional feeds](/integrations/conditional-feeds) · [Custom integrations](/developers/custom-integrations) · [Inbound webhooks](/developers/inbound-webhooks) *** ## Complete provider catalog ### Email marketing & newsletters | Integration | Auth | Connections | Typical feed | | - | - | - | - | | [Mailchimp](/integrations/mailchimp) | API key (`-usXX`) | Yes | Audience, merge tags, tags, double opt-in | | [Campaign Monitor](/integrations/campaign-monitor) | API key | Yes | Client lists + custom fields | | [GetResponse](/integrations/getresponse) | API key (Standard / MAX) | Yes | Campaign + custom fields | | [ConvertKit](/integrations/convertkit) | API key / secret | Yes | Forms, sequences, tags | | [EmailOctopus](/integrations/emailoctopus) | API key | Yes | List + extra fields | | [MailerLite](/integrations/mailerlite) | API token | Yes | Groups + custom fields | | [ActiveCampaign](/integrations/activecampaign) | API URL + key | Yes | Lists, tags, custom fields | | [Emma](/integrations/emma) | Public + private keys | Yes | Groups + fields | | [Brevo](/integrations/brevo) | API key | Yes | Lists / contacts | ### Transactional email | Integration | Auth | Connections | Typical feed | | - | - | - | - | | [SendGrid](/integrations/sendgrid) | API key (`SG.`) | Yes | Dynamic templates / mail send | | [Mailgun](/integrations/mailgun) | API key + domain | Yes | Messages API | ### CRM & sales | Integration | Auth | Connections | Typical feed | | - | - | - | - | | [HubSpot](/integrations/hubspot) | Private App token | Yes | Contacts / forms + optional [inbound](/developers/inbound-webhooks) | | [Salesforce](/integrations/salesforce) | OAuth / client credentials | Yes | Lead / Contact / custom objects | | [Capsule CRM](/integrations/capsule-crm) | Personal access token | Yes | Parties + opportunities | ### Collaboration, sheets & helpdesk | Integration | Auth | Connections | Typical feed | | - | - | - | - | | [Google Sheets](/integrations/google-sheets) | OAuth refresh | Yes | Spreadsheet + sheet append | | [Slack](/integrations/slack) | Bot token and/or webhook | Yes | Channel alerts + optional inbound | | [Trello](/integrations/trello) | API key + token | Yes | Cards on a list | | [Breeze](/integrations/breeze) | API token | Yes | Tasks | | [Help Scout](/integrations/helpscout) | Access token | Yes | Conversations + custom fields | | [Zapier](/integrations/zapier) | Catch hook URL | Yes | Catch Hook + field map | | [Webhooks](/integrations/webhooks) | Shared secret (optional) | Yes | Signed JSON outbound + inbound | ### Security, analytics, media & payments | Integration | Auth | Connections | Role | | - | - | - | - | | [Google Analytics](/integrations/google-analytics) | Measurement ID + MP secret | Catalog | Measurement Protocol events | | [Meta](/integrations/meta) | Pixel / CAPI token | Catalog | Browser + Conversions API | | [Mapbox](/integrations/mapbox) | Access token | Catalog | Address / map blocks | | [Pexels](/integrations/pexels) | API key | Catalog | Studio stock covers | | [reCAPTCHA](/integrations/recaptcha) | Site + secret | Catalog | Form Access CAPTCHA | | [Turnstile](/integrations/turnstile) | Site + secret | Catalog | Form Access CAPTCHA | | [Stripe](/integrations/stripe) | Secret + webhook | Catalog | Stripe Payment Element + Transactions | *** ## Recommended setup path <Steps> <Step title="Open Integrations"> Flex Forms left rail → **Integrations** (separate from [Global Settings](/get-started/global-settings)). </Step> <Step title="Enable in Catalog"> Turn the provider on. For a single shared account you may paste credentials here. </Step> <Step title="Prefer Connections for multi-account"> Create a labeled Connection (Production, Sandbox, Client X). Credentials stay encrypted on the Connection. </Step> <Step title="Wire the form feed"> Open the form → hub **Integrations** → enable the provider → pick **Connection** → map lists/fields → save. </Step> <Step title="Verify delivery"> Submit a test fill. Open the submission → delivery ledger → confirm success or use **Replay**. </Step> </Steps> <Callout type="info"> Changing the **Connection** on a feed reloads remote pickers (audiences, channels, sheets) for that account. Scheduled sync keeps those catalogs warm in the background. </Callout> *** ## Reliability & security (what “enterprise” means here) <CardGroup> <Card title="Async dispatch" icon="timer"> Jobs run after ingest. Queue workers absorb vendor latency; respondents never wait on Salesforce. </Card> <Card title="Delivery ledger + Replay" icon="rotate-cw"> Every attempt is recorded. Soft failures (timeouts, 429, 5xx) can be retried; permanent 4xx stay failed for intentional Replay. </Card> <Card title="Circuit breaker" icon="shield"> Repeated failures open a breaker per integration / Connection so one bad account does not flood the queue. </Card> <Card title="Outbound HTTP hygiene" icon="globe"> Shared client: explicit timeouts, connect timeout, retries on transient errors, no redirects (SSRF), consistent User-Agent. </Card> <Card title="Encrypted credentials" icon="lock"> Connection secrets use encrypted casts. Catalog secrets are redacted in Studio responses. </Card> <Card title="Conditional feeds" icon="git-branch"> Send only when answers match rules — see [Conditional feeds](/integrations/conditional-feeds). </Card> </CardGroup> ### Timeouts vs intervals (why both exist) | Mechanism | What it is | Why it is enterprise | | - | - | - | | **HTTP timeout** | Max seconds a single outbound API call may run (typically 12–25s); config `filament-flex-forms.outbound_http.timeout` | Protects queue workers from hung vendors; fail → retry / ledger instead of blocking forever | | **Connect timeout** | Max seconds to open TCP/TLS (5s); config `filament-flex-forms.outbound_http.connect_timeout` | Fails fast on dead hosts | | **Job backoff** | Wait between job retries (e.g. 15s / 60s / 180s) | Gives rate-limited APIs room to recover | | **OAuth device `interval`** | Provider-mandated poll spacing ([RFC 8628](https://datatracker.ietf.org/doc/html/rfc8628)) | Polling faster gets you `slow_down`; Flex Forms increases the interval when the provider asks | Timeouts are **not** a substitute for async jobs, and intervals are **not** HTTP timeouts — they solve different failure modes. *** ## Build your own Need a provider that is not listed? Register a custom driver with the same FieldMapper, Connections, delivery ledger, and circuit breaker as shipped integrations. <CardGroup> <Card title="Creating integrations" icon="code" href="/developers/custom-integrations"> Discover drivers from `app/FlexForms/Integrations` and ship first-party quality feeds. </Card> <Card title="Field mapping" icon="table" href="/developers/field-mapping"> Transform and nest payloads with FieldMapper. </Card> <Card title="OAuth tokens" icon="key" href="/developers/oauth-token-management"> Encrypted Connections, refresh locks, reconnect. </Card> <Card title="SDK helpers" icon="wrench" href="/developers/integration-sdk-helpers"> GraphQL client, device-code OAuth, SAML assertion consumer. </Card> <Card title="Inbound webhooks" icon="inbox" href="/developers/inbound-webhooks"> `SupportsInboundWebhooks` + idempotency ledger. </Card> <Card title="Events & hooks" icon="bolt" href="/developers/events-hooks"> Listen after ingest, publish, and deliveries. </Card> </CardGroup> # Pexels stock photos Source: https://flexforms.bjanczak.com/integrations/pexels Connect Pexels once, then search free stock photos and apply them as form covers inside Studio. <Banner type="info"> Create a free API key at [pexels.com/api](https://www.pexels.com/api/). Flex Forms keeps the key on the server — Studio never sees it in the browser. </Banner> The **Pexels** integration unlocks a stock-photo tab in the Studio cover picker. Search landscape photos, click one, and Flex Forms downloads it into your form’s design storage (with photographer credit metadata). ## Setup <Steps> <Step title="Get an API key"> Sign in at Pexels → API → create a key for your organization. </Step> <Step title="Connect in Flex Forms"> Open **Integrations** → **Pexels**, paste the API key, enable the integration, and save. The connection test must succeed before Studio unlocks search. </Step> <Step title="Use in Studio"> Open a form → cover picker → **Pexels** tab → search → click a photo. The image is imported as a normal cover asset. </Step> </Steps> ## Notes * Pexels is a **platform** integration (like Mapbox), not a per-submission feed. * Photos are copied into your app storage so public forms do not hotlink Pexels forever. * Respect [Pexels guidelines](https://www.pexels.com/license/) when using photos commercially. * If search fails with an auth error, rotate the API key in Integrations and save again. # Google reCAPTCHA Integration Source: https://flexforms.bjanczak.com/integrations/recaptcha A comprehensive guide to securing your forms against bot submissions using Google's invisible reCAPTCHA v3. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API calculates risk scores based on user behavior, please read the [Official Google reCAPTCHA Documentation](https://www.google.com/recaptcha/admin). </Banner> The **Google reCAPTCHA** integration provides absolute enterprise-grade spam protection for your Flex Forms. Flex Forms supports both **reCAPTCHA v2** (the familiar "I'm not a robot" checkbox) and **reCAPTCHA v3** (invisible, score-based protection). ## Enterprise Business Use Cases <CardGroup> <Card title="Frictionless Spam Prevention" icon="user-shield"> Eliminate automated bot submissions from polluting your CRM. By using v3, you maintain a 100% frictionless user experience, drastically improving conversion rates compared to visible CAPTCHAs. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to reCAPTCHA requires generating a **Site Key** and a **Secret Key** inside the Google Admin console. Follow these exact instructions. <Steps> <Step title="Step 1: Access the reCAPTCHA Admin Console"> Open your web browser and navigate directly to this exact URL: `https://www.google.com/recaptcha/admin/create`. Log in with your company's Google Workspace administrator account. </Step> <Step title="Step 2: Register a New Site"> You will see a configuration form titled "Register a new site". * **Label:** Type exactly `Flex Forms Website`. (This helps you identify it later). </Step> <Step title="Step 3: Select reCAPTCHA Type"> Under the "reCAPTCHA type" section, select either **reCAPTCHA v3** (recommended for seamless UX) or **reCAPTCHA v2** ("I'm not a robot" checkbox). <Callout type="warning"> **Crucial Configuration:** You MUST select the exact same version in Flex Forms Settings as you do here in the Google Admin Console. Mismatched versions will cause validation to fail. </Callout> </Step> <Step title="Step 4: Add Your Domains"> Under the "Domains" section, type the exact domain where your forms are hosted (e.g., `yourcompany.com`) and press Enter. *Note: Do not include `https://` or trailing slashes. Just the root domain.* </Step> <Step title="Step 5: Accept Terms and Submit"> Check the box to accept the reCAPTCHA Terms of Service. Click the blue **Submit** button at the bottom of the page. </Step> <Step title="Step 6: Copy the Keys"> Google will instantly generate two distinct cryptographic keys: a **Site Key** and a **Secret Key**. Leave this window open, as you will need to copy both of these strings exactly as they appear. </Step> <Step title="Step 7: Inject Credentials into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Google reCAPTCHA. 2. Switch back to Google, highlight the **Site Key** (the top one), and copy it. 3. Paste it into the **Site Key** input field in Flex Forms. 4. Switch back to Google, highlight the **Secret Key** (the bottom one), and copy it. 5. Paste it into the **Secret Key** input field in Flex Forms. </Step> <Step title="Step 8: Define the Threshold and Save"> In Flex Forms, you will see a setting for **Risk Score Threshold**. Google returns a score between 0.0 (likely a bot) and 1.0 (likely a good interaction). Set the threshold to `0.5` as a safe default. (Any submission scoring below this number will be blocked). Click the **Save Settings** button to finalize the secure connection. </Step> </Steps> *** ## Configuration & Masterclass Usage Once the keys are saved, reCAPTCHA is available globally for forms. Enable CAPTCHA on a specific form under **Form Settings → Access → CAPTCHA**. Choose **Google reCAPTCHA** when both reCAPTCHA and Turnstile are connected — only one CAPTCHA provider can be active per form. Flex Forms injects the widget on the last step of that form (no canvas block required). ### The Validation Architecture <Tree> <Tree.Folder name="How reCAPTCHA v3 Works Under the Hood"> <Tree.File name="1. A user interacts with your form." /> <Tree.File name="2. Google analyzes their mouse movements and browser history." /> <Tree.File name="3. The user clicks Submit." /> <Tree.File name="4. Flex Forms intercepts the submission and injects a cryptographic 'g-recaptcha-response' token into the payload." /> <Tree.File name="5. The Flex Forms server securely pings the Google API." /> <Tree.File name="6. Google returns a score (e.g., 0.9). If it passes your Threshold (e.g., 0.5), the submission proceeds." /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: Version Mismatch"> **The Problem:** The form submission fails with a validation error related to CAPTCHA. **The Solution:** You likely have a mismatch between your Google Console configuration and Flex Forms. If you generated v2 keys in Google, you MUST select `v2` in the Flex Forms Settings dropdown. If you generated v3 keys, you MUST select `v3`. </Accordion> <Accordion title="False Positives (Blocking Real Users)"> **The Problem:** Legitimate customers are complaining that they cannot submit the form. **The Solution:** Your Risk Score Threshold is set too high. If you set it to `0.9`, you are demanding absolute perfection from Google's algorithm, which will frequently block real users on mobile devices or VPNs. Lower your threshold in the Flex Forms settings to `0.3` or `0.5` to allow more leniency while still blocking massive botnets. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="select"> **Version** Use v2 for the visible checkbox, or v3 for invisible score-based protection. **Options:** * `v2`: v2 checkbox * `v3`: v3 score </ParamField> <ParamField type="text"> **Site key** </ParamField> <ParamField type="password"> **Secret key** </ParamField> <ParamField type="text"> **v3 score threshold** Only for v3. Tokens scoring below this value are rejected (0.0–1.0, default 0.5). </ParamField> ### Form-Level Settings Located in **Form Settings → Access → CAPTCHA** for a specific form. <ParamField type="select"> **CAPTCHA provider** Choose `recaptcha` for this form, or leave CAPTCHA off. If Turnstile is also connected, pick exactly one provider — never both. </ParamField> # Salesforce Integration Source: https://flexforms.bjanczak.com/integrations/salesforce A comprehensive, enterprise-grade guide to seamlessly push form data directly into Salesforce Objects, Leads, and Contacts. <Banner type="info"> 📚 **Developer Reference:** For detailed architecture on Object creation and OAuth flows, refer to the [Official Salesforce REST API Documentation](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_create.htm). </Banner> The **Salesforce** integration brings absolute enterprise-grade data piping to Flex Forms. It allows you to instantly generate Leads, update Contacts, or create highly customized `sObjects` without writing a single line of Apex code or relying on fragile, rate-limited middleware like Zapier. ## Enterprise Business Use Cases <CardGroup> <Card title="Sales Pipeline Automation" icon="funnel-dollar"> Automatically push high-value enterprise inquiries directly into the Salesforce Lead queue. Flex Forms can map hidden UTM tracking data directly to Lead Source fields, enabling immediate, context-aware SDR follow-up. </Card> <Card title="Support Case Creation" icon="ticket"> Map a technical support form directly to the `Case` object in Salesforce. This instantly assigns tickets to your Service Cloud agents, bypassing email queues entirely. </Card> </CardGroup> *** ## Connect Salesforce Flex Forms talks to Salesforce with a **Connected App** using the **client credentials** grant (Consumer Key, Consumer Secret, and your org **Instance URL**). No username/password paste in Studio. ### Recommended: Integrations → Connections Create one Connection per Salesforce org (Production, Sandbox, EU) and pick it on each form feed. <Steps> <Step title="Create a Connected App"> In Salesforce **Setup → App Manager → New Connected App**, enable OAuth settings, add a HTTPS callback URL (required by Salesforce even for client credentials), and select scopes that allow API access for your use case. Save and wait a few minutes for the app to activate. </Step> <Step title="Copy Consumer Key and Secret"> Open **Manage Consumer Details** and copy the Consumer Key and Consumer Secret. </Step> <Step title="Create a Connection in Flex Forms"> Open **Integrations** (left rail) → **Connections**. Choose **Salesforce**, label it (for example `Production org`), paste Consumer Key, Consumer Secret, and Instance URL (`https://your-domain.my.salesforce.com`, no trailing slash), then **Create**. Run **Test** until the status is Connected. </Step> <Step title="Enable Salesforce in Catalog"> Open **Integrations → Catalog**, enable **Salesforce**, and Save so the driver appears on form feeds. Catalog credentials can stay empty when every feed uses a Connection. </Step> <Step title="Configure the form feed"> On the form hub **Integrations** tab, enable Salesforce, select your **Connection**, choose the object type, map fields, and save. Send a test submission and confirm the record in Salesforce. </Step> </Steps> ### Alternative: Catalog (global) credentials For a single org across all forms, paste Consumer Key / Secret / Instance URL under **Integrations → Catalog → Salesforce**. Leave the form feed **Connection** empty to use those globals. <Callout type="info"> `php artisan flex-forms:upgrade` can migrate legacy global Salesforce credentials into a Connection row. Globals remain available as a fallback. </Callout> *** ## Map payloads to Salesforce objects Salesforce relies on extremely strict Object structures. You must tell Flex Forms exactly which Salesforce Object to target and how to map the specific fields. <Tabs> <Tab title="Object Selection & Standard Mapping"> In your Form's specific integration settings, you must specify the **Target Object** (it defaults to `Lead`, but you can type `Contact`, `Case`, or `Account`). Then, define your mappings using the exact API Names of the Salesforce fields. The format is always: `Salesforce_API_Name=Flex_Forms_Field_Name` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} FirstName=first_name LastName=last_name Company=company_name LeadSource=hidden_utm_source Custom_Survey_Answer__c=matrix_block_result ``` </CodeGroup> </Tab> </Tabs> ### How Custom Fields Work in Salesforce If you are mapping data to a custom field you manually created in Salesforce (e.g., "Industry Type"), you must be aware of the custom field naming convention. <Tree> <Tree.Folder name="The __c Suffix Requirement"> <Tree.File name="Salesforce automatically appends '__c' to all custom fields." /> <Tree.File name="If your field is named 'Industry Type'..." /> <Tree.File name="The API Name is actually 'Industry_Type__c'." /> <Tree.File name="You MUST map it as: Industry_Type__c=industry_dropdown" /> </Tree.Folder> </Tree> <Callout type="warning"> **The Missing Suffix Trap:** If you forget to include the `__c` suffix in your field mapping, the Salesforce API will reject the payload with an `INVALID_FIELD` error, and the lead will not be created. </Callout> *** ## Troubleshooting <AccordionGroup> <Accordion title="Unable to obtain an access token"> Confirm Instance URL has no trailing slash, Consumer Key/Secret match the Connected App, and the app has finished activating (often 2–10 minutes after create). </Accordion> <Accordion title="INVALID_FIELD on create"> Custom fields need the `__c` suffix in the field map. Copy API names from the Object fields helper on the form feed. </Accordion> </AccordionGroup> *** ## Configuration reference ### Credentials (Catalog or Connection) Same fields under **Integrations → Catalog → Salesforce** and **Integrations → Connections**. <ParamField type="password"> **Consumer Key (client ID)** </ParamField> <ParamField type="password"> **Consumer Secret** </ParamField> <ParamField type="text"> **Instance URL** — e.g. `https://your-company.my.salesforce.com` (no trailing slash). </ParamField> ### Form feed Located on the form hub **Integrations** tab. <ParamField type="select"> **Connection** — named Connected App from Integrations → Connections, or Catalog (global) when empty. </ParamField> #### Object Mapping <ParamField type="remote_select"> **Object type** Select which Salesforce sObject this form should create (`Lead`, `Contact`, `Account`, `Opportunity`, `Case`, …). </ParamField> <ParamField type="textarea"> **Field map** — one rule per line: `SalesforceApiName=flex_forms_block_name`. Primary email fills `Email` when unmapped. Checkboxes become booleans; multi-selects become semicolon-delimited values; `{{merge}}` tags are supported. </ParamField> <ParamField type="remote_select"> **Object fields (reference)** — live describe helper for copying API names into the field map. </ParamField> <ParamField type="select"> **Update duplicates** — `0` fail closed on Salesforce duplicate rules; `1` PATCH the matched record when `DUPLICATES_DETECTED`. </ParamField> # SendGrid Integration Source: https://flexforms.bjanczak.com/integrations/sendgrid A comprehensive guide to overriding standard SMTP and routing all transactional emails and autoresponders via SendGrid's robust V3 API. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how the API overrides SMTP and structures the complex V3 JSON payloads, please read the [Official SendGrid API Documentation](https://docs.sendgrid.com/api-reference/mail-send/mail-send). </Banner> The **SendGrid** integration provides an absolute enterprise-grade transport layer for Flex Forms. By bypassing standard, often rate-limited SMTP connections, Flex Forms connects directly to SendGrid's V3 API. This guarantees lightning-fast, high-deliverability routing for critical form receipts and administrative notifications. ## Enterprise Business Use Cases <CardGroup> <Card title="Guaranteed Inbox Placement" icon="shield-check"> Standard PHP SMTP on shared servers is frequently blacklisted by major providers (Gmail, Outlook). The SendGrid API integration ensures your critical "Thank You for Contacting Us" receipts are digitally signed and actually land in the primary inbox. </Card> <Card title="Massive Concurrency Routing" icon="route"> If your Flex Form goes viral and receives 500 submissions in a single minute, a standard SMTP queue will immediately crash. The SendGrid API handles massive concurrency, effortlessly routing hundreds of administrative notification emails simultaneously without dropping a single one. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to SendGrid requires generating a highly secure, restricted API Key. Follow these exact instructions to ensure the integration is properly authenticated. <Steps> <Step title="Step 1: Log into SendGrid"> Open your web browser and navigate to the SendGrid login portal. Enter your enterprise credentials to access the main administrative dashboard. </Step> <Step title="Step 2: Access the Settings Menu"> Once logged in, look at the **left-hand sidebar navigation menu**. Scroll down to the bottom of the list and locate the section labeled **Settings**. Click to expand it. </Step> <Step title="Step 3: Navigate to API Keys"> In the expanded "Settings" sub-menu, click exactly on the link labeled **API Keys**. This will take you to the secure credentials center. </Step> <Step title="Step 4: Initiate Key Generation"> In the top right corner of the API Keys page, click the prominent blue button labeled **Create API Key**. A configuration screen will slide out or appear in a modal. </Step> <Step title="Step 5: Name the Key"> In the "API Key Name" field, type exactly: `Flex Forms Production API`. Giving it a descriptive name ensures your security team will not accidentally delete it during future audits. </Step> <Step title="Step 6: Assign Strict Permissions (Crucial Step)"> Under "API Key Permissions", DO NOT select "Full Access" (this is a massive security risk). Instead, select **Restricted Access**. A massive list of permissions will appear. Scroll down the list until you find the section explicitly labeled **Mail Send**. Click on it to expand it, and move the slider to grant **Full Access** ONLY to the "Mail Send" capability. You do not need to grant any other permissions. </Step> <Step title="Step 7: Copy the API Key"> Click the **Create & View** button at the bottom of the screen. SendGrid will generate a very long string of alphanumeric characters starting with `SG.`. <Callout type="critical"> **CRITICAL WARNING:** You must copy this token immediately. For security reasons, SendGrid will *never* display this full token to you again. If you lose it, you must revoke it and start over at Step 4. </Callout> Click the token string to copy it to your clipboard. </Step> <Step title="Step 8: Create a Connection (recommended)"> Switch to Flex Forms → **Integrations** → **Connections**. Create a **SendGrid** connection, paste the `SG.` API key, and connect. For a single shared account you can use Catalog → SendGrid instead. </Step> </Steps> On each form that should send via SendGrid, open hub **Integrations** → **SendGrid**, enable the feed, and pick the **Connection**. *** ## Configuration & Masterclass Usage Once SendGrid is authenticated and active, it silently takes over the email transport layer for all notifications generated by Flex Forms (such as the "Submitter Receipt" or "Admin Alert" emails configured in the Studio). There is no field mapping required for SendGrid, as it simply acts as the delivery engine for emails formatted by Flex Forms. ### The Domain Authentication Trap <Tree> <Tree.Folder name="Strict Sender Validation"> <Tree.File name="If you verified the domain: yourcompany.com in SendGrid's Sender Authentication settings." /> <Tree.File name="You configure a Flex Forms Admin Alert to send FROM: sales@anotherdomain.com." /> <Tree.File name="SendGrid intercepts the email payload." /> <Tree.File name="SendGrid sees the FROM domain (anotherdomain.com) DOES NOT match the verified domain." /> <Tree.File name="SendGrid instantly DROPS the email and throws a 403 Forbidden error." /> </Tree.Folder> </Tree> <Callout type="warning"> **CRITICAL SENDER RULE:** To guarantee delivery, the "From Address" configured in your Flex Forms Notification Settings in the Studio MUST exactly match the verified domain you configured in SendGrid (SendGrid Settings > Sender Authentication). If you try to send from an unverified domain, the email will simply disappear into the void. </Callout> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 401 Unauthorized"> **The Problem:** The server logs show a `401 Unauthorized` error when attempting to send an email. **The Solution:** This almost always means the API Key you pasted in Step 8 is incorrect, missing the `SG.` prefix, or contains a trailing space. If you verify the key is correct, it means a SendGrid administrator deleted or revoked the key. Generate a new one and update Flex Forms. </Accordion> <Accordion title="API Error: 403 Forbidden"> **The Problem:** The server logs show a `403 Forbidden` error when attempting to send. **The Solution:** You have encountered the Domain Authentication Trap. The "From Address" defined in Flex Forms is not authorized in SendGrid. Either change the From Address in Flex Forms, or log into SendGrid and complete the "Sender Authentication" process for that domain. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **SendGrid API Key** The master API key that allows Flex Forms to send emails via SendGrid's v3 Mail Send API. Create this in **Settings → API Keys**. It *must* have the `mail.send` permission scope. </ParamField> <ParamField type="text"> **Default from email** The fallback sender address (e.g., `noreply@example.com`). **CRITICAL:** The domain in this email address *must* be fully authenticated in your SendGrid Sender Authentication settings. SendGrid will silently drop emails sent from unverified domains. </ParamField> <ParamField type="text"> **Default from name** The fallback sender name (e.g., `Flex Forms System`). </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Envelope & Addressing <ParamField type="text"> **To** The destination email address. You can provide a hardcoded email (e.g., `sales@example.com`) or use a merge tag to dynamically send the email to the respondent (e.g., `{{email_input}}`). Separate multiple addresses with commas. </ParamField> <ParamField type="text"> **From email** Overrides the Global Default From Email for this specific form. Must still belong to a verified SendGrid domain. </ParamField> <ParamField type="text"> **From name** Overrides the Global Default From Name. </ParamField> <ParamField type="text"> **Reply-To** When the recipient clicks "Reply" in their email client, their response will go here. *Highly recommended:* Set this to the user's email block (e.g., `{{email_input}}`) so your team can reply directly to the submitter. </ParamField> <ParamField type="text"> **CC** Carbon Copy addresses. Comma-separated. </ParamField> <ParamField type="text"> **BCC** Blind Carbon Copy addresses. Comma-separated. Excellent for silent auditing. </ParamField> #### Email Content <ParamField type="text"> **Subject** The subject line of the email. Supports merge tags (e.g., `New Lead: {{company_name}}`). </ParamField> <ParamField type="textarea"> **Message body** The actual content of the email. You have full control over the layout. Use merge tags to inject form answers. </ParamField> <ParamField type="select"> **Content type** Determines how SendGrid parses your `body`. **Options:** * `text/plain`: Standard, unformatted text. Safe and reliable. * `text/html`: Allows you to write raw HTML in the `body` (e.g., `<h1>New Lead</h1>`). SendGrid will automatically generate a plain-text fallback version for older clients. </ParamField> #### Attachments <ParamField type="text"> **Attachment fields** If your form contains File Upload blocks, type their exact names here (comma-separated). Flex Forms will automatically extract the files from the submission, Base64 encode them, and inject them directly into the SendGrid JSON payload as native email attachments. </ParamField> # Slack Integration Source: https://flexforms.bjanczak.com/integrations/slack A comprehensive guide to sending instant, perfectly formatted notifications and lead summaries directly to specific Slack channels. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how Flex Forms structures the complex UI payloads, please read about Slack's Block Kit formatting in the [Official Slack API Documentation](https://api.slack.com/messaging/sending). </Banner> The **Slack** integration is the ultimate internal notification tool for modern teams. Whenever a high-value form is submitted, Flex Forms instantly compiles the user's answers into a beautifully formatted Slack Block Kit layout and pushes it directly into a specific Slack channel. This allows your team to discuss, triage, and respond to leads in real-time without ever opening their email. ## Enterprise Business Use Cases <CardGroup> <Card title="Instant Sales Alerts" icon="bell"> Instantly notify the `#sales-team` channel the exact second a prospect requests an enterprise demo. The Slack message contains their name, company size, and phone number, allowing the first available SDR to claim the lead immediately. </Card> <Card title="Support Ticket Triage" icon="bug"> Route bug reports from a technical support form directly into the `#engineering-bugs` channel. Developers can instantly start a threaded conversation on the exact Slack message to discuss the bug without leaving their workflow. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Prefer **Connections** for bot-token workspaces (channel pickers, Block Kit API). Incoming webhooks still work for simple one-channel alerts. ### Recommended: Bot token via Connections <Steps> <Step title="Step 1: Create a Slack app"> Open `https://api.slack.com/apps` → **Create New App** → **From scratch**. Name it `Flex Forms Bot` and pick your workspace. </Step> <Step title="Step 2: Add Bot Token Scopes"> Under **OAuth & Permissions**, add scopes such as `chat:write`, `channels:read`, and `users:read` (plus any extras your workspace policy requires). </Step> <Step title="Step 3: Install the app"> Install to the workspace and copy the **Bot User OAuth Token** (`xoxb-…`). </Step> <Step title="Step 4: Create a Connection"> In Flex Forms → **Integrations** → **Connections**, create a **Slack** connection, paste the bot token, and connect. </Step> <Step title="Step 5: Wire the form feed"> Open the form → hub **Integrations** → **Slack**. Enable the feed, choose your **Connection**, set delivery to API, pick a channel, and save. </Step> </Steps> ### Alternative: Incoming webhook (single channel) <Steps> <Step title="Step 1: Enable Incoming Webhooks"> In the Slack app settings, open **Incoming Webhooks** and switch it **On**. </Step> <Step title="Step 2: Add a webhook to a channel"> Click **Add New Webhook to Workspace**, pick the channel, and copy the `https://hooks.slack.com/services/…` URL. </Step> <Step title="Step 3: Paste on the form feed"> Open the form → hub **Integrations** → **Slack**, paste the webhook URL (or store it on a Connection / Catalog credential if you reuse it), and save. </Step> </Steps> ### Optional: inbound Slack events To accept Slack → Flex Forms callbacks (for example URL verification and signed events), add the **Signing Secret** on the Slack Catalog/Connection credentials and point Slack’s Request URL at: `POST /flex-forms/integrations/slack/webhook` *** ## Configuration & Masterclass Usage With a Connection (bot token) or webhook URL on the form feed, Flex Forms compiles answers into a readable Slack Block Kit layout and posts to the chosen channel. ### Multi-Channel Routing Strategy Use one Slack Connection per workspace, then pick different channels per form — or use separate incoming webhooks when you want hard isolation without bot scopes. <Tree> <Tree.Folder name="Enterprise Routing Example"> <Tree.File name="Form: 'Contact Sales' -> Connection + channel #sales-leads" /> <Tree.File name="Form: 'Report a Bug' -> Connection + channel #engineering-triage" /> <Tree.File name="Form: 'Partner Application' -> Incoming webhook #biz-dev" /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 404 channel_not_found"> **The Problem:** The server logs show a `404 channel_not_found` error, or the Slack messages simply aren't appearing. **The Solution:** This usually happens if the channel you selected in Step 7 was deleted, or if it was a Private Channel and the Flex Forms Bot was kicked out. To fix this, you must go back to your Slack API dashboard, generate a brand new Webhook URL for an active channel, and paste the new URL into Flex Forms. </Accordion> <Accordion title="API Error: 403 invalid_token"> **The Problem:** The server logs show a `403 invalid_token` error. **The Solution:** The Webhook URL you pasted into Flex Forms is incorrect, missing characters, or has been explicitly revoked by a Slack Workspace Administrator. Ensure you copied the entire URL perfectly, starting with `https://hooks.slack.com/services/...`. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Bot User OAuth Token** **Recommended Method:** This is the primary token (starts with `xoxb-`) that gives Flex Forms deep integration capabilities. It allows the plugin to dynamically fetch your public and private channels, direct message users, and post rich Block Kit messages. *Requires the following scopes: `chat:write`, `channels:read`, `groups:read`, `users:read`, `im:write`.* </ParamField> <ParamField type="password"> **Default Incoming Webhook URL** **Legacy Fallback:** If you do not want to create a Slack App and prefer the old way of doing things, paste a standard Incoming Webhook URL here (`https://hooks.slack.com/services/...`). Note that webhooks are hardcoded to a single channel and cannot dynamically DM users. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Delivery & Targeting <ParamField type="select"> **Delivery mode** Dictates which API strategy Flex Forms uses to send the message. **Options:** * `auto`: Automatically prefers the robust Bot Token API, but silently falls back to Webhooks if the Bot Token is missing. * `api`: Forces the use of the Bot API (requires a valid `bot_token`). * `webhook`: Forces the use of an Incoming Webhook (bypassing the Bot). </ParamField> <ParamField type="select"> **Send to** When using the Bot API (`api` delivery mode), this determines the destination type. **Options:** * `channel`: Posts to a standard public or private channel. * `user`: Sends a 1-on-1 Direct Message to a specific Slack user in your workspace. </ParamField> <ParamField type="remote_select"> **Slack channel** A dynamically loaded dropdown of all channels your Bot has access to. Select the specific channel to route these form submissions into (e.g., `#sales-leads`). </ParamField> <ParamField type="remote_select"> **Slack user** A dynamically loaded dropdown of all users in your workspace. Used when `send_to` is set to `user`. Flex Forms will open a DM with this person. </ParamField> <ParamField type="password"> **Webhook URL override** If you are using `webhook` delivery but want *this specific form* to post to a different channel than the Global Default Webhook, paste the unique Webhook URL here. </ParamField> #### Message Customization <ParamField type="textarea"> **Message** The main text block of the Slack notification. If left empty, Flex Forms auto-generates a clean summary of the answers. You can use merge tags to build custom templates. *Example:* `Hey team! New enterprise lead from {{company_name}} just requested a demo.` </ParamField> <ParamField type="text"> **Notification title** The bold header text appearing at the top of the Slack message. </ParamField> <ParamField type="toggle"> **Attach all answer fields** If enabled, Flex Forms will automatically append a well-formatted table (using Slack Block Kit) containing every single question and answer from the form below your main message. </ParamField> <ParamField type="text"> **Image URL fields** If your form asks users to provide a link to an image (e.g., a logo or screenshot), you can type the block names here (comma-separated). Flex Forms will extract those URLs and embed them natively as rich image attachments in the Slack message. </ParamField> #### Webhook Overrides <ParamField type="text"> **Webhook bot username** *Only for Webhook mode.* Overrides the name of the bot posting the message (e.g., `Flex Forms Leads`). </ParamField> <ParamField type="text"> **Webhook icon URL** *Only for Webhook mode.* Provide a custom HTTPS link to an image (like your company logo) to replace the default Slack bot avatar. </ParamField> # Stripe Integration Source: https://flexforms.bjanczak.com/integrations/stripe Accept Stripe payments on fill and embed — global keys in Integrations, once-per-form Payment block, optional webhooks, and a Transactions ledger with refunds. <Banner type="info"> Connect Stripe under **Integrations** (keys + optional webhook). Payment options (amount, currency, capture, billing fields, …) live only on the **Stripe Payment** block settings in Studio — not on Form Settings → Integrations. </Banner> Stripe is available on **every Flex Forms plan**. There is no separate “Enterprise-only Stripe” tier — you need a Stripe account and a published form with a Payment block. ## Architecture | Surface | What you configure | | - | - | | **Integrations** (left rail) | Test/Live publishable + secret keys, mode, optional webhook signing secret | | **Studio → [Stripe Payment](/features/blocks/stripe-payment)** block | Amount (fixed or from field), currency, capture, receipts, billing/shipping collection, Payment Element options, **Required** | | **Form Settings → Integrations** | Stripe does **not** appear here | | **[Transactions](/features/transactions/overview)** (rail, under Contacts) | Ledger of payments — export CSV and refund from the hub | A form may contain **at most one** Stripe Payment block. *** ## Connect Stripe (global) <Steps> <Step title="Open Stripe API keys"> Use [Stripe Dashboard → API keys](https://dashboard.stripe.com/apikeys). Start in **Test mode**. </Step> <Step title="Paste keys in Flex Forms"> Integrations → **Stripe** → enable → Mode **Test** → paste `pk_test_…` and `sk_test_…` → Save. Flex Forms verifies the secret against Stripe’s Balance API and marks the connection **Ready** when it succeeds. </Step> <Step title="Optional webhook (recommended)"> In Stripe → Developers → Webhooks, add your endpoint: `https://your-domain.com/flex-forms/integrations/stripe/webhook` (Named route: `flex-forms.stripe.webhook`.) Subscribe to **all** of these events: | Event | Why | | - | - | | `payment_intent.succeeded` | Confirm / sync successful charges | | `payment_intent.payment_failed` | Mark failed attempts | | `payment_intent.canceled` | Mark canceled intents | | `payment_intent.processing` | Delayed methods (e.g. some bank transfers) | | `charge.refunded` | Sync full/partial refunds made in Stripe Dashboard or the hub | Paste the `whsec_…` signing secret into Stripe integration settings. </Step> <Step title="Go Live"> Switch Mode to **Live**, paste live keys, save, and restrict the publishable key by domain in Stripe. Use a **separate** Live webhook endpoint (or dual endpoints) with the Live signing secret. </Step> </Steps> <Warning> Secret keys never leave your server. Restrict publishable keys by domain in production. Webhooks are optional for first-time success recording — submit-time verification already writes the ledger when payment is required — but **strongly recommended** for refunds done in the Stripe Dashboard, delayed methods, and status drift. </Warning> *** ## Payment block settings (Studio) After Stripe is **Ready**, insert **Stripe Payment** from **Payments** (see also the [block page](/features/blocks/stripe-payment)). Configure on the block (not in Form Integrations): * **Required** — when off, respondents may submit without paying (optional payment / donation-style forms) * **Payment type** * **Fixed amount** — one charge amount * **Product options (choice cards)** — labeled options with prices (Studio canvas: Add option → name + price). On fill, respondents pick a radio card. * **Customer enters amount** — free amount field; optional **minimum** / **maximum** toggles with amounts below each toggle * **From a form field** — pick a Number, Number stepper, or Currency field from a dropdown (Amount field) * **Also allow custom amount** — when using Product options, let respondents type their own amount instead * **Currency** — one currency for the whole Payment block * **Charge description** * **Capture** — Automatic or Manual authorize * **Payment methods** * **Automatic (Dynamic payment methods)** — Stripe shows relevant methods for the currency and your Dashboard (cards, BLIK, Przelewy24, Klarna, Apple Pay / Google Pay when eligible) * **Cards only** — card Payment Element only * **Stripe receipt email** — Stripe’s API supports `PaymentIntent.receipt_email` and emails a receipt on successful capture. Flex Forms options: * **Do not send** * **Primary email on the form** * **Specific email field** * **Email collected in Stripe Payment Element** — uses the billing email typed in the payment UI (ConfirmationToken → patch PI → confirm) * **Collect billing** name, email, phone, address — Stripe’s Payment Element collects these when the selected payment method needs them * **Collect shipping address** — when on, Stripe can collect a shipping address in the payment form * **Show amount summary** * Save payment method (`setup_future_usage`) * Statement descriptor suffix Successful charges write **payment method type** (card / BLIK / P24 / …) plus **card brand + last 4** into the [Transactions](/features/transactions/overview) ledger (never the full card number). *** ## Poland / wallets checklist (Dynamic payment methods) Use **Payment methods → Automatic** and complete these in Stripe (not inside Flex Forms): 1. [Payment methods](https://dashboard.stripe.com/settings/payment_methods) — enable BLIK, Przelewy24, Klarna, cards, wallets as needed 2. Charge currency on the block (e.g. **PLN** for BLIK) 3. Public fill URL over **HTTPS** (required for wallets) 4. Register your domain for **Apple Pay** in the Stripe Dashboard 5. Test with Stripe test cards / test BLIK codes before switching to Live Flex Forms does not hard-code a method list — Stripe’s Payment Element decides relevance from Dashboard + currency + respondent context. *** ## Fill runtime 1. Stripe.js loads only on fill/embed when the form includes the Payment block. 2. Respondents see fixed amount, product choice cards, and/or a custom amount field — depending on Payment type. 3. Payment Element mounts in **accordion** layout (radios always visible) with your publishable key. 4. On submit (when **Required** is on), Stripe confirms the PaymentIntent. 5. When **Required** is off, submit can succeed without a payment. 6. Flex Forms verifies amount, currency, form metadata, and mode — then saves the submission and writes the **[Transactions](/features/transactions/overview)** ledger. 7. The submit button stays disabled with a sending label until the AJAX request finishes (no full page reload). Card numbers never touch Flex Forms storage. ### Preview vs published | Mode | Submissions saved | Stripe confirmed | Transactions row | | - | - | - | - | | **Preview** (signed Studio preview) | No | No | No | | **Published** fill / embed | Yes | Yes (when Required / paid) | Yes | *** ## Transactions hub Open **[Transactions](/features/transactions/overview)** in the Flex Forms left rail (next to Contacts). You’ll see cursor-paginated payments with provider, status, amount, payer, and form. From the hub you can: * **Export** CSV (respects filters) * **Refund** (full remaining balance) or **Partial…** refund for Stripe payments that are succeeded or partially refunded Hub refunds call Stripe immediately and update the ledger; webhooks may also sync `charge.refunded` events (including refunds started in the Stripe Dashboard). Permissions (optional Spatie): `viewTransactions`, `exportTransactions`, `refundTransactions` — see [Studio permissions](/developers/studio-permissions). *** ## Troubleshooting <AccordionGroup> <Accordion title="Form shows thank-you but no payment / empty Transactions"> Most often the form is still a **draft** or you opened **Preview**. Publish the form, use the public fill URL, and confirm Stripe mode (Test vs Live) matches the keys you pasted. </Accordion> <Accordion title="Payment Element does not mount"> Stripe must be **Ready** in Integrations, the Payment block must be on the form, and the fill page must load over HTTPS in production. Check the browser console for Stripe.js errors and that the publishable key matches the mode. </Accordion> <Accordion title="Webhook signature errors"> Paste the exact `whsec_…` for that endpoint. Test and Live secrets differ. Endpoint path must be `/flex-forms/integrations/stripe/webhook` on the same host that serves Flex Forms. </Accordion> <Accordion title="Refund button missing"> Your role needs `refundTransactions` (or the mapped Spatie name). Confirm the row is a Stripe payment in a refundable status. </Accordion> </AccordionGroup> *** ## Credit card block vs Stripe Payment The **[Credit card](/features/blocks/credit-card)** input block is not a gateway. For live charges use **Integrations → Stripe** + the **[Stripe Payment](/features/blocks/stripe-payment)** block. # Trello Integration Source: https://flexforms.bjanczak.com/integrations/trello A comprehensive guide to instantly converting form submissions into highly detailed Trello Cards. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how Trello handles API Keys and secure authorization Tokens, please read the [Official Trello REST API Documentation](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/). </Banner> The **Trello** integration turns your forms into an automated project management engine. Instead of manually copying data from emails, Flex Forms can instantly generate structured Trello Cards in specific columns (Lists) on specific Boards the moment a form is submitted. ## Enterprise Business Use Cases <CardGroup> <Card title="Automated Support Queues" icon="ticket"> Route bug reports or feature requests directly into an "Inbox" List on your engineering team's Trello Board, complete with the user's uploaded screenshots. </Card> <Card title="Task Generation" icon="list-check"> When a new client completes an onboarding questionnaire, instantly generate a master Trello Card containing all their answers and place it in the "To Do" column for your project managers. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Trello requires generating both an **API Key** and an **Authorization Token**. Trello's security model requires you to generate these separately. Follow these exact instructions. <Steps> <Step title="Step 1: Log into Trello"> Open your web browser and navigate to Trello. Enter your credentials and ensure you are logged into the account that has edit access to the Board you want to use. </Step> <Step title="Step 2: Access the Power-Ups Admin Portal"> Open a new tab in your browser and navigate directly to this exact URL: `https://trello.com/power-ups/admin`. This is the developer portal where you generate API credentials. </Step> <Step title="Step 3: Create a New Integration"> On the Power-Ups Admin page, click the blue button labeled **New**. A form will appear. Fill it out with the following exact details: * **Name:** `Flex Forms Website Integration` * **Workspace:** Select your company's Trello Workspace from the dropdown. * **Email:** Your administrator email address. * **Support Contact:** Your email address again. * **Author:** Your company name. Click the **Create** button. </Step> <Step title="Step 4: Copy the API Key"> You will be redirected to the API Keys page for your new integration. At the top, you will see a long string of alphanumeric characters labeled **API Key**. Highlight it, right-click, and select **Copy**. </Step> <Step title="Step 5: Inject the API Key into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Trello. 2. Paste the string you copied in Step 4 into the **API Key** input field. </Step> <Step title="Step 6: Generate the Authorization Token"> Switch back to the Trello tab. Look immediately to the right of your API Key. You will see a small text link that says **Token** (usually written as "generate a Token"). Click exactly on this link. </Step> <Step title="Step 7: Grant Access and Copy Token"> A new window will open asking you to grant "Flex Forms Website Integration" access to your Trello account. Scroll to the bottom and click the green **Allow** button. Trello will now display a blank white page with a single, very long string of characters. This is your Authorization Token. Highlight the entire string and **Copy** it. </Step> <Step title="Step 8: Inject Token and Save"> Switch back to Flex Forms. Paste this long string into the **API Token** input field. Click the **Save Settings** button to finalize the secure connection. </Step> </Steps> *** ## Masterclass: Routing Cards to Boards Now that the connection is active, you must instruct Flex Forms exactly where to place the new Cards. <Callout type="info"> **List ID Requirement:** You must provide the specific **List ID** in the form's integration settings. A "List" is the vertical column (e.g., "To Do", "Doing") on a Trello Board. **How to find the List ID:** 1. Open your Trello Board in a browser. 2. Add `.json` to the end of the URL (e.g., `trello.com/b/xyz/my-board.json`) and press Enter. 3. Search the massive text wall (Ctrl+F) for the name of your List (e.g., "To Do"). 4. Look for the `"id": "xxxxxxxxxxxxx"` string immediately preceding the name of the list. Copy that alphanumeric ID. </Callout> ### Field Mapping Architecture Trello is highly unstructured compared to a CRM. Every Card essentially has a Title and a Description. By default, Flex Forms intelligently compiles every single answer the user provided into a clean, markdown-formatted list and injects it into the **Card Description**. <Tabs> <Tab title="Card Title Mapping"> You can map a specific form field to act as the primary **Name** (Title) of the Trello Card. The format is always: `name=flex_forms_block_name` </Tab> <Tab title="Exact Mapping Example"> <CodeGroup> ```text Field Map (Enter this in the form hub Integrations field map) theme={} name=subject_dropdown ``` </CodeGroup> </Tab> </Tabs> If you do not map the `name` field, Flex Forms will generate a generic title (e.g., "New Form Submission - \[Date]"). *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: 401 invalid token"> **The Problem:** The server logs show a `401 invalid token` error when attempting to create a Card. **The Solution:** The Token you pasted in Step 8 has expired or was revoked. Trello sometimes requires you to re-authorize apps. Go back to Step 6, generate a brand new Token, and update Flex Forms. </Accordion> <Accordion title="API Error: 400 invalid idList"> **The Problem:** The server logs show a `400 invalid idList` error. **The Solution:** The List ID you pasted into the form settings is incorrect. Ensure you extracted the `id` of the actual List (column), NOT the `id` of the entire Board or the `id` of an individual Card. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Trello API Key** From [https://trello.com/power-ups/admin](https://trello.com/power-ups/admin) </ParamField> <ParamField type="password"> **Trello Token** </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. <ParamField type="remote_select"> **Destination list** Board › list from boards you can access. </ParamField> <ParamField type="select"> **Card title field** Optional. Overrides the default title when the field has a value. </ParamField> <ParamField type="text"> **Default card title** Supports merge tags. </ParamField> <ParamField type="textarea"> **Card description template** Optional. Leave blank to send all fields as key: value lines. Supports . </ParamField> <ParamField type="text"> **Label IDs** Optional Trello label IDs for the new card. </ParamField> <ParamField type="text"> **Member IDs** Optional assignees. </ParamField> <ParamField type="select"> **Due date field** Optional. Value should parse as a date/time. </ParamField> <ParamField type="select"> **Card position** **Options:** * `top`: Top of list * `bottom`: Bottom of list </ParamField> # Cloudflare Turnstile Integration Source: https://flexforms.bjanczak.com/integrations/turnstile A comprehensive guide to securing your forms with Cloudflare's privacy-first, completely invisible CAPTCHA alternative. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how Turnstile handles cryptographic tokens and privacy-preserving challenge validation, please read the [Official Cloudflare Turnstile Documentation](https://developers.cloudflare.com/turnstile/). </Banner> The **Cloudflare Turnstile** integration provides enterprise-grade spam protection for your Flex Forms without forcing your users to click frustrating "traffic light" puzzles. Turnstile is a smart alternative to reCAPTCHA that preserves user privacy, offering both visible challenges and completely invisible background telemetry. ## Enterprise Business Use Cases <CardGroup> <Card title="Invisible Spam Prevention" icon="user-shield"> Eliminate bot submissions and spam payloads completely without adding any friction to the user experience. Turnstile analyzes browser telemetry in the background to verify human authenticity seamlessly. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Turnstile requires generating a **Site Key** and a **Secret Key** inside the Cloudflare dashboard. Follow these exact instructions. <Steps> <Step title="Step 1: Log into Cloudflare"> Open your web browser and navigate to the Cloudflare dashboard (`dash.cloudflare.com`). Log in with your company's administrator account. </Step> <Step title="Step 2: Access the Turnstile Menu"> Once logged in, look at the **left-hand sidebar navigation menu**. You do not need to click on a specific domain yet. Look down the list and click exactly on the link labeled **Turnstile**. </Step> <Step title="Step 3: Add a New Site"> On the Turnstile overview page, click the prominent blue button in the center or top right labeled **Add site**. A configuration form will appear. </Step> <Step title="Step 4: Configure the Widget"> Fill out the form with the following exact details: * **Site name:** `Flex Forms Website` * **Domain:** Enter the exact domain where your forms are hosted (e.g., `yourcompany.com`). Do not include `https://` or trailing slashes. * **Widget Mode:** You can select **Managed**, **Non-interactive**, or **Invisible** depending on whether you want the widget to be visible or run silently in the background. Click the **Create** button. </Step> <Step title="Step 5: Copy the Keys"> Cloudflare will instantly generate two distinct cryptographic keys: a **Site Key** and a **Secret Key**. Leave this window open, as you will need to copy both of these strings exactly as they appear. </Step> <Step title="Step 6: Inject Credentials into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. 1. Open Integrations (Flex Forms left rail) → Cloudflare Turnstile. 2. Switch back to Cloudflare, highlight the **Site Key**, and copy it. 3. Paste it into the **Site Key** input field in Flex Forms. 4. Switch back to Cloudflare, highlight the **Secret Key**, and copy it. 5. Paste it into the **Secret Key** input field in Flex Forms. 6. Click the **Save Settings** button to finalize the secure connection. </Step> </Steps> *** ## Configuration & Masterclass Usage Once the keys are saved, Turnstile is available globally for forms. Enable CAPTCHA on a specific form under **Form Settings → Access → CAPTCHA**. Choose **Cloudflare Turnstile** when both Turnstile and reCAPTCHA are connected — only one CAPTCHA provider can be active per form. Flex Forms injects the widget on the last step of that form (no canvas block required). ### The Validation Architecture <Tree> <Tree.Folder name="How Turnstile Works Under the Hood"> <Tree.File name="1. A user visits your form." /> <Tree.File name="2. The Turnstile script analyzes their browser invisibly." /> <Tree.File name="3. The user clicks Submit." /> <Tree.File name="4. Flex Forms intercepts the submission and injects a cryptographic 'cf-turnstile-response' token into the payload." /> <Tree.File name="5. The Flex Forms server securely pings the Cloudflare API to validate the token." /> <Tree.File name="6. If valid, the submission proceeds. If invalid or missing, it throws a 400 Bad Request error." /> </Tree.Folder> </Tree> *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: Domain Mismatch"> **The Problem:** The Turnstile script throws an error on the frontend stating the domain is invalid. **The Solution:** The domain you entered in Step 4 does not match the URL where the form is actually embedded. Ensure you added the correct domain (e.g., if the form is on a landing page builder like `try.yourcompany.com`, you must add `try.yourcompany.com` to Cloudflare). </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="text"> **Site key** From Cloudflare Dashboard → Turnstile → your widget. </ParamField> <ParamField type="password"> **Secret key** </ParamField> <ParamField type="select"> **Theme** Widget appearance. Auto follows the visitor’s color scheme. **Options:** * `auto`: Auto * `light`: Light * `dark`: Dark </ParamField> <ParamField type="select"> **Widget size** Normal is the standard widget. Flexible stretches to the container. Compact is smaller. **Options:** * `normal`: Normal * `flexible`: Flexible * `compact`: Compact </ParamField> ### Form-Level Settings Located in **Form Settings → Access → CAPTCHA** for a specific form. <ParamField type="select"> **CAPTCHA provider** Choose `turnstile` for this form, or leave CAPTCHA off. If reCAPTCHA is also connected, pick exactly one provider — never both. </ParamField> # Custom Webhooks Integration Source: https://flexforms.bjanczak.com/integrations/webhooks A comprehensive guide to securely routing raw form payloads to your own servers or custom endpoints. <Banner type="info"> 📚 **Developer Reference:** This integration executes a standard `POST` request with an `application/json` payload. You must ensure your receiving endpoint is configured to parse flat JSON objects. </Banner> The **Custom Webhooks** integration provides ultimate flexibility for enterprise developers. Instead of relying on predefined integrations, you can instruct Flex Forms to fire a raw, unadulterated JSON payload directly at a URL you control on your own servers, allowing you to ingest the data into custom internal applications. ## Enterprise Business Use Cases <CardGroup> <Card title="Proprietary System Ingestion" icon="database"> If your company runs a highly customized, internally built CRM or ERP system, simply expose an endpoint, paste the URL into Flex Forms, and let your internal servers ingest the JSON payload seamlessly. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms via Custom Webhooks is incredibly simple, as it only requires a valid URL. <Steps> <Step title="Step 1: Prepare Your Endpoint"> Ensure your server (or an intermediary service like Make.com) has exposed a public URL that is configured to accept incoming HTTP `POST` requests containing `application/json` payloads. </Step> <Step title="Step 2: Copy the URL"> Copy the full, secure HTTPS URL of your endpoint (e.g., `https://api.yourcompany.com/v1/webhooks/flex-forms`). </Step> <Step title="Step 3: Inject the URL into Flex Forms"> Open your Flex Forms administrative dashboard. <Callout type="info"> **Form-Level Configuration:** Because different forms require different routing logic, you configure Webhooks at the *Form Level*, not the Global Settings level. </Callout> 1. Open the specific form you want to connect in the Flex Forms Studio. 2. Open the form hub and select the **Integrations** tab. 3. Find the **Webhooks** section. 4. Paste the URL you copied into the input field. 5. Save your form. </Step> </Steps> *** ## Configuration & Masterclass Usage There is no field mapping required for Custom Webhooks. Flex Forms simply packages all the form data, based exactly on the block names you defined in the Studio, into a clean, flat JSON object and fires it at the URL. ### The JSON Payload Architecture When a user submits the form, your server will receive a POST request with a body that looks exactly like this: <CodeGroup> ```json Incoming Request Payload theme={} { "first_name_input": "Jane", "last_name_input": "Doe", "email_address": "jane@example.com", "company_size_dropdown": "Enterprise (500+)", "marketing_consent_checkbox": true } ``` </CodeGroup> Your internal servers are responsible for parsing this JSON and routing it to the appropriate databases. *** ## Troubleshooting & Enterprise FAQs <AccordionGroup> <Accordion title="API Error: Timeout"> **The Problem:** The form submission seems to hang or fail, and the logs show a timeout. **The Solution:** Flex Forms expects your endpoint to return a `200 OK` status code quickly. If your server receives the webhook, spends 30 seconds processing a complex database query, and *then* returns a 200, Flex Forms will time out and assume the request failed. Your endpoint should immediately return a `200 OK` acknowledging receipt, and then process the data asynchronously in the background. </Accordion> <Accordion title="Security & Authentication"> **The Problem:** How do I verify the webhook actually came from Flex Forms? **The Solution:** Currently, the webhook payload is a simple, unsigned JSON object. If you require strict security, we recommend appending a secret token as a URL parameter to your endpoint URL (e.g., `https://api.yourcompany.com/webhook?secret=123456789`). Your server can then reject any POST requests that do not include this exact secret parameter. </Accordion> </AccordionGroup> *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. *There are no global settings for generic Webhooks. All webhook endpoints are configured on a per-form basis.* ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Endpoint Configuration <ParamField type="text"> **Request URL** The destination server URL. **Must begin with `https://`**. Flex Forms blocks local IP addresses (e.g., `127.0.0.1`, `192.168.x.x`) to prevent Server-Side Request Forgery (SSRF) attacks. You can use merge tags (e.g., `https://api.example.com/hooks/{{department_id}}`) to route requests dynamically. </ParamField> <ParamField type="select"> **Request method** The HTTP verb used for the request. **Options:** * `POST`: Standard for creating records. * `PUT` / `PATCH`: Often used for updating resources. * `GET` / `DELETE`: When using these, the payload body is automatically converted into query string parameters (e.g., `?email=test&name=john`). </ParamField> <ParamField type="textarea"> **Request headers** Pass custom HTTP headers for authentication or API routing. You must provide one header per line using the format `Header-Name=Value`. *Example:* `Authorization=Bearer {{token_field}}` `X-Custom-Form-Id=submission` </ParamField> #### Payload Formatting <ParamField type="select"> **Request format** How the payload data is serialized. **Options:** * `json`: Sends a strict `application/json` payload. Best for modern APIs. * `form`: Sends data as `application/x-www-form-urlencoded`. Often required by legacy systems. </ParamField> <ParamField type="select"> **Request body** Determines what data is included in the webhook payload. **Options:** * `all_fields`: Automatically dumps every form answer into the payload. * `select_fields`: Gives you strict control, forcing you to define a specific `field_values` map. </ParamField> <ParamField type="textarea"> **Field values** *Only used if `body_type` is set to `select_fields`.* Manually construct the exact JSON keys or form parameters sent to the server. Format is `payload_key=form_block_name` (or literal text). *Example:* `customer_email=email` `source=website_form` (literal) </ParamField> <ParamField type="select"> **Include submission meta** *Only applies when `body_type` is `all_fields`.* If enabled (`Yes`), Flex Forms automatically injects system metadata (Form ID, Form Title, Submission ID, and Submitted At timestamp) into the root of the webhook payload. </ParamField> # Zapier Integration Source: https://flexforms.bjanczak.com/integrations/zapier A comprehensive guide to securely routing form payloads to over 5,000+ apps using Zapier Webhooks. <Banner type="info"> 📚 **Developer Reference:** To deeply understand how Zapier parses incoming JSON arrays, please read the [Official Zapier Webhook Documentation](https://zapier.com/apps/webhook/integrations). </Banner> The **Zapier** integration acts as a universal bridge for Flex Forms. If we do not have a native integration for your highly specific, niche software (like a proprietary ERP or an obscure SMS provider), you can use Zapier to catch the form submission and route it anywhere in the world. ## Enterprise Business Use Cases <CardGroup> <Card title="Multi-App Routing" icon="diagram-project"> Catch the Flex Forms payload in Zapier, and use Zapier's multi-step logic to simultaneously send an SMS via Twilio, add a row to Smartsheet, and update an inventory count in Shopify. </Card> </CardGroup> *** ## Ultra-Detailed, Step-by-Step Setup Guide Connecting Flex Forms to Zapier does not require API keys. Instead, it relies on creating a secure, unique **Webhook URL** inside Zapier that acts as a "catcher's mitt" for the data. <Steps> <Step title="Step 1: Log into Zapier"> Open your web browser and navigate to the Zapier dashboard. Log into your account. *Note: The "Webhooks by Zapier" feature requires a paid Zapier plan. It is not available on their free tier.* </Step> <Step title="Step 2: Create a New Zap"> In the top left corner of the Zapier dashboard, click the prominent orange button labeled **+ Create Zap**. This will open the workflow editor. </Step> <Step title="Step 3: Configure the Trigger"> Click on the first step in the workflow (the Trigger). In the search bar, type exactly: `Webhooks by Zapier`. Select the app with the blue icon. </Step> <Step title="Step 4: Select the Trigger Event"> In the "Event" dropdown menu on the right side of the screen, select exactly **Catch Hook**. Click the **Continue** button. (You can skip the "Pick off a Child Key" option by leaving it blank and clicking Continue again). </Step> <Step title="Step 5: Copy the Webhook URL"> Zapier will now generate a unique "Webhook URL" specifically for this workflow. It will look something like: `https://hooks.zapier.com/hooks/catch/123456/abcdef/`. Click the **Copy** button next to this URL. </Step> <Step title="Step 6: Inject the URL into Flex Forms"> Switch to your Flex Forms administrative dashboard in a new tab. <Callout type="info"> **Form-Level Configuration:** Because you want different forms to trigger different Zapier workflows, you configure Zapier at the *Form Level*, not the Global Settings level. </Callout> 1. Open the specific form you want to connect in the Flex Forms Studio. 2. Open the form hub and select the **Integrations** tab. 3. Find the **Zapier** section. 4. Paste the long Webhook URL you copied in Step 5 into the input field. 5. Save your form. </Step> <Step title="Step 7: Test the Connection"> Leave Zapier waiting for a test. Go to the front-end of your website and submit a real test entry through your Flex Form. </Step> <Step title="Step 8: Verify the Payload in Zapier"> Switch back to the Zapier tab and click **Test trigger**. Zapier will scan the URL, find the data you just submitted, and parse all your form fields into variables you can now map to any other app in Step 2 of your Zap. </Step> </Steps> *** ## Configuration & Masterclass Usage Once the Webhook URL is pasted into the form's settings, Flex Forms handles formatting the payload. There is no field mapping required in Flex Forms. You handle all the mapping inside Zapier itself. Flex Forms simply packages all the form data into a clean, flat JSON object and fires it at the URL you provided. ### The Payload Architecture <Tree> <Tree.Folder name="What Zapier Receives"> <Tree.File name="first_name_block: 'John'" /> <Tree.File name="last_name_block: 'Doe'" /> <Tree.File name="email_block: 'john@example.com'" /> <Tree.File name="custom_dropdown: 'Option B'" /> </Tree.Folder> </Tree> You will see these exact keys (based on the block names you defined in the Flex Forms Studio) appear in Zapier, ready to be mapped to Salesforce, Google Sheets, or Twilio. *** ## Configuration Reference The following advanced settings are available in the Flex Forms UI for this integration. Use this reference to understand exactly how each field impacts the API payload. ### Global Settings Located in **Integrations** in the Flex Forms left rail. <ParamField type="password"> **Zapier REST API token** **Optional:** If you want to use Zapier's new "REST API" trigger instead of the standard Catch Hook, you must generate a long, secure random string (e.g., a 64-character UUID) and paste it here. Flex Forms will require Zapier to authenticate using this Bearer token before serving form data. </ParamField> ### Form-Level Settings Located on the form hub **Integrations** tab for a specific form. #### Webhook Connection <ParamField type="text"> **Zapier Catch Hook URL** The exact URL generated by your Zapier "Webhooks by Zapier (Catch Hook)" trigger. *Security Note: Flex Forms will only accept URLs originating from `hooks.zapier.com` to prevent accidental data leaks to untrusted servers.* </ParamField> <ParamField type="text"> **Zap ID** Optional. If you are using the REST API feed lookup method (instead of Catch Hooks), you can enter the specific Zap ID here to link the form strictly to that Zap. </ParamField> #### Data Formatting <ParamField type="select"> **Prefer admin labels as keys** Controls how the JSON payload keys are named when they arrive in Zapier. **Options:** * `0`: No — Uses the raw block names (e.g., `phone_number_1`). Best for stable API integrations. * `1`: Yes — Uses the human-readable Admin Labels you configured in the Studio (e.g., `Mobile Phone`). Best if non-technical staff are building Zaps. </ParamField> <ParamField type="select"> **Include submission meta** If enabled (`Yes`), Flex Forms automatically injects system metadata (Form ID, Form Title, Submission ID, and Submitted At timestamp) into the root of the JSON body sent to Zapier. </ParamField> #### Testing & Control <ParamField type="select"> **Send as Zapier test request** If enabled (`Yes`), Flex Forms injects a special `X-Hook-Test: true` HTTP header into the payload. This tells Zapier to treat the submission as a sample/test record for building the Zap, rather than a live production run. </ParamField> # White-Labeling (Hide Branding) Source: https://flexforms.bjanczak.com/plans/hide-branding Remove the 'Powered by Flex Forms' watermark from your public forms to maintain a pristine, 100% custom brand experience. To provide a completely immersive and seamless brand experience for your respondents, <Badge>Pro</Badge>, **Enterprise**, and **Lifetime** licenses allow you to remove the "Powered by Flex Forms" watermark from every public fill page, popup, and embed. *Note: On a Standard license, the watermark is always visible. This is enforced securely by the licensing server.* ## The Enforcement Architecture ```mermaid theme={} flowchart TD Toggle[Studio Toggle 'Show Branding'] --> Server[Server-Side License Validation] Server -->|Standard Plan| Forced[Watermark Forced Visible] Server -->|Pro / Enterprise / Lifetime| Respect[Respects Your Toggle Setting] ``` *** ## How to Remove the Watermark <Steps> <Step title="Verify Your Active Plan"> Ensure your account is on Pro, Enterprise, or Lifetime by checking the [License Portal](https://license.bjanczak.com/flex-forms/panel). </Step> <Step title="Access Form Settings"> From Studio, open **Form settings (gear) → General** (form settings, not the Studio Design rail). </Step> <Step title="Disable the Watermark"> Uncheck the **Show branding** option. If you are on Pro, Enterprise, or Lifetime, the watermark disappears immediately from all live forms and embeds. If you are on a Standard plan, the system saves your preference, but the watermark will remain visible until you upgrade. </Step> <Step title="Verify in Production"> Reload your embedded form on your live production domain to confirm the watermark is gone. </Step> </Steps> <Warning> **Security Note:** White-labeling validation occurs server-side on every request, authenticated against your specific domain. It cannot be spoofed via client-side CSS or JavaScript. If your domain's license check fails, the watermark may safely reappear as a fallback. </Warning> *** ## Troubleshooting <AccordionGroup> <Accordion title="I upgraded to Pro, but the watermark is still visible"> License validations are cached briefly to ensure high performance. It may take a few minutes for the cache to clear. To force a refresh instantly, go to your **Global Settings** and re-save your Public Key. </Accordion> <Accordion title="Does white-labeling affect my Filament Admin UI?"> No. This setting exclusively affects the public-facing forms (the fill pages and embeds) that your respondents see. The internal Studio and Hub within your Filament panel will always display Flex Forms branding. </Accordion> <Accordion title="Is this setting per-form or account-wide?"> The toggle to hide branding is a **per-form** setting. However, whether the system *honors* that toggle is determined account-wide based on your active license plan. </Accordion> </AccordionGroup> <Panel> **Next Steps:** [Upgrade Your Plan](/plans/standard-pro-enterprise) · [Design & branding](/guides/design-pro) </Panel> # The License Portal Source: https://flexforms.bjanczak.com/plans/license-portal Manage Composer tokens (cmp_…), Public API Keys (pk_forms_…), domain seats, and license upgrades after your Lemon Squeezy purchase. The [License Portal](https://license.bjanczak.com/flex-forms/panel) is your customer dashboard for Flex Forms. After you buy on Lemon Squeezy, everything that unlocks package downloads and Studio activation lives here: Composer authentication, your Public API key, the list of allowed hostnames, and tools to change or refresh credentials. This page walks through the portal **after purchase**, section by section, so you always know which credential goes where. <Banner> Open the portal: [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel). Need a license first? [Buy Flex Forms](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0). </Banner> *** ## After you buy on Lemon Squeezy Lemon Squeezy handles checkout and issues a **Lemon license key**. Use that key only when you **register** on the License Portal (together with your email and a portal password). After signup, the portal **generates** the Composer token (`cmp_…`) and Public API key (`pk_forms_…`) you actually use to install and activate Flex Forms. The Lemon key is **not** a Composer password and **not** the key you paste into Filament. <Steps> <Step title="Complete checkout"> Purchase from the [Flex Forms store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0). Choose one of the four plans: Standard, Pro, Enterprise (yearly), or Lifetime (one-time). </Step> <Step title="Find your Lemon license key"> Open the Lemon receipt email or **My Orders**. Copy the **Lemon license key**. You will use it only to create or relink your portal account (and later for **Change license key** if you upgrade). </Step> <Step title="Create the portal account"> Go to [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel). Register with: * your **email** (same as Lemon checkout when possible), * a **password** for the portal, * your **Lemon license key**. The portal then **generates** your Composer token (`cmp_…`) and Public API Key (`pk_forms_…`). The Lemon key is only for this registration (and later **Change license key**) — never for Filament or Composer auth. </Step> <Step title="Grab the generated credentials"> Copy: 1. **Composer token** (`cmp_…`) — for [Installation](/get-started/installation) 2. **Public API Key** (`pk_forms_…`) — for [Activate license](/get-started/activate-license) / [Setup Wizard](/get-started/setup-wizard) Treat `cmp_…` like a password. `pk_forms_…` is safe to store in Filament Global Settings; it only unlocks hosts you whitelist. </Step> <Step title="Register hostnames"> Add every exact domain / subdomain / local host where Filament will run Flex Forms, up to your plan’s seat limit (table below). Then install with Composer and paste `pk_forms_…` into Filament. </Step> </Steps> ```mermaid theme={} flowchart LR Buy[Buy_on_Lemon] --> LemonKey[Lemon_license_key] LemonKey --> Portal[License_Portal_account] Portal --> Cmp[Composer_token_cmp] Portal --> Pk[Public_API_key_pk_forms] Portal --> Domains[Registered_domains] Cmp --> Install[composer_require] Pk --> Filament[Global_Settings_or_Setup_Wizard] Domains --> Filament ``` <Info> Lemon may show the purchase key as **inactive** until the first domain is added in the portal. That usually means “valid purchase, zero activations yet” — not a failed payment. See [Inactive vs Active](#inactive-vs-active-lemon-status) below. </Info> *** ## Portal sections (what each one is for) Use this map when you are inside the dashboard. Every section has a single job. ### Install via Composer (`cmp_…`) | | | | - | - | | **What you get** | A private **Composer token** starting with `cmp_` | | **What it unlocks** | Authenticated downloads from `composer.bjanczak.com` so `composer require` can install Flex Forms | | **Where you use it** | `composer config --auth`, Forge / CI secrets, server `auth.json` — see [Installation](/get-started/installation) | | **Secret?** | **Yes.** Never commit it. Never paste it into Filament Global Settings. | Open **Install via Composer** whenever you need to copy the current token or **regenerate** it after a leak. Regenerating **immediately revokes** the previous `cmp_…` value — update every server and CI job in the same change window. ### Public API Key (`pk_forms_…`) | | | | - | - | | **What you get** | **Your Public API Key**, shaped as `pk_forms_` + 32 hexadecimal characters | | **What it unlocks** | Studio and licensed runtime features **inside Filament**, once the current hostname is also on your domain list | | **Where you use it** | **Setup Wizard** field **Public API key**, or **Global Settings → License → License public key** | | **Secret?** | Safe to store in your app’s license settings. It only works for hostnames registered on your account. | One Public API key covers **all** domains on the account. You do not create a separate `pk_forms_…` per environment. ### Domains list (license activations / seats) | | | | - | - | | **What you manage** | Exact hostnames allowed to run Flex Forms under your plan | | **Examples** | `admin.example.com`, `staging.example.com`, `my-app.test` | | **Rules** | Exact match. `www.example.com` and `example.com` are different seats. Staging and production each use one seat. | | **Moving a domain** | Remove the old hostname to free a seat, then add the new one. You are not locked to the first domain forever. | Filament checks this list when validating the Public API key. Pasting `pk_forms_…` alone is not enough if the browser host is missing — details in [Activate license](/get-started/activate-license). ### Change license key | | | | - | - | | **When to use** | You bought a **higher** (or different) plan and need the portal account to follow the new Lemon purchase | | **How** | There is **no** in-portal checkout. Buy the new plan in the [store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0), then use **Change license key** and paste the **new Lemon license key** | | **What stays** | Domains already on the account typically remain; plan features and seat limits refresh from the new entitlement | Use this after upgrades (for example Standard → Pro for more seats or hide branding), not for day-to-day Composer or Filament work. ### Regenerate Composer token | | | | - | - | | **Where** | Inside **Install via Composer** | | **Effect** | Issues a new `cmp_…` and **revokes** the old one immediately | | **You must** | Update `auth.json` / Composer auth on every machine and every CI secret that still holds the old token | Prefer regenerating whenever a token may have been committed, shared in chat, or exposed in a log. *** ## Seat limits by plan Each registered hostname consumes **one** license activation (seat), including staging and local hosts you add to the portal. <Table> <thead> <tr> <th>Plan</th> <th>Billing</th> <th>License activations (domains)</th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td>**Standard**</td> <td>\$99 / year</td> <td>**2**</td> <td>Typical: one production + one staging (or local)</td> </tr> <tr> <td>**Pro**</td> <td>\$199 / year</td> <td>**6**</td> <td>More environments / clients; includes [hide branding](/plans/hide-branding)</td> </tr> <tr> <td>**Enterprise**</td> <td>\$799 / year</td> <td>**100**</td> <td>Multi-brand / high-volume; priority support</td> </tr> <tr> <td>**Lifetime**</td> <td>\$899 one-time</td> <td>**10**</td> <td>Pro-level features including hide branding; package updates forever</td> </tr> </tbody> </Table> Full feature comparison: [Plans & pricing](/plans/overview). Need more seats than your plan allows? Upgrade via the store, then **Change license key** in the portal. *** ## Inactive vs Active Lemon status Lemon Squeezy and the License Portal both surface status language that customers often misread. Here is what it usually means for Flex Forms. ### Inactive (common right after purchase) When Lemon shows the license as **inactive** and you have **not** registered any domains yet: * The purchase is typically **valid** * **Zero** hostnames have been activated against that key * Composer / portal access for a healthy account is **not** the same thing as “this Lemon row says inactive” * Your next step is: open the portal → **add the first domain** → then paste `pk_forms_…` into Filament <Info> **Inactive with a valid purchase and zero domains** almost always means “ready, unused” — not “payment failed” and not “downloads are disabled.” </Info> ### Active After domains are registered and entitlement checks succeed, Lemon / portal status moves toward an **active** (in-use) picture: * At least one activation is associated with the license * Filament hosts on the whitelist can validate against your Public API key * Plan features (seats, hide branding where applicable) apply on successful checks ### When something is actually wrong Treat these as real entitlement problems (not the normal “inactive until first domain” case): * Purchase **cancelled**, **refunded**, or **expired** (yearly plan not renewed) * Account **banned** or otherwise blocked by support * Portal / Composer messaging that **downloads are disabled** (see FAQ below) In those cases, refresh the portal after resolving billing with Lemon, or contact support with your purchase email. Do not paste the Lemon key into Filament hoping it will “force” activation — Filament only accepts `pk_forms_…`. *** ## Credential reference Keep these four items mentally separate. Mixing them is the most common install / activation mistake. <Table> <thead> <tr> <th>Credential</th> <th>Looks like</th> <th>Where you get it</th> <th>Where you use it</th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td>**Lemon license key**</td> <td>Vendor string from Lemon receipt / My Orders</td> <td>Lemon Squeezy</td> <td>Portal register / **Change license key** only</td> <td>Proves purchase. Never Composer password. Never Filament field.</td> </tr> <tr> <td>**Composer token**</td> <td>`cmp_…`</td> <td>**Generated by the portal** after registration (see **Install via Composer**)</td> <td>`composer config --auth`, CI / server secrets</td> <td>**Secret.** Regenerate if leaked; old token dies immediately.</td> </tr> <tr> <td>**Public API Key**</td> <td>`pk_forms_` + 32 hex chars</td> <td>**Generated by the portal** after registration (see **Your Public API Key**)</td> <td>Setup Wizard or **Global Settings → License**</td> <td>One key for all domains on the account.</td> </tr> <tr> <td>**Registered domains**</td> <td>Exact hostnames</td> <td>Portal → domains / activations list</td> <td>Server-side whitelist for license checks</td> <td>Each host = one seat. Swap by remove + add.</td> </tr> </tbody> </Table> <Warning> Your Lemon Squeezy purchase key is used **only** for creating or recovering the portal account (and relinking after an upgrade). It is **never** used as a Composer password or as the Public API key in Filament. </Warning> *** ## Day-to-day workflows <Steps> <Step title="Access the dashboard"> Log into [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel) with the account you created after Lemon checkout. </Step> <Step title="Install the package"> Copy `cmp_…` from **Install via Composer**, configure Composer auth, then follow [Installation](/get-started/installation). </Step> <Step title="Unlock Studio"> Copy `pk_forms_…`, register hostnames, then paste the key via [Setup Wizard](/get-started/setup-wizard) or [Activate license](/get-started/activate-license) (**Global Settings → License**). </Step> <Step title="Swap or add domains"> Stay within your seat limit. Remove unused hosts before adding new ones. Prefer the hostname staff actually open in the browser. </Step> <Step title="Upgrade the plan"> Buy the higher tier in the [store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0), then **Change license key** with the new Lemon key so seats and features refresh. </Step> </Steps> *** ## Troubleshooting & FAQs <AccordionGroup> <Accordion title="Can I regenerate my Composer token if it leaks?"> Yes. Open **Install via Composer** in the portal and regenerate. The old `cmp_…` is revoked immediately. Update every `auth.json`, Forge env, and CI secret that still uses the previous token, then run Composer again on each environment. </Accordion> <Accordion title="Do I need a unique Public API key for every domain?"> No. A single Public API Key (`pk_forms_…`) covers **all** domains registered under your account. Add each hostname to the domains list; keep pasting the same `pk_forms_…` into each Filament install (or share one key across environments that use the same portal account). </Accordion> <Accordion title="What happens if the License Portal goes offline?"> Flex Forms is built for resilience. After a successful license check, your app keeps a secure cache for roughly **up to a week**. Brief portal outages should not lock Studio or stop respondents from submitting. Prolonged outages past the cache window can block fresh validation until the portal is reachable again. </Accordion> <Accordion title="Composer says downloads are disabled — when does that happen?"> Downloads are disabled when the purchase entitlement is no longer valid — for example cancelled, refunded, expired (yearly plan lapsed), or the account is banned. That is **not** the same as Lemon showing **inactive** with zero domains on a healthy new purchase. Refresh the portal after fixing billing; if it persists on a valid purchase, contact support with your checkout email. </Accordion> <Accordion title="Lemon still says inactive after I paid"> Add at least one domain in the portal. Inactive with a valid purchase and an empty domain list almost always means “not activated yet.” If payment truly failed, Lemon / email will say so — do not confuse that with the unused-activation state. </Accordion> <Accordion title="I upgraded but seats did not increase"> Confirm you completed **Change license key** with the **new** Lemon key from the upgraded order. Buying alone does not always relink the portal account until that step is done. Then re-check the domain list and [Plans & pricing](/plans/overview). </Accordion> <Accordion title="Studio is locked even though I pasted pk_forms_…"> The hostname in the browser must match a portal domain exactly, and the key must be the Public API key (not `cmp_…` or the Lemon key). See [Activate license](/get-started/activate-license) and [Setup Wizard](/get-started/setup-wizard). </Accordion> </AccordionGroup> <Panel> **Related:** [Installation](/get-started/installation) · [Activate license](/get-started/activate-license) · [Plans & pricing](/plans/overview) · [Setup Wizard](/get-started/setup-wizard) </Panel> # Plans & Pricing Source: https://flexforms.bjanczak.com/plans/overview Standard, Pro, Enterprise, and Lifetime — license seats, white-label, and billing for Flex Forms in Filament. Flex Forms is a **commercial Filament plugin**: Studio, public fill, submissions, Insights, Contacts, and first-party integrations run in **your** Laravel app under **your** auth and backups. Pick a plan at [checkout](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0). Entitlements are validated through the [License Portal](https://license.bjanczak.com/flex-forms/panel). Store pricing is authoritative for the amount charged. <img alt="Flex Forms plans — Standard, Pro, Enterprise (yearly) and Lifetime (one-time)" /> ## Choose a plan Standard, Pro, and Enterprise are **yearly** licenses (Studio, public fill, Composer downloads, and support stay available while the subscription is valid). **Lifetime** is a **one-time** purchase with ongoing package updates. <CardGroup> <Card title="Standard" icon="badge-check" href="https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0"> <Badge>Yearly</Badge> One live product plus a staging (or local) host. * **2** domain activations * Full Studio, fill, Insights, Contacts * Integrations catalog + Design tools * Flex Forms badge on public fill **\$99 / year** [Buy Standard →](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0) </Card> <Card title="Pro" icon="sparkles" href="https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0"> <Badge>Recommended · Yearly</Badge> Extra hosts and a white-labeled public experience. * Everything in Standard * **6** domain activations * [Hide branding](/plans/hide-branding) * Fits agency / multi-environment setups **\$199 / year** [Buy Pro →](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0) </Card> <Card title="Enterprise" icon="building" href="https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0"> <Badge>Yearly</Badge> Large seat pool plus priority access to the Flex Forms team. * Everything in Pro * **100** domain activations * Priority support (email or private Slack) * Prioritized requests and roadmap input **\$799 / year** [Buy Enterprise →](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0) </Card> <Card title="Lifetime" icon="infinity" href="https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0"> <Badge>One-time</Badge> Pay once for Pro-class features and continuing Composer updates. * [Hide branding](/plans/hide-branding) included * **10** domain activations * Package updates with no renewal for updates * Does not include Enterprise priority / roadmap seats **\$899 once** [Buy Lifetime →](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0) </Card> </CardGroup> <Tip> Prefer a lower yearly bill? Start on **Pro**. Prefer not to renew for updates? Choose **Lifetime** (Pro features, **10** activations, ongoing package updates). </Tip> *** ## Included with every license You are not buying a cut-down builder on Standard. Studio, fill, Insights, Contacts, Design, Stripe payments, and the integrations catalog ship on **all** plans. Plans mainly change **how many domains** you can activate, whether you can [hide branding](/plans/hide-branding), support priority, and yearly vs one-time billing. <CardGroup> <Card title="Studio" icon="layout-template"> Visual canvas, pages, logic, and calculated fields </Card> <Card title="Blocks" icon="blocks"> Forty-plus field types — [catalog](/features/blocks/overview) </Card> <Card title="Publish & embed" icon="share-2"> Fill links and embeds served from your application </Card> <Card title="Inbox" icon="inbox"> Submissions with search, partials, and encryption options </Card> <Card title="Insights" icon="chart-column"> Funnels and answer analytics in your panel </Card> <Card title="Contacts" icon="users"> People directory across forms </Card> <Card title="Integrations" icon="plug"> CRM, ESP, Slack, Sheets, webhooks — [overview](/integrations/overview) </Card> <Card title="Payments" icon="credit-card"> Stripe Payment block and Transactions hub </Card> <Card title="Mail" icon="mail"> Admin and respondent messaging via your stack / feeds </Card> <Card title="Design" icon="palette"> Layout, logo, cover, and custom CSS </Card> <Card title="Uploads" icon="paperclip"> Private respondent files with signed access </Card> <Card title="Your database" icon="database"> Answers stay in your Laravel app </Card> <Card title="Tenancy" icon="building-2"> Works with Filament multi-tenancy patterns </Card> <Card title="Partials" icon="bookmark"> Incomplete submissions when your flow allows </Card> <Card title="Access controls" icon="shield"> CAPTCHA, passwords, and scheduling options </Card> <Card title="Panel UX" icon="app-window"> Same Filament login and permissions you already use </Card> </CardGroup> *** ## Where Flex Forms fits Three common ways teams ship public forms — pick the trade-off that matches how you operate. <Table> <thead> <tr> <th /> <th>Custom build</th> <th>External form SaaS</th> <th>Flex Forms</th> </tr> </thead> <tbody> <tr> <td>**Time to first live form**</td> <td>Long engineering cycle</td> <td>Quick account setup</td> <td>Install plugin → Studio → publish</td> </tr> <tr> <td>**Recurring spend**</td> <td>Internal maintenance</td> <td>Monthly subscription (often forever)</td> <td>Yearly license, or Lifetime once</td> </tr> <tr> <td>**Where answers live**</td> <td>Your DB</td> <td>Vendor cloud</td> <td>Your DB</td> </tr> <tr> <td>**Admin experience**</td> <td>Whatever you build</td> <td>Separate product UI</td> <td>Inside Filament</td> </tr> <tr> <td>**Air-gapped / private stack**</td> <td>Possible</td> <td>Usually not</td> <td>Runs in your app</td> </tr> <tr> <td>**CRM & analytics depth**</td> <td>You implement it</td> <td>Often tiered / extra</td> <td>Shipped — [Integrations](/integrations/overview) · [Insights](/features/insights/overview)</td> </tr> </tbody> </Table> Longer write-up: [Compare options](/resources/compare). *** ## Lifetime vs monthly hosted pricing If you currently pay a hosted builder every month, a **Lifetime** license can be cheaper over several years because there is no recurring vendor fee for the form product itself (you still host Laravel as usual). <Table> <thead> <tr> <th>Option</th> <th>Typical list price</th> <th>Approx. 60 months</th> <th>Hosting model</th> </tr> </thead> <tbody> <tr> <td>Hosted form SaaS (entry public tier)</td> <td>\~$29 / month</td> <td>~$1,740</td> <td>Vendor-hosted</td> </tr> <tr> <td>Hosted form SaaS (business public tier)</td> <td>\~$99 / month</td> <td>~$5,940</td> <td>Vendor-hosted</td> </tr> <tr> <td>Hosted form SaaS (mid public tier)</td> <td>\~$39 / month</td> <td>~$2,340</td> <td>Vendor-hosted</td> </tr> <tr> <td>**Flex Forms Lifetime**</td> <td>**$899 once**</td> <td>**$899**</td> <td>Self-hosted in your Filament app</td> </tr> </tbody> </Table> <Info> Third-party figures are rough public list prices (2026) for illustration only — confirm on each vendor’s site. Flex Forms also offers yearly Standard / Pro / Enterprise if you prefer a subscription — amounts on this page and at checkout. </Info> *** ## Plan differences (matrix) Product capabilities below are available on every paid plan unless noted. The columns differ mainly on **activations**, **branding**, **support**, and **billing**. <Table> <thead> <tr> <th>Capability</th> <th>Standard</th> <th>Pro</th> <th>Enterprise</th> <th>Lifetime</th> </tr> </thead> <tbody> <tr> <td>Price</td> <td>$99 / year</td> <td>$199 / year</td> <td>$799 / year</td> <td>$899 once</td> </tr> <tr> <td>Billing</td> <td>Yearly</td> <td>Yearly</td> <td>Yearly</td> <td>One-time</td> </tr> <tr> <td>Studio, Publishing, Embeds</td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>Insights & Contacts Directory</td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>Stripe payments & Transactions hub</td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>All 3rd-party integrations</td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>Design panel (layout, logo, cover, custom CSS)</td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>License activations (domains)</td> <td>2</td> <td>6</td> <td>100</td> <td>10</td> </tr> <tr> <td>White-labeling (Hide “Powered by”)</td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>Package updates forever</td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="check" /> </td> </tr> <tr> <td>Priority support (email or private Slack)</td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="minus" /> </td> </tr> <tr> <td>Prioritized feature requests</td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="minus" /> </td> </tr> <tr> <td>Help shape the roadmap</td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="minus" /> </td> <td> <Icon icon="check" /> </td> <td> <Icon icon="minus" /> </td> </tr> </tbody> </Table> <Info> An **activation** is one hostname registered in the License Portal (e.g. production and staging count as two). You can free a seat by removing a domain. Lifetime matches Pro on white-label with **10** seats and continuing updates — it is not Enterprise support. </Info> *** ## Purchasing workflow <Steps> <Step title="Select your plan"> Open the [Flex Forms Store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0) and choose **Standard** ($99/yr), **Pro** ($199/yr), **Enterprise** ($799/yr), or **Lifetime** ($899 once). </Step> <Step title="Authenticate Composer"> Log into the portal and copy your **Composer token** (`cmp_…`). Use it to download the package from `composer.bjanczak.com`. See [Installation](/get-started/installation). </Step> <Step title="Activate domains"> Register hostnames up to your plan’s activation limit. See [Activate license](/get-started/activate-license). </Step> </Steps> <Tip> **Upgrades:** Buy a higher plan in the [store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0), then open the [License Portal](https://license.bjanczak.com/flex-forms/panel) → **Change license key** and paste the new Lemon key. Hide branding and extra seats unlock on the next license check — no redeploy. </Tip> <Panel> **Deep dive:** [Compare plans](/plans/standard-pro-enterprise) · [Compare options](/resources/compare) · [License Portal](/plans/license-portal) · [Hide branding](/plans/hide-branding) </Panel> # Compare plans Source: https://flexforms.bjanczak.com/plans/standard-pro-enterprise Standard, Pro, Enterprise, and Lifetime side by side — seats, white-labeling, billing, and support. Your plan is tied to your license key and checked whenever a domain activates Flex Forms. Feature flags (such as hide branding) and activation seats are enforced server-side across Studio, API routes, and public fill pages. **Four plans:** Standard **$99**/yr · Pro **$199**/yr · Enterprise **$799**/yr · Lifetime **$899** one-time. Studio, Insights, integrations, and Design ship on every paid plan. Plans mainly change domain activations, white-label, support priority, and yearly vs one-time billing. Cards, inclusion list, and option comparison: [Plans & Pricing](/plans/overview). ## What each plan unlocks ```mermaid theme={} flowchart LR Key[Your License Key] --> Check[Server-Side License Check] Check --> Plan{Plan Evaluated} Plan -->|Standard| Std[Full product · 2 activations] Plan -->|Pro| ProF[Hide branding · 6 activations] Plan -->|Enterprise| Ent[100 activations · priority support · roadmap] Plan -->|Lifetime| Life[Pro features · 10 activations · updates forever] ``` <Callout type="info"> Upgrading unlocks hide branding and additional activation seats on the next license check — no app redeploy required. </Callout> *** ## Detailed plan comparison <CardGroup> <Card title="Standard" icon="badge-check"> <Badge>\$99 / year</Badge> Full Flex Forms product: Studio, publishing, embeds, submissions, Insights, Contacts, integrations, and the **Design** panel (including advanced layout and custom CSS). * **2** license activations (domains) * Public fill shows the Flex Forms badge </Card> <Card title="Pro" icon="sparkles"> <Badge>\$199 / year</Badge> Everything in Standard, plus white-labeling and more seats — enough for production, staging, and a few client or preview hosts. * **6** license activations (domains) * [Hide branding (white-label)](/plans/hide-branding) </Card> <Card title="Enterprise" icon="building-2"> <Badge>\$799 / year</Badge> Everything in Pro for multi-brand and high-volume deployments. * **100** license activations (domains) * Priority support (email or private Slack) * Prioritized feature requests * Help shape the roadmap </Card> <Card title="Lifetime" icon="infinity"> <Badge>\$899 one-time</Badge> Pay once for Pro-class features and forever package updates — without a yearly renewal. * **10** license activations (domains) * [Hide branding](/plans/hide-branding) * Package updates forever * Not Enterprise priority support / roadmap seats </Card> </CardGroup> *** ## Frequently asked questions <AccordionGroup> <Accordion title="How is billing structured?"> **Standard**, **Pro**, and **Enterprise** are yearly subscriptions (**$99** · **$199** · **$799**). **Lifetime** is **$899** one-time with forever package updates. See [Plans & Pricing](/plans/overview). Checkout at the [Flex Forms Store](https://shop.bjanczak.com/checkout/buy/3d3a0d72-c9d5-4cfd-90c9-26869c444bb0) is authoritative for the amount charged. </Accordion> <Accordion title="How many domains can I activate?"> **Standard: 2 · Pro: 6 · Enterprise: 100 · Lifetime: 10.** Each hostname (including staging) uses one seat. Manage the list in the [License Portal](/plans/license-portal). Need more than 100? Contact us for a custom Enterprise arrangement. </Accordion> <Accordion title="Do I need Pro only for staging + production?"> Not necessarily. Standard already includes **2** activations, so one production host and one staging host fit Standard. Choose Pro when you need more seats and/or a clean public UI without “Powered by Flex Forms”. Choose Lifetime when you want Pro features + **10** seats without renewing yearly. </Accordion> <Accordion title="What happens if my license expires?"> Yearly plans renew annually. If the subscription expires or the license fails validation, Studio edits and publishing are blocked, **public fill and new submissions pause**, and Composer package downloads stop until you renew. **Lifetime** keeps runtime and Composer updates permanently. Historical data already in your database is never deleted. </Accordion> <Accordion title="Can I try before I buy?"> Flex Forms does not typically offer a free trial due to the source-available nature of Composer packages. Reach out via [Support](/resources/support) for procurement needs. </Accordion> </AccordionGroup> <Panel> **Next steps:** [Plans & Pricing](/plans/overview) · [White-labeling](/plans/hide-branding) · [License Portal](/plans/license-portal) </Panel> # Accessibility Source: https://flexforms.bjanczak.com/resources/accessibility How the public fill experience supports keyboard navigation, screen readers, RTL languages, and reduced motion. The public fill page is what respondents interact with — often people you don't get to choose, on devices and assistive technology you don't control. Flex Forms builds the fill experience on Filament's own form components, which carry Filament's accessibility baseline forward. <Columns> <Card title="Built in" icon="check-circle"> Keyboard navigation, labeled inputs, focus states, and RTL layout support out of the box. </Card> <Card title="Your responsibility" icon="pencil"> Writing clear labels/help text, choosing sufficient color contrast in [Design](/guides/design-pro), and testing your specific field choices. </Card> </Columns> <Table> <thead><tr><th>Area</th><th>Support</th></tr></thead> <tbody> <tr><td>Keyboard navigation</td><td>All native inputs, choices, and the wizard's Next/Previous controls are keyboard-operable</td></tr> <tr><td>Labels</td><td>Every field renders a real, associated label — not placeholder-only text</td></tr> <tr><td>Language / RTL</td><td>Per-form <code>language</code> and <code>text\_direction</code> settings; Arabic/Hebrew/Farsi/Urdu auto-default to RTL</td></tr> <tr><td>Progress indication</td><td>The [stepper and progress bar](/guides/multi-page-stepper) give non-visual users a sense of position via standard progress semantics</td></tr> <tr><td>Error messaging</td><td>Validation errors are tied to their field and announced on submit attempt</td></tr> </tbody> </Table> <Steps> <Step title="Write real labels, not just placeholders"> Placeholder text disappears on focus and isn't a reliable label for screen readers — always fill in the field's **Label**. </Step> <Step title="Keep required-field messaging clear"> Use the field's help text to explain *why* something is required, especially for fields that become required conditionally via [Logic](/guides/logic-and-calculated). </Step> <Step title="Set language and direction correctly"> For non-English forms, set **Language** in Form settings so screen readers pick the right pronunciation rules; RTL languages flip layout direction automatically. </Step> <Step title="Mind color contrast in Design"> If you set a custom [stepper color or design](/guides/design-pro), check contrast against your background — especially for progress indicators and buttons. </Step> <Step title="Test with a keyboard and a screen reader"> Tab through a real published form before sending it to real respondents, particularly if it uses heavy [Logic branching](/guides/logic-and-calculated) or a [multi-page wizard](/guides/multi-page-stepper). </Step> </Steps> <Note> Accessibility is an ongoing effort, not a checkbox — if you find a concrete a11y issue in the fill experience, please [report it](https://github.com/janczakb/filament-flex-forms/issues/new?template=bug.yml) with the field type and assistive technology involved. </Note> <Panel> **Next:** [Design & branding](/guides/design-pro) · [Multi-page & stepper](/guides/multi-page-stepper) · [Support](/resources/support) </Panel> # Compare Source: https://flexforms.bjanczak.com/resources/compare When Flex Forms is the right fit versus a custom form stack or an external SaaS form product. External SaaS form products are strong general tools. Flex Forms targets a narrower job: **your team already runs Filament**, and you want public forms, submissions, and analytics to live in that same application — same login, same policies, same database. ## Two models <Columns> <Card title="External form product" icon="external-link"> Separate vendor UI and storage. You connect exports, webhooks, or paid add-ons to bring answers into your systems. </Card> <Card title="Flex Forms" icon="layout-dashboard"> Plugin inside your Filament panel. Submissions, Contacts, and Insights are rows you already back up with the rest of the app. </Card> </Columns> ## Delivery options | | Custom engineering | External form SaaS | Flex Forms | | - | - | - | - | | **First published form** | Depends on your roadmap | Fast vendor onboarding | Composer install → Studio → publish | | **Cost shape** | Engineer time + upkeep | Monthly (often open-ended) | Yearly plans or Lifetime once | | **Answer storage** | Your DB | Vendor cloud | Your DB | | **Operator UI** | Custom | Vendor app | Filament panel | | **Private / restricted networks** | If you build for it | Rarely | Same as your Laravel deploy | ## Operations checklist | Topic | External SaaS | Flex Forms | | - | - | - | | Data residency | Vendor regions / terms | Your infrastructure | | Who can open the admin | Vendor seats | Existing Filament users & policies | | Embeds | Usually their CDN / widget | Served from your app | | CRM / webhooks | Often plan-gated | Included — [Integrations](/integrations/overview) | | Multi-page, logic, formulas | Varies by vendor | Included — [Logic & calculated](/guides/logic-and-calculated) | | Analytics | Vendor dashboards | [Insights](/guides/reading-insights) in-panel | | Commercial model | Usage / seat subscriptions | Standard **$99** · Pro **$199** · Enterprise **$799** / year, or Lifetime **$899** — [Plans](/plans/overview) | ## Rough multi-year spend (hosted vs Lifetime) Use this only as a planning sketch against **public list prices**. Your real SaaS invoice may differ (discounts, taxes, annual billing). | Option | Rough monthly list | \~60 months | Notes | | - | - | - | - | | Hosted form SaaS (entry tier) | \~\$29 | \~\$1,740 | Vendor-hosted | | Hosted form SaaS (business tier) | \~\$99 | \~\$5,940 | Vendor-hosted | | Hosted form SaaS (mid tier) | \~\$39 | \~\$2,340 | Vendor-hosted | | **Flex Forms Lifetime** | — | **\$899** | In your Filament app; Pro features; **10** activations; ongoing package updates | <Info> Illustrative 2026 public tiers — verify on each vendor’s pricing page. Yearly Flex Forms subscriptions remain available if Lifetime is not the right purchase — [Plans & Pricing](/plans/overview). </Info> <Tip> No Filament panel? An external builder is usually simpler. Flex Forms assumes Filament is already your admin layer. </Tip> <AccordionGroup> <Accordion title="Can I migrate existing forms from another builder?"> There is no automated importer today. Recreate the form in Studio and point traffic at the new fill link or embed. </Accordion> <Accordion title="Which field types are included?"> Rating, NPS, file upload, currency, voice notes, and the rest of the [Blocks catalog](/features/blocks/overview). Card payments use [Stripe](/integrations/stripe) via the Payment block. PayPal and ranking fields are not included. </Accordion> </AccordionGroup> <Panel> **Next:** [Plans & Pricing](/plans/overview) · [Compare plans](/plans/standard-pro-enterprise) · [Features overview](/features/forms/overview) · [Integrations](/integrations/overview) </Panel> # Privacy Source: https://flexforms.bjanczak.com/resources/privacy What Flex Forms processes on your behalf, what stays in your database, and what you control as the data controller. Flex Forms runs **inside your own Laravel application and database** — respondent submissions, Contacts, and Insights events are rows in your database, not data sent to a third-party SaaS. You are the data controller for anything your forms collect; Flex Forms is the software you use to collect and process it. <Columns> <Card title="Stays in your database" icon="database"> Submissions, Contacts, Insights events, uploaded files, and Insights share tokens. </Card> <Card title="Leaves your app only when you configure it to" icon="arrow-up-right"> Email notifications, [webhooks](/developers/webhooks), and any [integration](/integrations/overview) feed you explicitly enable. </Card> </Columns> <Table> <thead><tr><th>Data category</th><th>Where it lives</th><th>Your controls</th></tr></thead> <tbody> <tr><td>Submission answers</td><td>Your database (optionally encrypted at rest)</td><td>[Encrypt answers](/features/settings/general), [Data retention](/guides/access-gates), manual deletion</td></tr> <tr><td>Analytics beacon events (device, country, UTM)</td><td>Your database</td><td>Bot filtering is automatic; raw event retention is configurable via <code>insights.raw\_retention\_days</code></td></tr> <tr><td>Contacts (name, email)</td><td>Your database</td><td>Derived from submissions — delete the source submission to remove a contact's entries</td></tr> <tr><td>Uploaded files</td><td>Your configured disk (public for design assets, private for submissions)</td><td>See [Upload disks](/developers/upload-disks)</td></tr> <tr><td>License validation calls</td><td>Sent to the license server (domain + public key only)</td><td>Required for the plugin to function; no submission data is included</td></tr> </tbody> </Table> <Steps> <Step title="Set data retention per form"> Turn on **Data retention** in Form settings and choose a value/unit (days/weeks/months/years) to automatically age out old submissions. </Step> <Step title="Review what you export"> CSV / Excel exports (Submissions, [Contacts](/guides/contacts-workflow)) and [webhook](/developers/webhooks) payloads are exactly what you configure them to send — audit field selection before wiring a feed to a third party. Encrypted forms still export decrypted values to authorized Studio users. </Step> <Step title="Restrict access to raw files"> Submission uploads are private and signed by default — see [Upload disks](/developers/upload-disks) and the [Multi-tenancy](/developers/multi-tenancy) recipe for `uploads.authorize`. </Step> <Step title="Honor deletion requests"> Since data lives in your own database, fulfilling a respondent's deletion request is a normal delete against your `flex_form_submissions` / Contacts rows — no separate vendor process required. </Step> </Steps> <Note> Flex Forms itself only calls out to the license server to validate your domain/plan. It does not transmit form submissions, contacts, or files to any third-party service unless you explicitly configure an [integration](/integrations/overview) or [webhook](/developers/webhooks) to do so. </Note> <Panel> **Also see:** [Access gates](/guides/access-gates) · [Upload disks](/developers/upload-disks) · [Terms](/resources/terms) </Panel> # Product walkthrough Source: https://flexforms.bjanczak.com/resources/product-walkthrough Watch the Flex Forms product walkthrough — Studio, fill, submissions, Insights, and integrations in Filament. Watch a short walkthrough of Flex Forms: Studio, public fill and embeds, submissions and contacts, Insights, and native integrations — all inside your Filament app. <iframe title="Filament Flex Forms — product walkthrough" /> <p> <a href="https://youtu.be/n7zSCFTeH2I"><strong>Open on YouTube →</strong></a> · <a href="/">Back to Welcome →</a> </p> <Tip> Next: [Install](/get-started/installation) · [Plans & Pricing](/plans/overview) · [vs SaaS form builders](/resources/compare) </Tip> # Roadmap Source: https://flexforms.bjanczak.com/resources/roadmap Indicative themes we're working toward — not a commitment or a release schedule. <Warning> This is a directional view of themes, not a shipping commitment or dated schedule. Priorities shift based on customer feedback — see [What's new](/resources/whats-new) for what has actually shipped. </Warning> <Columns> <Card title="Deeper Insights" icon="chart-column"> More segmentation, saved filter views, and richer drop-off diagnostics on top of the existing [Insights](/guides/reading-insights) engine. </Card> <Card title="More integrations" icon="plug"> Expanding the [integrations](/integrations/overview) catalog based on the most-requested connectors from customers. </Card> <Card title="Studio ergonomics" icon="pencil-ruler"> Continued investment in the Logic board and calculated-field authoring experience — see [Logic & calculated fields](/guides/logic-and-calculated). </Card> </Columns> <Tip> Have a specific feature in mind? [Request it](https://github.com/janczakb/filament-flex-forms/issues/new?template=feature.yml) on the public Issues board — customer requests directly shape what moves up this list. **Enterprise** subscribers get **Prioritized feature requests** and help shape the product roadmap — see [Plans](/plans/overview). </Tip> <Panel> **Also see:** [What's new](/resources/whats-new) · [Support](/resources/support) </Panel> # Support Source: https://flexforms.bjanczak.com/resources/support How to get help — bug reports, feature requests, private security disclosure, and where to ask implementation questions. <img alt="Flex Forms support — Help Center paths, contact options, and issue templates" /> <CardGroup> <Card title="Report a bug" icon="bug" href="https://github.com/janczakb/filament-flex-forms/issues/new?template=bug.yml"> Something broken? File it on the public Issues board with steps to reproduce. </Card> <Card title="Request a feature" icon="sparkles" href="https://github.com/janczakb/filament-flex-forms/issues/new?template=feature.yml"> Missing something? Tell us what you're trying to build. </Card> <Card title="License portal" icon="key-round" href="https://license.bjanczak.com/flex-forms/panel"> Manage your license key, domains, and plan. </Card> <Card title="What's new" icon="newspaper" href="/resources/whats-new"> Recent product updates and Help Center highlights. </Card> <Card title="Report a security issue" icon="shield-alert" href="#report-a-security-vulnerability"> Suspected vulnerability? Use private disclosure — never a public GitHub issue. </Card> </CardGroup> <Steps> <Step title="Search the docs first"> Most installation, config, and "how do I…" questions are answered in [Get started](/get-started/installation), [Guides](/guides/multi-page-stepper), and [Developers](/developers/embed-api). </Step> <Step title="Check What's new"> If something changed recently, check [What's new](/resources/whats-new) before filing a bug. </Step> <Step title="File a focused bug report"> Include your Flex Forms version, Filament/Laravel/PHP versions, and exact reproduction steps — screenshots or a short screen recording help a lot for UI issues. </Step> <Step title="Flag license/billing issues separately"> License key, domain activation, or billing questions go through the [license portal](https://license.bjanczak.com/flex-forms/panel), not GitHub Issues. </Step> </Steps> *** ## Report a security vulnerability If you believe you found a flaw that could let someone bypass authentication, read another tenant's submissions, execute code, or exfiltrate data **without** going through the product's documented controls, treat it as a **security report** — not a regular bug. <Warning> **Do not** open a public [GitHub issue](https://github.com/janczakb/filament-flex-forms/issues), post on social media, or share exploit details in community threads before we have had a chance to respond. Public disclosure makes incidents harder to fix and puts other customers at risk. </Warning> ### What belongs in a security report Report issues in **Flex Forms package code** when they affect confidentiality, integrity, or availability — for example: * Authentication or authorization bypass in **Studio**, **fill**, **embed**, or **Insights share** surfaces * Cross-tenant or cross-form data leakage in submissions, Contacts, or exports * Server-side request forgery (SSRF) or unsafe outbound HTTP beyond the documented integration hardening * Stored or reflected XSS delivered through fill output, embed parents, or shared Insights pages * Bypass of [answer encryption](/features/settings/general), access gates, or CAPTCHA when the bypass is in product code — not misconfiguration * Privilege escalation around [Studio permissions](/developers/studio-permissions) or Filament policy hooks shipped with the package <Tip> **Not sure?** Email anyway with a short impact summary. We would rather triage a borderline report privately than miss a real issue. </Tip> ### What is *not* a security report Use the public [bug template](https://github.com/janczakb/filament-flex-forms/issues/new?template=bug.yml) instead for: * Visual glitches, copy issues, or Studio UX bugs without a security impact * License portal, billing, or domain activation problems → [License Portal](https://license.bjanczak.com/flex-forms/panel) * Integration failures caused by wrong API keys, field maps, or provider rate limits * Hardening advice for **your** Laravel app (WAF, CSP, server headers) unless Flex Forms ships insecure defaults you can demonstrate ### How to send a private report <Steps> <Step title="Email us privately"> Send details to **[barek122@gmail.com](mailto:barek122@gmail.com?subject=Flex%20Forms%20security)** with the subject line **`Flex Forms security`** (or prefix your own subject with that phrase so it is routed correctly). **Enterprise** customers may also reach the priority channel agreed in your plan (email or private Slack) — still mark the message as a security report. </Step> <Step title="Include enough context to reproduce"> Help us move fast: * **Flex Forms version** (`composer show janczakb/filament-flex-forms`) * **Laravel, PHP, Filament, Livewire** versions * **Hostname / environment** (production, staging, local — no need for secrets) * **Impact** — who can exploit it, what data or actions are exposed * **Steps to reproduce** — minimal, ordered list * **Proof of concept** — curl, screenshots, or a short video if UI-related * **Your contact** — email (and optional PGP fingerprint if you encrypt mail) </Step> <Step title="Wait for acknowledgment before public disclosure"> We coordinate fix timing with you. Please do not publish write-ups, scanner signatures, or exploit code until we confirm a release or agreed disclosure date. </Step> </Steps> ### What happens after you report | Stage | What to expect | | - | - | | **Acknowledgment** | We aim to confirm receipt within **3 business days** (often sooner). | | **Triage** | We reproduce the issue, assess severity, and ask clarifying questions if needed. | | **Fix & release** | Patches ship through the private Composer registry for supported versions. | | **Disclosure** | We agree on customer notification and any public advisory text with you. | | **Credit** | Researchers who report valid issues in good faith may be credited in release notes if they want. | ### Supported versions Security fixes are published for **currently supported** Flex Forms releases. Check [`SECURITY.md`](https://github.com/janczakb/filament-flex-forms/blob/main/SECURITY.md) on GitHub for the supported version table. If you are on an older major, upgrade via [Upgrading](/get-started/upgrading) before expecting a backport. <Info> **Scope reminder:** Flex Forms runs in **your** Laravel app. Server misconfiguration (debug mode on production, open S3 buckets, missing HTTPS) is outside package scope — but tell us if you think the product encourages an unsafe default we should change. </Info> *** <AccordionGroup> <Accordion title="What's the expected response time?"> Bug reports and feature requests are triaged on the public Issues board; response time depends on severity and current volume. </Accordion> <Accordion title="Where do I report a security issue?"> Use [Report a security vulnerability](#report-a-security-vulnerability) above — private email to [barek122@gmail.com](mailto:barek122@gmail.com?subject=Flex%20Forms%20security), never a public GitHub issue. Full policy: [`SECURITY.md`](https://github.com/janczakb/filament-flex-forms/blob/main/SECURITY.md). </Accordion> <Accordion title="Can I get priority support?"> **Enterprise** (\$799 / year) includes **Priority support** by email or a private Slack channel, **Prioritized feature requests**, and **Help shape the roadmap**. See [Standard, Pro, Enterprise](/plans/standard-pro-enterprise) or reach out via the license portal. </Accordion> <Accordion title="How much do plans cost?"> Yearly: Standard **$99** · Pro **$199** · Enterprise **$799**. Lifetime **$899** one-time (Pro features · 10 activations · updates forever). Full comparison: [Plans & Pricing](/plans/overview). </Accordion> </AccordionGroup> <Panel> **Also see:** [What's new](/resources/whats-new) · [Roadmap](/resources/roadmap) · [Standard, Pro, Enterprise](/plans/standard-pro-enterprise) </Panel> # Terms Source: https://flexforms.bjanczak.com/resources/terms Where to find the license agreement that governs your Flex Forms purchase and domain activations. Flex Forms is licensed, paid software. The terms governing your purchase — including plan entitlements, domain activation limits, and permitted use — are presented and accepted during checkout and are available at any time from the [license portal](https://license.bjanczak.com/flex-forms/panel). <Card title="Read the license terms" icon="scroll-text" href="https://license.bjanczak.com/flex-forms/panel"> Log in at [license.bjanczak.com/flex-forms/panel](https://license.bjanczak.com/flex-forms/panel) to view the exact terms tied to your purchase and plan. </Card> <Table> <thead><tr><th>Question</th><th>Where to look</th></tr></thead> <tbody> <tr><td>What does my plan include?</td><td>[Standard, Pro, Enterprise](/plans/standard-pro-enterprise)</td></tr> <tr><td>How many domains can I activate?</td><td>[License portal](/plans/license-portal)</td></tr> <tr><td>Can I get a refund?</td><td>Refer to the checkout terms you accepted, or ask via [Support](/resources/support)</td></tr> <tr><td>Can I redistribute the package?</td><td>Refer to your license agreement — redistribution/resale is not covered by a standard end-user license</td></tr> </tbody> </Table> <Note> This page is a signpost, not the legal text itself — the binding terms are the ones you accepted at purchase and any updates communicated through the license portal. </Note> <Panel> **Also see:** [Privacy](/resources/privacy) · [License portal](/plans/license-portal) · [Support](/resources/support) </Panel> # What's new Source: https://flexforms.bjanczak.com/resources/whats-new Recent Flex Forms releases — Insights Redis scaling, hardened access gates, and Studio improvements. <Update label="Encryption, Excel export & multi-tenant recipe" description="Per-form encrypt answers, Global Security policy, CSV + XLSX exports, Filament tenancy docs."> Turn on **Encrypt submission answers** in Form Settings → General (or force it for every form via Global Settings → Security / `FLEX_FORMS_FORCE_SUBMISSION_ENCRYPTION`). Submissions, Contacts, and Transactions export as **CSV or Excel (.xlsx)**. SaaS hosts: follow the [Multi-tenancy](/developers/multi-tenancy) recipe for `uploads.authorize` and Studio gates. </Update> <Update label="Plans, yearly pricing & Lifetime" description="Standard $99 · Pro $199 · Enterprise $799 / year · Lifetime $899 once — clear seats, Design on all plans."> Commercial tiers: **Standard** $99/yr (2 activations), **Pro** $199/yr (6 + hide branding), **Enterprise** $799/yr (100 + priority support), and **Lifetime** $899 one-time (10 activations · Pro features · updates forever) — four equal plans on [Plans & Pricing](/plans/overview). The **Design** panel and custom CSS are on every plan. If a yearly subscription expires, Studio, public fill, and Composer downloads pause; your stored data is kept. Lifetime keeps runtime and updates permanently. See also [Compare plans](/plans/standard-pro-enterprise). </Update> <Update label="Smarter image uploads" description="WebP variants for covers and field photos, no upscaling, optional Spatie-first Media Library driver."> Studio covers store normal + thumb (max 1500 / 400). Logos fit 500×500; social/OG stay JPEG at 16:9. Respondent **images** get normal + thumb (1500 / 350); PDFs and other files stay single originals. Set `FLEX_FORMS_MEDIA_DRIVER=spatie` to use Spatie as the primary store (native conversions, responsive images, purge on delete) — see [Upload disks](/developers/upload-disks). </Update> <Update label="Branded HTML submission emails" description="Publishable Blade templates for team alerts and respondent receipts — customize the HTML visually."> Form Settings → Email notifications now send polished HTML (plus plain text). Publish templates with `php artisan vendor:publish --tag=filament-flex-forms-mail`. Merge tags: `{form_title}`, `{submission_id}`, and more — see [Emails & PDF](/features/settings/emails-pdf). </Update> <Update label="Studio team permissions" description="Optional Spatie RBAC for create, edit, publish, export, Insights, Contacts, and more — server-enforced."> Every Studio action can be gated with optional [spatie/laravel-permission](https://github.com/spatie/laravel-permission) or a plugin authorize callback. Spatie is never required; unseeded installs stay open. Full map and env keys: [Studio permissions](/developers/studio-permissions). </Update> <Update label="Global Settings tabs" description="Appearance, License, Public URLs, and Insights — vertical tabs instead of one long page."> [Global Settings](/get-started/global-settings) is now sectioned into icon tabs. Third-party API keys stay under **Integrations** in the left rail. Insights Redis options live under the **Insights** tab — see [Redis production](/guides/redis-production). </Update> <Update label="Insights Redis scaling" description="O(1) today-hashes, HyperLogLog uniques, duration aggregates, dedicated key prefix."> Insights can now route its hot counters through a dedicated Redis connection instead of the default cache store — auto-detected or forced via Global Settings → Insights / env. See [Redis production checklist](/guides/redis-production). </Update> <Update label="Production-grade indexes" description="Composite indexes for submission caps and bot-aware analytics scans."> New indexes on `flex_form_submissions` (form + partial + IP/user) and `flex_form_analytics_events` (form + bot + event + time) keep [access gate](/guides/access-gates) counters and Insights fast at scale. </Update> <Update label="Studio architecture split" description="Leaner StudioApp with focused hooks for faster iteration and fewer regressions."> Studio's internals were refactored into smaller, purpose-built hooks and components — no user-facing change, but it means new fields, Logic actions, and settings ship faster and with fewer regressions. </Update> <Update label="SSRF-hardened webhooks" description="DNS re-resolution, private-range blocking, and metadata-host denylisting on every outbound webhook."> The [Webhooks](/developers/webhooks) integration re-validates the fully interpolated URL (including merge tags) at dispatch time, not just at save time, closing a class of bypasses. </Update> <Tip> Watch the roadmap for what's coming next at [Roadmap](/resources/roadmap), or subscribe to release notes via [GitHub](https://github.com/janczakb/filament-flex-forms/releases). </Tip>