diff --git a/addons/survey/static/src/js/survey_form.js b/addons/survey/static/src/js/survey_form.js index 0f7d710fad8..564f8c0d0f1 100644 --- a/addons/survey/static/src/js/survey_form.js +++ b/addons/survey/static/src/js/survey_form.js @@ -78,6 +78,8 @@ publicWidget.registry.SurveyFormWidget = publicWidget.Widget.extend(SurveyPreloa self.$surveyProgress = $('.o_survey_progress_wrapper'); self.$surveyNavigation = $('.o_survey_navigation_wrapper'); self.$surveyNavigation.find('.o_survey_navigation_submit').on('click', self._onSubmit.bind(self)); + + self.$('button[type="submit"]').removeClass('disabled'); }); }, @@ -599,6 +601,9 @@ publicWidget.registry.SurveyFormWidget = publicWidget.Widget.extend(SurveyPreloa } this.$('.o_survey_form_content').fadeIn(this.fadeInOutDelay); $("html, body").animate({ scrollTop: 0 }, this.fadeInOutDelay); + + this.$('button[type="submit"]').removeClass('disabled'); + self._focusOnFirstInput(); } else if (result && result.fields && result.error === 'validation') { this.$('.o_survey_form_content').fadeIn(0); diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 10dea4e152f..c5221d2b33c 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -156,7 +156,7 @@

- + or press Enter @@ -204,7 +204,7 @@
- @@ -242,7 +242,7 @@
-