SRP Surveys Playground
Get in touch ?

Welcome to the Playground

Create surveys as code, visualize instantly

The SRP DSL lets you write surveys in a simple, readable format. Write code on the left, see your survey structure flow on the right.

  • Write survey definitions in plain SRP syntax
  • See real-time validation and visualization
  • Export to XForm or share surveys instantly
  • Automatically generate your survey with AI
Validator:
📊
Your survey flow
Once you write valid SRP syntax on the left, your survey structure will appear here as a visual flow diagram.

SRP is a plain-text DSL for defining surveys. Write survey structure as code — pages, question types, and logic — then preview or publish it as an interactive form.

Basic Structure

page "Page title" do
  group "Section name" do

    SingleSelect "How satisfied are you?" do
      option "Very satisfied"
      option "Satisfied"
      option "Neutral"
    end

    OpenEnded "Any other comments?"

  end
end

Common Question Types

  • SingleSelect pick one
  • MultiSelect pick many
  • OpenEnded free text
  • Rating 1–5 scale
  • Ranking order items
  • NPS 0–10 score
  • Dropdown select menu
  • Number numeric input
  • Slider range slider
  • DatePicker date input
  • SingleSelectMatrix grid / rows
  • MediaUpload file upload

Key Attributes

required makes the question mandatory randomize randomize option order add_other_option append an "Other" write-in show_only_if conditional display logic pipe_in insert a prior answer inline min_selections minimum choices required max_selections maximum choices allowed

Conditional Logic

OpenEnded "Why not?" do
  show_only_if "q1 != 'Very satisfied'"
end
Open full Language Guide ↗
expires about 1 month