Click or drag to resize
IUserAccessiableSetMultiAnswersVisible Method (Int32, DVar, Boolean, Boolean, ItemVisibleRef)
This function will create Visibility conditions for answers 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 SetMultiAnswersVisible(
	int inQuesIdx,
	DVar inValue,
	bool inShow,
	bool inReset,
	params ItemVisibleRef[] inAVRefs
)

Parameters

inQuesIdx
Type: SystemInt32
Target Question
inValue
Type: SurveyToGo.UserLogic.InterfacesDVar
Text value from source
inShow
Type: SystemBoolean
true for showing \ false for hiding
inReset
Type: SystemBoolean
true for re-setting previous visibility, false for not re-setting
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, single choice, with 4 answers, each answer is a food type. SetMultiAnswersVisible(CurrQues,SelectedAnswerText(CurrQues-1),true,false,AVPosRef(“IL”), AVPosRef(“UK”), AVPosRef(“USA”), AVPosRef(“UK,USA”)) This function will do the following: Show\Hide only Answer 1, if ‘IL’ is chosen in question 1. Show\Hide only Answer 2, if ‘UK’ is chosen in question 1. Show\Hide only Answer 3, if ‘USA’ is chosen in question 1. Show\Hide only Answer 4, if ‘UK’ or ‘USA’ is chosen in question 1.
See Also