logo SmartSurvey / Scripting Docs
Back to Docs
Question Property
*INCLUDE [QId]

*INCLUDE is used to bring/carry selected response options from another question into the current question, or to populate/code a question based on a condition. We will assign a QId just after the keyword *INCLUDE with third bracket [ ].

Basic Syntax :
*QUESTION <QuestionID> <QuestionType> *INCLUDE [SourceQuestion]

Syntax *INCLUDE [QId]
Applies To *SR *MR *RANK *GRIDSR *GRIDMR
Usage Example
script definition (.q)
*QUESTION RQ21 *MR *INCLUDE [RQ20]
RQ21. From which of these brands have you purchased during the last 12 months? [MA]
1:Aarong
2:TAAGA
3:Yellow
4:Cat's Eye
5:Noir
6:Blue Cheese
7:Illiyeen
IF we need to include option from more than one question we will create a dummy question to include it all and then use it in the whare we need to filter the attribute.