Documentation

Guides, references, and machine-readable specs for developers and AI agents.

Raw .md
Complete JSON schema reference for all 25+ field types, showIf, logicRules, and math./docs/fields.md

Fields, Logic & Formulas

Both the REST API (create_form / update_form) and MCP tools accept a strongly validated fields array plus settings.logicRules.

Supported Field Types

Input Fields (20 types)

typeDescription & Key Properties
textSingle-line text; optional format: "iban", "vat_eu", "postal_nl", "postal_eu", "phone_eu", "kvk_nl"
emailValidated email address (first email field populates submitterEmail)
textareaMulti-line text (rows, minLength, maxLength)
numberNumeric value (min, max, step)
telTelephone number
urlHTTP/HTTPS URL
dateISO YYYY-MM-DD date (min, max support "today")
timeHH:MM time
selectDropdown menu (options: [{ value, label, calcValue? }])
radioSingle-choice radio buttons (options)
checkboxesMulti-select checkboxes (options, minSelected, maxSelected)
checkboxBoolean checkbox (checkboxLabel)
consentMandatory GDPR consent checkbox (privacyUrl, privacyLabel)
fileTwo-step private EU R2 upload (accept[], maxSize, max)
hiddenHidden value populated from URL query param (fromQuery)
signatureHTML5 canvas signature pad uploaded as PNG to EU R2 (height, penColor)
ratingStar rating (style: "stars", 1-5) or NPS scale (style: "scale", 0-10)
matrixGrid of rows[] x columns[] (`cellType: "radio""checkbox""text"`)
addressStructured EU address (street, houseNumber, postalCode, city, country)
repeaterDynamic repeatable list of subFields[] (minRows, maxRows, addLabel)
image_choiceVisual choice cards with imageUrl, columns, multiple
calculationSafe read-only math field (formula, prefix, suffix, decimals, hidden)
product_listEU order catalog / donation / fixed amount with vatRatePercent, pricesIncludeVat, coupons[], stockLimit
appointmentLive time-slot booking (durationMinutes, bufferMinutes, maxBookingsPerSlot, timezone, availableDays, startTime, endTime)

Layout Blocks (5 types)

heading (level: 2|3|4), paragraph (content), divider (style: "solid"|"dashed"|"dotted"), image (src, alt, caption), and section (starts a new multi-step page with nextLabel / prevLabel).

Conditional Visibility (showIf)

Every field may define a single ShowIfRule or compound ShowIfGroup (match: "all" | "any"). Referenced fields must appear earlier in the fields array so visibility is strictly acyclic:

json
{
  "id": "fld_vat",
  "type": "text",
  "name": "vat_number",
  "label": "EU VAT number",
  "format": "vat_eu",
  "showIf": {
    "match": "all",
    "rules": [
      { "field": "customer_type", "operator": "eq", "value": "business" },
      { "field": "country", "operator": "neq", "value": "non_eu" }
    ]
  }
}

Supported operators: eq, neq, in, not_in, contains, filled, empty, gt, gte, lt, lte.

Form-Level Logic Rules (settings.logicRules)

Action typeBehavior
skip_stepSkip a section step (targetStep) when condition matches
set_valueAssign a literal or calculated value to targetField
set_requiredDynamically toggle `required: truefalse on targetField`
set_disabledDynamically disable targetField
thank_youOverride confirmation message or safe redirectUrl on submit

Safe Calculations & Answer Piping

  • Calculations use a sandboxed recursive-descent parser (zero eval): {seats} * 49 + count(attendees) * 15.
  • Functions supported: round(), ceil(), floor(), abs(), min(), max(), count(field).
  • Answer Piping: Use {{field_name}} inside labels, paragraphs, success messages, auto-responder emails, PDF filenames, and BlokForms Sign agreement bodies.