Saltar al contenido principal

Function: getSurvey()

function getSurvey(
context,
siteUrl,
activityId,
type?
): Promise<{
canAnswer: boolean;
intro: string;
messages: string[];
questions: SurveyQuestion[];
}>;

Defined in: areas/surveys/surveys.ts:185

A survey (questionnaire or feedback): whether it can be answered, its intro and messages, and its questions page by page. Its module is found when not given.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
type?SurveyType

Returns​

Promise<{ canAnswer: boolean; intro: string; messages: string[]; questions: SurveyQuestion[]; }>