Click or drag to resize
IUserAccessiableFilterAnswersByTopics Method (Int32, Boolean, Boolean, Int32, Int32)
Hides or shows the answers in Multiple Selection,Single choice,Rating and Single Choice Grid (inTargetQuesIdx) that their mathcing (by index) topic in Single Choice Grid, Matrix and Counter (inSourceIdx) has one of the values in (inValues)

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

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
inSourceIdx
Type: SystemInt32
Source Question Index
inValues
Type: SystemInt32
Specific values to trigger the filtering in the source topics
Remarks
Assumes that the Target question's answer list is the same as the source question's topic list
Examples
If I have two questions with the same set of answers\topics (q2,q3), and I would like q3 to show only the answers selected in q2’s topics which had value 6 and filter out the answers not selected, I can write this in q3 start script: FilterAnswersByTopics(CurrQues,true,false,2,6);
See Also