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 ↗