Question T21668
Visible to All Users

Google sheet webapp

created 9 months ago

I am trying to load survey creator in a Google sheets webapp with a minimal load. No matter what I do I get the error

Code
ncaught ReferenceError: SurveyCreator is not defined at userCodeAppPanel:3:17

How to do this?

thanks

Code
<!DOCTYPE html> <html> <head> <base target="_top"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script type="text/javascript" src="https://unpkg.com/knockout/build/output/knockout-latest.js"></script> <script type="text/javascript" src="https://unpkg.com/survey-core/survey.core.min.js"></script> <link href="https://unpkg.com/survey-core/defaultV2.min.css"> <script src="https://cdn.jsdelivr.net/npm/survey-creator-core@1.17.17/survey-creator-core.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/survey-creator-core@1.12.17/survey-creator-core.min.css" rel="stylesheet"> </head> <body> <script> console.log($); // Check if jQuery is defined console.log(SurveyCreator); // Check if SurveyCreator is defined </script> </body> </html>

Answers approved by surveyjs Support

created 9 months ago

Hello,
Your HTML webpage contains the core creator package but doesn't reference the rendering part, survey-creator-js.
Please refer to the following tutorial and integrate SurveyJS Creator within your application: Add Survey Creator / Form Builder to a JavaScript Application. Take note that no Knockout library is required to integrate our survey-creator-js package within your application.

Let me know if it helps.