IUserAccessiableFilterAnswersByTopics Method (Int32, 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.InterfacesAssembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax void FilterAnswersByTopics(
int inTargetQuesIdx,
bool inShow,
int inSourceIdx,
params int[] inValues
)
Parameters
- inTargetQuesIdx
- Type: SystemInt32
Target Question index - inShow
- Type: SystemBoolean
‘true’ for showing answers selected, ‘false’ for showing answers not selected - inSourceIdx
- Type: SystemInt32
Source Question Index, if more than one, separate with a comma - 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 without value 6, I can write this in q3 start script:
FilterAnswersByTopics(CurrQues,true,2,6);
See Also