Click or drag to resize
IUserAccessiableFilterTopicsByAnswers Method (Int32, Boolean, 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 (Not including Single choiceGrid)

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

Parameters

inTargetQuesIdx
Type: SystemInt32
Target Question index
inShow
Type: SystemBoolean
‘true’ for showing topics selected, ‘false’ for showing answers not selected
inReset
Type: SystemBoolean
‘true’ for re-setting previous filtering, ‘false’ for not re-setting
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 answers (q2,q3), and I would like q3 to show only the answers selected in q2 and filter out the answers not selected, I can write this in q3 start script: FilterAnswersByAnswers(CurrQues,false,true,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: FilterAnswersByAnswers(CurrQues,false,true,1,2);
See Also