Click or drag to resize
IUserAccessiableFilterAnswersByAnswers Method (Int32, Boolean, Int32)
Hides or shows the answers in Multiple Selection,Single choice,Rating and Single Choice Grid (inTargetQuesIdx) that 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 FilterAnswersByAnswers(
	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 answer 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 NOT selected in q2 and filter out the answers selected, I can write this in q3 start script: FilterAnswersByAnswers(CurrQues,false,2); If I have another question (q1) with the same set, and I want q3 to filter also from it and also from q2, I can write this in q3 start script: FilterAnswersByAnswers(CurrQues,false,1,2);
See Also