surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
910 stars 373 forks source link

Strange output in embed tab in some cases #1091

Closed gologames closed 3 years ago

gologames commented 3 years ago

Knockout + survey window = ??? missing html section image

Vue + survey window = ??? missing instantiating of survey image

Angular + survey window = ??? wrong identation image

gologames commented 3 years ago

Knockout + survey window = ??? missing html section

This is not a bug, but real behavior

gologames commented 3 years ago

Knockout + survey window = ??? undeclared surveyWindow image

Should be like:

var survey = new Survey.SurveyWindow(surveyJSON);
survey.show();
survey.onComplete.add(sendDataToServer);
gologames commented 3 years ago

Vue + survey window should be:

HTML

<div id="surveyContainer"><survey-window :survey="survey"/></div>

JavaScript

var survey = new Survey.Model(surveyJSON);
survey.onComplete.add(sendDataToServer);
new Vue({ el: '#surveyContainer', data: { survey: survey } });
gologames commented 3 years ago

Fixed all these issues in Creator V2