DVar Answer (Int32 inQuesIdx)
Description
Returns the answer of a question. Valid for questions that have one answer like open ended, single choice, numeric etc. Should not be used for questions of type Multiple Selection, Grids etc. for these questions use AnswerChoice.
Parameters
The following is a list of parameters the functions receives
| Parameter | Type | Description |
|---|---|---|
| inQuesIdx | Int32 | Target question |
Return Type
DVar
Comments
Hi,
Only if in Q25, code 29 is selected, I need question text as "Hello" otherwise any other codes selected, the question text will be the Topic text in Q25. Trying the script as below but it is not working. Can you please advise?
if (Answer(Q25,IterationIndex)==29)
{
SetTextFormat(Q26,"Hello")
}
else
{
SetTextFormat(Q26,IterationName)
}
I mean in Q25 Answer options should be Completely satisfied 1 or Somewhat dissatisfied 2 then Q26 will be asked.
Please sign in to leave a comment.