Difference between revisions of "GotoQuestion"

From Catglobe Wiki
Jump to: navigation, search
(gotoQuestion)
(gotoQuestion)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Questionnaire_Functions]]
 
[[Category:Questionnaire_Functions]]

+
=gotoQuestion=
  
====gotoQuestion====
+
Go to a specific question in the answering questionnaire or in another questionnaire.<br />
 
+
In the case of go to a specific question in another questionnaire. The current respondent must have the newest uncompleted QAS in that questionnaire.
Go to to the question specified as a string (go to the newest uncompleted QAS of QAS's user), can be in another questionnaire.
 
  
 
'''Syntax'''
 
'''Syntax'''
  
gotoQuestion(''question_spec'')
+
gotoQuestion(''questionnaire_qualified_name'')
  
 
'''Arguments'''
 
'''Arguments'''
  
''question_spec'': Is a string expression. It must be a qualified name.
+
''questionnaire_qualified_name'': Is a string expression. It must be a qualified name of the question
  
 
'''Return type'''
 
'''Return type'''
  
 
empty
 
empty
 +
 +
'''See aslo'''
 +
 +
*[[GotoQuestionnaire]] function
  
 
'''Examples'''
 
'''Examples'''
  
//goto to a question belonging to the current //questionnaire
+
<source lang="javascript">
 +
//go to a question belonging to the current questionnaire
  
 
gotoQuestion("DomesticAnimal");
 
gotoQuestion("DomesticAnimal");
  
//goto to a question belonging to another //questionnaire
+
//go to a question belonging to another questionnaire
  
 
gotoQuestion("System\\MyProject\\AnotherQuestionnaire\\DomesticAnimal");
 
gotoQuestion("System\\MyProject\\AnotherQuestionnaire\\DomesticAnimal");
 
+
</source>
'''Availability'''
 
 
 
Version 4.8
 
__NOTOC__
 
<!-- imported from file: 626.htm-->
 

Latest revision as of 05:20, 22 December 2011

gotoQuestion

Go to a specific question in the answering questionnaire or in another questionnaire.
In the case of go to a specific question in another questionnaire. The current respondent must have the newest uncompleted QAS in that questionnaire.

Syntax

gotoQuestion(questionnaire_qualified_name)

Arguments

questionnaire_qualified_name: Is a string expression. It must be a qualified name of the question

Return type

empty

See aslo

Examples

//go to a question belonging to the current questionnaire

gotoQuestion("DomesticAnimal");

//go to a question belonging to another questionnaire

gotoQuestion("System\\MyProject\\AnotherQuestionnaire\\DomesticAnimal");