TypeScriptSurvey.ComponentCollection.Instance.add({
name: 'filecustom',
title: 'File Image',
questionJSON: {
type: 'file',
storeDataAsText: false,
maxSize: 0,
},
});
I have registered custom component using Angular, and successfully appear on survey creator. But why when I try to render on Survey Page, my custom question is not rendered
JSON{
"pages": [
{
"name": "page1",
"elements": [
{
"type": "filecustom",
"name": "question1",
"title": "Image",
"isRequired": true
},
{
"type": "file",
"name": "question3",
"title": "Image 2",
"isRequired": true,
"storeDataAsText": false,
"maxSize": 0
},
{
"type": "text",
"name": "question2",
"title": "Test",
"isRequired": true
}
]
}
]
}
Ohh I just wrong to choose package for add instance custom. After edit to ```
import { ComponentCollection } from 'survey-angular';
CodeComponentCollection.Instance.add({
name: 'filecustom',
title: 'File Image',
questionJSON: {
type: 'file',
storeDataAsText: false,
maxSize: 0,
},
});
It successfully rendered