Questionnaire createNewWithEmptyQuestionnaireTemplate
Revision as of 09:53, 29 November 2016 by Nguyennhuhong (talk | contribs) (Created page with "{{HelpFiles}} ==== Questionnaire_createNewWithEmptyQuestionnaireTemplate ==== Create new empty questionnaire '''Syntax''' Questionnaire_createNewWithEmptyQuestionnaireTemp...")
Questionnaire_createNewWithEmptyQuestionnaireTemplate
Create new empty questionnaire
Syntax
Questionnaire_createNewWithEmptyQuestionnaireTemplate(string name, int questionnaire_rt_rid, int layout_rid, int parent rid[, string iso[, int qnaire_tmpl_rp_rid]]);
Arguments
name: is string, name questionnaire
questionnaire_rt_rid: is number. Resource template type of questionnaire
layout_rid: is number. resource id layout questionaire
parent_rid: is number. It is parent resource id where contains questionaire
iso: is string. It is language use for survey
qnaire_tmpl_rp_rid: is number. Resource template type of questionnaire template
Return value
Array
Examples
string name = "Questionnaire_test";
number questionnaire_rt_rid = 2076;
number layout_rid = 2838;
number parent_rid = getResourceUniqueIdFromGuid("8FC867D7-57CD-4DD8-9F3D-D80453FE0DA1");
Questionnaire_createNewWithEmptyQuestionnaireTemplate(name, questionnaire_rt_rid, layout_rid, parent_rid, "en-GB",2078);