Working with Configuration Files#
A configuration file is yaml
YAML Format#
There are two supported formats for the configuration file
Configuring your study#
To configure the study you will need the urls to each follow-up survey. They do not have to be fully configured first though.
Each question is a single page with a figure on it.
Page level Settings#
These settings control the rest of the question page, other than the figure.
Warning
You cannot use end as a question ID, or end.html as an output file name
Question Text#
Questions’ text goes in the page level parameter question_text. It may include markdown formatting to be rendered.
Some key examples:
**bold***italic*- bulleted text[link display text](url/for/link)a blank space at the end of aline will make a new paragraph
Figure specific Settings#
These settings vary by question type and the options are detailed on Question Types
Build Level Options#
Serverless Survey has some settings that are for a whole study or about how to process the configuration file.
These are set as CLI arguments if you build offline. If you use our template repo, you will have a set of options for these controls in your actions tab.
This is where the path to save the output html files are set as well as the url of the hosted site for generating the instructions. There is also the option to generate only a fragment or to put all questions on a single page (eg for IRB review or paper supplemental materials).