Click or drag to resize
IUserAccessiableFilterTopicsByAnswers Method (Int32, Boolean, 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 and Single Choice Grid

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
void FilterTopicsByAnswers(
	int inTargetQuesIdx,
	bool inShow,
	params int[] inSourceIndices
)

Parameters

inTargetQuesIdx
Type: SystemInt32
Target Question index
inShow
Type: SystemBoolean
‘true’ for showing answers selected, ‘false’ for showing answers not selected
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 NOT selected as answers in q2 and filter out the topics selected, I can write this in q3 start script: FilterTopicByAnswers(CurrQues,false,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,false,1,2);
See Also