bool SetSelectedAnswerChoiceAdditionalTextOverrideIter(int inQuesIdx, int inTopicIdx, String inAnswerIdentifier, string inAdditionalText, int inIter)
Description
Sets additional text for an answer (an "other specify" answer) in a specific iteration, without resetting settings of other answers (if were set).
Works for an "other specify" answer even if not already selected (But does not select it).
Relevant for Single Choice Grid / Multiple Choice Grid questions with multiple "other (specify)" answers.
Parameters
The following is a list of parameters the functions receives
Parameter | Type | Description |
---|---|---|
inQuesIdx | Int | Question Index |
inTopicIdx | Int | Topic Index to set |
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 SetSelectedAnswerChoiceAdditionalTextOverrideIter(int inQuesIdx, int inTopicIdx, String inAnswerIdentifier, string inAdditionalText, sting inIter)
Parameters for overloads:
Parameter | Type | Description |
---|---|---|
inQuesIdx | Int | Question Index |
inTopicIdx | Int | Topic Index to set |
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 a loop chapter.
When question 10 was asked under iteration index 2, answer 5 was (selected).
SetSelectedAnswerChoiceAdditionalTextOverrideIter(QRef(10), 3, 5, "My New Text", 2) will set the text "My New Text" as the additional text of topic 3 answer 5 under iteration 2.
Comments
Please sign in to leave a comment.