Click or drag to resize
IUserAccessiableSetMultiTopicsVisible Method (Int32, DVar, ItemVisibleRef)
This function will create Visibility conditions for topics within a question according to an answer of another question, that will determine which topics are shown\hidden and when. saving multiple re-writing of SetAnswerVisible() functions.

Namespace: SurveyToGo.UserLogic.Interfaces
Assembly: UserLogicInt.Pocket (in UserLogicInt.Pocket.dll) Version: 1.0.4.0
Syntax
C#
void SetMultiTopicsVisible(
	int inQuesIdx,
	DVar inValue,
	params ItemVisibleRef[] inAVRefs
)

Parameters

inQuesIdx
Type: SystemInt32
Target Question Index
inValue
Type: SurveyToGo.UserLogic.InterfacesDVar
Text value from source question
inAVRefs
Type: SurveyToGo.UserLogic.InterfacesItemVisibleRef
Array of AVPosRef() items
Examples
Assuming I have 2 questions: Question 1 a single choice asking for the following Countries: UK,IL,USA. Question 2, multi topic, with 4 topics, each topic is a food type. SetMultiTopicsVisible(CurrQues,SelectedAnswerText(CurrQues-1),AVPosRef(“IL”), AVPosRef(“UK”), AVPosRef(“USA”), AVPosRef(“UK,USA”)) This function will do the following: Show only topic 1, if ‘IL’ is chosen in question 1. Show only topic 2, if ‘UK’ is chosen in question 1. Show only topic 3, if ‘USA’ is chosen in question 1. Show only topic 4, if ‘UK’ or ‘USA’ is chosen in question 1.
See Also