logo SmartSurvey / Scripting Docs
Back to Docs
Directive
*REPEAT Flow

Generates repeated instances of a question — one per selected option from a previous *MR question. The repeated question label is auto-suffixed with the loop index.

Usage
script definition (.q)
*MR 'Q2' 'Which brands have you tried?'
1:BrandA
2:BrandB
3:BrandC
/

*OPEN 'Q3' 'Describe your experience with each brand:'
*REPEAT 'Q2'
/
The referenced question must be a *MR question that was already answered before this point in the script.
Pipe the selected option label into the question text using the pipe syntax to personalise each repeated question.
Related