Basic References

Reference previous answers to create dynamic, personalized surveys.

Simple References

Reference any previous question by wrapping its name in curly braces.

{question_name}

Q1: What is your name?

Question name: name

Q2: Hello {name}, how old are you?

Where to Use

References can be used in question text to display previous answers, in display conditions to show or hide questions based on values, in calculate fields to compute with arithmetic, and in constraints to validate against other values. You can only reference questions that appear earlier in the survey. Forward references are not allowed.

Question Text: Display previous answers
Display Conditions: Show or hide based on values
Calculate Fields: Compute with arithmetic (Calculate type only)
Constraints: Validate against other values
Note: Arithmetic (*, /, +, -) and ternary operators (? :) only work in Calculate question types

Common Examples

Personalized greeting: Welcome back, {name}!
Confirmation: You selected {choice}. Is this correct?
Conditional display: {has_children} === 'yes' (Show question only if they have children)