Use Requirements Deliberately
Required questions and validation rules improve data quality when an answer is necessary for analysis, eligibility, Flow, quotas, or completion. They also add friction, so reserve them for fields that genuinely need a usable value and make the correction path obvious in Preview.
In Domandata, the Required switch is in the question card header. Short-answer validation lives in the question options area after you choose Short Answer as the question type.
Block Builder: Required Questions
Block Builder: Required Questions
Toggle Required on any question to make it mandatory before the respondent can continue.
Find The Controls
Step 1: Open Block Builder. Select the survey and go to the block that contains the question.
Step 1: Open Block Builder
Survey Editor
No-persist demo using the real builder shell.
Step 2: Toggle Required in the card header. The switch appears beside the question type label. Informational content blocks do not collect answers, so they do not need this switch.
Step 2: Toggle Required
Block Builder: Required Questions
Toggle Required on any question to make it mandatory before the respondent can continue.
Step 3: Open the question options. For typed fields, choose Short Answer and find the Validation select in the options area.
Step 3: Open Question Options
Block Builder: Short Answer
Set placeholder text, character limits, and validation rules.
Step 4: Choose the validation kind. Select Integer, Number, Contains, or Python only when the rule matches the research protocol.
Step 4: Choose Validation Kind
Options: Short Answer Validation
Integer validation with Min: 18 and Max: 99 ensures the age field only accepts valid adult ages.
Step 5: Add bounds or rule details. For numeric rules, fill in Min and Max when values outside the range should be rejected.
Step 5: Add Bounds
Options: Short Answer Validation
Integer validation with Min: 18 and Max: 99 ensures the age field only accepts valid adult ages.
Step 6: Test the error state. Open Preview, leave the answer blank or intentionally enter an invalid value, and confirm the respondent can tell what to fix.
Step 6: Test Error State
Block BuilderPreviewDeployPreview: Validation
Enter an age outside 18–99 to trigger the integer validation error. Enter a valid age to confirm the success state passes to the next page.
Configure Rules In Smaller Steps
Step 1: Identify critical fields. Mark only protocol-critical questions as required, such as consent choices, screeners, assignment variables, or primary outcomes.
Step 1: Identify Critical Fields
Block Builder: Required Questions
Toggle Required on any question to make it mandatory before the respondent can continue.
Step 2: Choose the right question type. Use Choose Research Survey Question Types when the response format is still uncertain.
Step 2: Choose Question Type
Block Builder: Question Type
Use the question type selector to switch between multiple choice, slider, grid, ranking, and more.
Step 3: Add validation for typed answers. Use Short Answer validation for numeric, length, contains, or custom checks.
Step 3: Add Validation
Options: Short Answer Validation
Integer validation with Min: 18 and Max: 99 ensures the age field only accepts valid adult ages.
Step 4: Name validated variables. Give important validated fields clear question names before they feed Flow, quotas, or exports.
Step 4: Name Variables
Block Builder: Question Name
The export variable label is the column name for this question in downloaded data.
Step 5: Preview invalid answers. Use Preview to test blank answers, invalid numbers, and edge cases.
Step 5: Preview Invalid Answers
Block BuilderPreviewDeployPreview: Validation
Enter an age outside 18–99 to trigger the integer validation error. Enter a valid age to confirm the success state passes to the next page.
Step 6: Inspect exports. Submit a test response and confirm the cleaned values appear correctly in Export.
Step 6: Inspect Exports
Block BuilderPreviewDeployExport
Download analysis-ready response data from the Export tab.
Rule Examples
- Eligibility age: use Short Answer with Integer validation and a minimum bound that matches the study protocol.
- Allocation variable: use Multiple Choice or Dropdown with fixed options, then name the variable before using it in Flow.
- Completion code confirmation: keep the field optional unless the code is required before the respondent can receive credit.
- Open-ended explanation: avoid strict validation unless the analysis plan needs a minimum length or specific phrase.
- Sensitive demographics: consider optional answers or a Prefer not to answer option so missingness reflects a real respondent choice.
When To Avoid Required Answers
Do not require sensitive demographic questions unless the research protocol needs them. For sensitive or identifying fields, consider inclusive response options such as Prefer not to answer and review Privacy and Anonymity in Research Surveys.
Export: Data Output
Export
Download analysis-ready response data from the Export tab.