diff --git a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js index c68a469617..4f5a855b46 100644 --- a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js +++ b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js @@ -91,12 +91,19 @@ export default ['$scope', 'TemplatesService', 'JobTemplateModel', 'PromptService ]; promptWatcher = $scope.$watchGroup(promptDataToWatch, () => { + const templateType = _.get($scope, 'promptData.templateType'); let missingPromptValue = false; + if ($scope.missingSurveyValue) { missingPromptValue = true; - } else if (!$scope.promptData.prompts.inventory.value || !$scope.promptData.prompts.inventory.value.id) { - missingPromptValue = true; } + + if (templateType !== "workflow_job_template") { + if (!$scope.promptData.prompts.inventory.value || !$scope.promptData.prompts.inventory.value.id) { + missingPromptValue = true; + } + } + $scope.promptModalMissingReqFields = missingPromptValue; });