IUserAccessiableSetAnswerWithAdditional Method |
Note: This API is now obsolete.
Relevant for all question types.
Sets the value of an answer/answers in question inQuesIdx with inValues including the value of the Other(Specify).
If the question is of type Multiple Selection or a grid (Single Choice Grid, Numeric Grid etc) it will set the relevant answers with the corresponding values in inValues.
First answer will be set with the first value, second answer will be set with the second value etc.
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax [ObsoleteAttribute("Use SetAnswerWithAdditionalTexts instead")]
bool SetAnswerWithAdditional(
int inQuesIdx,
string inData,
params DVar[] inValues
)
Parameters
- inQuesIdx
- Type: SystemInt32
Index of question - inData
- Type: SystemString
Text to use in the Other(Specify) field - inValues
- Type: SurveyToGo.UserLogic.InterfacesDVar
List of values to set
Return Value
Type:
BooleanExamples
If question 5 is a Single Choice question SetAnswerWithAdditional(Qref(5),"Dooblo", 2) will set the second value as the answer and fill in the Other(Specify) field with Dooblo.
See Also