surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.09k stars 795 forks source link

window.survey.render issue after the Release of 1.9.48 #4818

Open avichhetri8 opened 1 year ago

avichhetri8 commented 1 year ago

Are you requesting a feature, reporting a bug or asking a question?

window.survey.render is not working after the new release version i.e. 1.9.48.

What is the current behavior?

window.survey.render("surveyElement-" + item.questionID);

What is the expected behavior?

suvery model should appear on the div id "surveyElement-" + item.questionID which was working fine till the 1.9.47 version.

Test code

var jsons = new Survey.JsonObject().toJsonObject(item);
            var results = {
                "elements": [
                    jsons
                ]
            }
            window.survey = new Survey.Model(results);
            window.survey.showNavigationButtons = false;
            survey.showQuestionNumbers = "off";
            window.survey.focusFirstQuestionAutomatic = false;
            window.survey.render("surveyElement-" + item.questionID);

In version 1.9.47

image

In version 1.9.48

image

Specify your

mwrouse commented 1 year ago

Change to using

window.survey = new SurveyKnockout.Survey(results);