SetSelectedAnswerAdditionalTextIter

bool SetSelectedAnswerAdditionalTextIter(int inQuesIdx, String inAnswerIdentifier, string inAdditionalText, int inIter)

Description

Sets additional text for a previously selected answer (an "other specify" answer) in a specific iteration, without resetting settings of other answers (if were set).
Works only for an "other specify" answer that is already set (selected) in the question.
Relevant for Multiple Selection questions with multiple "other (specify)" answers.

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inQuesIdx Int Question Index
inAnswerIdentifier string  The Answer Index that is set as Other Specify
inAdditionalText string The value to set to the other specify
inIter Int Iteration index

 

Return Type

Bool

Overloads

List of overloads for this function

bool SetSelectedAnswerAdditionalTextIter(int inQuesIdx, String inAnswerIdentifier, string inAdditionalText, sting inIter)
Parameters for overloads:
Parameter Type Description
inQuesIdx Int Question Index
inAnswerIdentifier string  The Answer Index that is set as Other Specify
inAdditionalText string The value to set to the other specify
inIter string Iteration index


Examples

Answer index 5 in question index 10 is an "other specify" answer. Question 10 is under loop chapter B which is under loop chapter A.
When question 10 was asked under this iterations status: iteration 3 of loop A and iteration 6 of loop B, answer 5 was (selected).
SetSelectedAnswerAdditionalTextIter(QRef(10), 5, "My New Text", CreateMultiIterationsString(3,6)) will set the text "My New Text" as the additional text of answer 5 under those iterations.

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

Comments

0 comments

Please sign in to leave a comment.