Click or drag to resize
IUserAccessiableFilterAnswersByAnswers Method (Int32, 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, Single Choice Grid 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,
	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 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 selected in q2 and filter out the answers not selected, I can write this in q3 start script: FilterAnswersByAnswers(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: FilterAnswersByAnswers(CurrQues,1,2);
See Also