-
Is it possible to create custom question types? If so, is there a recommended way to add a custom question type when using this package for individual projects? For example if I wanted to included a drag and drop sortable question in my project, is it possible to extend the base question type component and create a new question component which can then be added to QuestionType object to then use in the FlowForm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This would currently be only possible by using the source from GitHub and modifying it to suit your needs. You'd need to create your new question component by extending QuestionTypes/BaseType.vue and adding your new question type to the QuestionType object (in QuestionModel.js). Just be careful to implement/extend any necessary methods to make sure your answers are saved and validated. We're also planning to make and document an official way to do this in the future. |
Beta Was this translation helpful? Give feedback.
This would currently be only possible by using the source from GitHub and modifying it to suit your needs. You'd need to create your new question component by extending QuestionTypes/BaseType.vue and adding your new question type to the QuestionType object (in QuestionModel.js). Just be careful to implement/extend any necessary methods to make sure your answers are saved and validated. We're also planning to make and document an official way to do this in the future.