Question T5608
Visible to All Users

Use components from creator

created 4 years ago

Hi,

I have followed the example in the documentation on how to add a component in the creator:
https://surveyjs.io/Documentation/Survey-Creator. It works fine in the creator.

But when I try to use this in the library it does not get rendered (ReactJS), since it does not seem to know about this country type. Do I need to register this component in the Model as well? I do not seem to find any documentation about it.

Regards,

Sam

Answers approved by surveyjs Support

created 4 years ago (modified 4 years ago)

Hello Sam,
You have to register the component for your react survey runner as well. In fact, we are using survey knockout library in SurveyJS Creator and it is a different instance and even library, different rendering. They have the same model, but different instances. You have to registered your Component in both model instances if you have SurveyJS Creator and react Library on the same page.

Thank you,
Andrew
SurveyJS Team