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
896 stars 370 forks source link

SurveyCreator is a component? #648

Closed benoitgossetinnovhealth closed 4 years ago

benoitgossetinnovhealth commented 4 years ago

Hello, Can you use SurveyCreator like a component? codeSurvey bug

tsv2013 commented 4 years ago

Yes. Here is the sample repo - https://github.com/surveyjs/surveyjs_react_quickstart

benoitgossetinnovhealth commented 4 years ago

It's surveyJs, no survey creator. I don't understand my error, why "TypeError: this is undefined" ?

tsv2013 commented 4 years ago

It's SurveyJS Creator as well. Please check the https://github.com/surveyjs/surveyjs_react_quickstart/blob/master/src/SurveyCreator.js file and https://github.com/surveyjs/surveyjs_react_quickstart/blob/master/src/App.js#L362 string

Nobody reported this error before. Please provide us with a live sample illustrating the issue.