Getting started

Introduction

Fieldbase is a survey-authoring platform. Surveys are written in YAML; conditional logic is written in Python. Fieldbase renders the preview, runs the logic, and produces a clean export.

What Fieldbase is

Fieldbase is a survey-authoring platform. The survey itself — questions, options, pages, loops — is written in YAML. Any conditional logic — when to show a question, when to pipe a previous answer, when to fail validation — is written in Python. Fieldbase checks the YAML, renders an interactive preview, runs the Python at the right moments, and produces a canonical export when respondents finish.

The two languages have distinct jobs:

  • YAML describes what the survey contains.
  • Python describes what happens when.

If you’ve worked in an SPSS Quantum pipeline or another survey scripting environment, the shape of a survey will feel familiar. The runtime model differs in places that matter; Core concepts walks through the differences in one sitting.

Authoring with AI

Fieldbase is designed to be authored with AI assistance. The AI drafts most of a survey from a brief — YAML structure, routing, loops — and the survey programmer reviews and adjusts. The AI is a fast first pass, not a replacement.

The manual is written so both audiences read it: the AI uses it as ground truth when generating, and the survey programmer uses it to verify and refine. As a consequence:

  • Naming rules, validation behaviour, and runtime semantics are spelled out explicitly, never implied.
  • Examples shown here are the same examples the AI is trained on.
  • Anything marked TBD or In progress has rules that are not yet locked. Code that depends on those areas may need to change.

Audience

This manual is written for:

  • Survey programmers — reviewing the AI’s draft, or writing surveys from scratch. Familiarity with YAML and short Python expressions is assumed; software-engineering background is not required.
  • Analysts — looking up the export format, column-naming rules, or the meaning of null values in the data.

If the goal is the export and not the authoring, Export → Column naming is the right entry point.

Reading order, first time

  1. Quick start — a five-minute survey, blank file to preview.
  2. Core concepts — the mental model: questions, proxies, collections, loops.
  3. Question types — the catalogue.
  4. Runtime & expressions — how to write conditions and pipe values in Python.
  5. Export & data — what comes out the other end.

Everything else is reference. Read it when needed.

Conventions

  • Survey examples are written in YAML.
  • Logic examples (conditions, scripts, validation) are written in Python.
  • Property names and identifiers use inline code.
  • “Q” in code samples stands in for any question id (Q1, QBrand, BrandLoop).
  • A blue note flags a useful detail. An amber note flags something easy to get wrong.
  • TBD / In progress flags mean the rule is not yet locked.