diff --git a/awx/ui/static/js/forms/SurveyQuestion.js b/awx/ui/static/js/forms/SurveyQuestion.js index 1193370d03..eda11527f6 100644 --- a/awx/ui/static/js/forms/SurveyQuestion.js +++ b/awx/ui/static/js/forms/SurveyQuestion.js @@ -261,7 +261,7 @@ angular.module('SurveyQuestionFormDefinition', []) ngClick: 'cancelQuestion($event)' }, submit_question: { - ngClick: 'submitQuestion()', + ngClick: 'submitQuestion($event)', ngDisabled: true, //'survey_question.$valid', //"!question_name || !variable || !type || ((type.type==='multiplechoice' || type.type === 'multiselect' ) && !choices)", //|| type.type===multiselect ',//'!question_name || !variable || !type' , 'class': 'btn btn-sm btn-primary', label: 'Add Question' diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js index c2cfcc82c8..f03ac533ff 100644 --- a/awx/ui/static/js/helpers/Survey.js +++ b/awx/ui/static/js/helpers/Survey.js @@ -709,7 +709,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', scope.survey_question_form.choices.$setPristine(); }; - scope.submitQuestion = function(){ + scope.submitQuestion = function(event){ var data = {}, fld, key, elementID;