Answer()

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

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments

2 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)
    }

    0
    Comment actions Permalink
  • I mean in Q25 Answer options should be Completely satisfied 1 or Somewhat dissatisfied 2 then Q26 will be asked.

    0
    Comment actions Permalink

Please sign in to leave a comment.