For the survey, I want to add an extra question type. After submitting the form, I want to retrieve the additional question type value. This is why I need to inherit this function.
publicWidget.registry.SurveyFormWidget = publicWidget.Widget.extend(SurveyPreloadImageMixin,_prepareSubmitValues: function
(formData, params) { (formData, params) {....
this.$('[data-question-type]').each(function () {
switch ($(this).data('questionType')) {
case 'new_question_type':
params[this.name] = this.value;
break;
}
}});