IUserAccessiableFilterTopicsByAnswers Method (Int32, Int32) |
Hides or shows the topics in Matrix, Single Choice Grid, Stopper and Counter (inTargetQuesIdx) that thier matching (by index) answers are selected in Multiple Selection, Single choice, Rating, Single Choice Grid and Single Choice Grid
Namespace: SurveyToGo.UserLogic.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax void FilterTopicsByAnswers(
int inTargetQuesIdx,
params int[] inSourceIndices
)
Parameters
- inTargetQuesIdx
- Type: SystemInt32
Target Question index - inSourceIndices
- Type: SystemInt32
Source Question Index, if more than one, separate with a comma
Remarks Assumes that the Target question's Topic list is the same as the source question's answer list
Examples If I have two questions with the same set of Topics/Answers (q2,q3), and I would like q3 to show only the Topics selected as answers in q2 and filter out the topics not selected, I can write this in q3 start script:
FilterTopicByAnswers(CurrQues,2);
If I have another question (q1) with the same set of answers, and I want q3 to filter also from it and also from q2, I can write this in q3 start script:
FilterTopicByAnswers(CurrQues,1,2);
See Also