The Form component enables Psychopy to be used as a questionnaire tool, where participants can be presented with a series of questions requiring responses. Form items, defined as questions and response pairs, are presented simultaneously onscreen with a scrollable viewing window.
Note: We have now introduced Pavlovia Surveys which allow you to create online questionnaires. You can either use them by themselves or in conjunction with your experiments. Click here to watch our Pavlovia Surveys Launch Webinar to find out more.
Note: Since this is still in beta, keep an eye out for bug fixes.
Everything in a PsychoPy® experiment needs a unique name. The name should contain only letters, numbers and underscores (no punctuation marks or spaces).
The time that the stimulus should first appear.
Governs the duration for which the stimulus is presented.
The item index as a number
The item question string
The question width between 0 : 1
The type of rating e.g., ‘choice’, ‘rating’, ‘slider’, ‘free-text’
The question width between 0 : 1
A sequence of tick labels for options e.g., yes, no
Response object layout e.g., ‘horiz’ or ‘vert’
The question text font color
The response object color
If you are using a slider, what do you want the granularity of the slider to be?
0 (increments for each item)
0.7
0.3
Yes, No
horiz
from style
from style
Choose whether to store items data by column or row in your datafile.
Randomize order of Form elements
How should the stimulus be laid out? Padding, margins, size, position, etc.
Size of the stimulus, to be specified in ‘height’ units.
The position of the centre of the stimulus, to be specified in ‘height’ units.
Space or padding between Form elements (i.e., question and response text), to be specified in ‘height’ units.
How should the stimulus look? Color, borders, etc. Many of these read-only parameters become editable when Styles is set to custom.
Whether to style items in your form for a light or a dark background
Color of the form’s background See Color spaces
Color of the outline around the form See Color spaces
Base text color for questions See Color spaces
Base text color for responses, also sets color of lines in sliders and borders of textboxes See Color spaces
Color of markers and the scrollbar See Color spaces
In what format (color space) have you specified the colors? (rgb, dkl, lms, hsv) See Color spaces
Options: - rgb - dkl - lms - hsv
Vary the transparency, from 0.0 = invisible to 1.0 = opaque
Formatting text
Text height of the Form elements (i.e., question and response text).
Font to use in text.
Note
Top tip: Form has an attribute to check if all questions have been answered form.complete
. You could use this to make a “submit” button appear only when the form is completed!
See also
API reference for Form