Mix Survey and Experiment
This journey is for readers who already know one of Testable’s two worlds and want both in one project: a questionnaire between task blocks, a scored quiz after a learning phase, or an experiment bracketed by intake and debrief questions. It assumes you have done, or at least skimmed, one of the two build journeys, Build an Experiment or Build a Survey. It ends with you able to interleave the two worlds in a single trial file and predict exactly how the seams behave.
Understand the fork
Section titled “Understand the fork”- Trial Types. Reread this with the fork in mind: four
typevalues make experiment trials,formmakes a survey row, and the choice is per row, not per project. This is the whole mechanism that makes mixing possible.
Learn the world you skipped
Section titled “Learn the world you skipped”Take the steps for the world you have not built in yet, and skip the rest.
-
Forms and Surveys (for experiment-builders). The anatomy of a
formrow (head,body,responseType), how consecutive form rows gather onto pages, and howpageBreaksplits them. Skip if you came from the survey journey. -
Survey Response Types (for experiment-builders). The question widgets (
radio,likert,checkboxes,slider, and the rest) and their answer options. Skim the table now and return per question type as you need it. Skip if you came from the survey journey. -
Responses in Experiments (for survey-builders). How experiment trials collect responses (
buttons,key, andresponseTypeontestrows) and howkeyscores them for accuracy. Skip if you came from the experiment journey.
Combine them
Section titled “Combine them”-
Mixing Surveys and Experiments. The centre of this journey; read all of it. It covers how form rows group into pages between trials, showing stimuli next to questions, scoring form answers with
key, which columns cross over between the worlds and which stay experiment-only, and it closes with a worked example file.
Run the project as one whole
Section titled “Run the project as one whole”The workflow layer does not care which world a row belongs to, so a mixed project randomises, branches, and screens as a single unit.
-
Randomisation.
randomandrandomBlockshuffle form rows and experiment trials alike, and sampling specs in thetrialOrdercell select among them. On experiment trials,stimOptionsandstimOrderadditionally randomise the stimulus order within a trial. -
How to Inject Logic. The
ifandthencolumns branch on responses from either world; this is how a survey answer routes a participant past or into an experimental block. -
Screener Surveys.
formquestions at the top of the file plusthen = screenoutremove ineligible participants before the main task. Skip if you qualify participants elsewhere.
Check and collect
Section titled “Check and collect”-
Previewing Your Trials. The previewer renders instructions, experiment trials, and form pages alike, and conditional logic works in it, so you can test your branching and screenout rules before publishing.
-
How to Read the Results Files. Form pages write their own rows alongside the rows from your
testtrials; this page shows where each answer lands. The wide download in Results Formats is particularly handy for the survey side, since all answers to the same question end up in one column.
You are ready when
Section titled “You are ready when”You are ready when you can look at the worked example at the end of Mixing Surveys and Experiments and predict, row by row, what participants see, which rows are scored, and how the form rows group into pages. Then build your own mixed file: start from your existing experiment or survey project, drop rows from the other world into the trial file, and preview the seams.