How to use the survey-jquery.StylesManager function in survey-jquery

To help you get started, we’ve selected a few survey-jquery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scify / Crowdsourcing-Platform / resources / assets / js / pages / landingPage.js View on Github external
let displayQuestionnaire = function () {
        let wrapperId = 'questionnaire-display-section';
        let wrapper = $('#' + wrapperId);
        if (wrapper.length > 0) {

            Survey.StylesManager.applyTheme("darkblue");
            Survey.surveyStrings.emptySurvey = "There is not currently an active survey.";
            Survey.surveyStrings.loadingSurvey = "Please wait. The survey is loading…";

            Survey
                .JsonObject
                .metaData
                .addProperty("questionbase", "qnum");

            let json = wrapper.data('content');
            json.questionTitleTemplate = "{qnum}. {title}";
            json.requiredText = "(*)";
            json.showQuestionNumbers = "off";

            json.pages.forEach(function (page) {
                page.elements = setQuestionNumbers(page.elements);
            });

survey-jquery

survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.

MIT
Latest version published 1 day ago

Package Health Score

95 / 100
Full package analysis