CreateSurveyQuestion

Presets.CreateSurveyQuestion method

Create a question with a variable number of answers. Used in !:CreateSurvey(string, GlobalPageSettings, ChoiceBoxConfig[])

public static ChoiceBoxConfig CreateSurveyQuestion(string question, params string[] answers)
ParameterTypeDescription
questionStringQuestion text.
answersString[]Answers to the question.

Return Value

An object representing a question and all answers

Examples

var question = Presets.CreateSurveyQuestion("Are satisfied with your experience?", "Yes", "No", "Not sure");

See Also