Question T11647
Visible to All Users

survey library custom component not showing

created 2 years ago (modified 2 years ago)

Hello.

use jQuery.

I'm using Survey Library, but I can't see the custom component created through Survey Creator.

But it can see Survey Creator in Preview Tab.

How to fix it?

Source in survey-creator:

Survey.ComponentCollection.Instance.add({
name: "gps",
title: "GPS",
questionJSON: {
type: "html",
name: "gps",
title: "gps",
html: "<div id='survey-gps'></div><script> surveyGps.init() </script>",
}
});

Should I add a source to the surveyjs-library?

Answers approved by surveyjs Support

created 2 years ago

Hello,
Yes, you are right. You have to run the same code for "survey-jquery" instance.

Thank you,
Andrew
SurveyJS Team