SetMultiAnswersVisible

Void SetMultiAnswersVisible(int inQuesIdx, DVar inValue, ItemVisibleRef[] inAVRefs)

Description

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.

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inQuesIdx Int32 Question Index
inValue DVar Text value from source
inAVRefs ItemVisibleRef[] Array of AVPosRef() items

Return Type

void

Overloads

List of overloads for this function

void SetMultiAnswersVisible(int inQuesIdx, DVar inValue, bool inShow, params ItemVisibleRef[] inAVRefs)
void SetMultiAnswersVisible(int inQuesIdx, DVar inValue, bool inShow, bool inReset, params ItemVisibleRef[] inAVRefs)

Parameters for overloads:

Parameter Type Description
inQuesIdx Int32 Target question
inValue DVar Text value from source
inAVRefs ItemVisibleRef[] Array of AVPosRef() items
inShow bool true for showing \ false for hiding
inReset bool true for re-setting previous visibility, false for not re-setting


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),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.

Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request

Comments

1 comment
  • hi, can this function be used with multiple answer questions? source and target?

    0
    Comment actions Permalink

Please sign in to leave a comment.