|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | {{CGscriptMethods_Template|ReturnType=Array of Question|Name=<nowiki>Question_loadQuestionFromQuestionnaire</nowiki>|Parameters=
| + | See more info at [[Question_class]] |
− | {{CGscriptParameters_Template|Type=int|Name=<nowiki>questionnaireId</nowiki>|Description=<nowiki>Id of the questionnaire to load from. 0 to use context</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=string|Name=<nowiki>questionLabel</nowiki>|Description=<nowiki>Label of the question to load</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>latestOnly</nowiki>|Description=<nowiki>If user has multiple qas, only include last created</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>completedOnly</nowiki>|Description=<nowiki>Limit by qas that is completed</nowiki>}}
| + | [[Category:Questionnaire_Functions]] |
− | |InClass=<nowiki>Question</nowiki>
| |
− | |Description=<nowiki>Load all question from questionnaire</nowiki>}}
| |
− | {{CGscriptMethods_Template|ReturnType=Array of Question|Name=<nowiki>Question_loadQuestionFromQuestionnaire</nowiki>|Parameters=
| |
− | {{CGscriptParameters_Template|Type=int|Name=<nowiki>questionnaireId</nowiki>|Description=<nowiki>Id of the questionnaire to load from. 0 to use context</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=string|Name=<nowiki>questionLabel</nowiki>|Description=<nowiki>Label of the question to load</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>latestOnly</nowiki>|Description=<nowiki>If user has multiple qas, only include last created</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>completedOnly</nowiki>|Description=<nowiki>Limit by qas that is completed</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=int|Name=<nowiki>limitByQuestionnaireId</nowiki>|Description=<nowiki>Limit by users that participated in this questionnaire</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=bool|Name=<nowiki>limitByCompletedQuestionnaireId</nowiki>|Description=<nowiki>Limit by qas that is completed the limitByQuestionnaireId</nowiki>}}
| |
− | |InClass=<nowiki>Question</nowiki>
| |
− | |Description=<nowiki>Load all question from questionnaire</nowiki>}}
| |
Latest revision as of 05:04, 15 May 2024