diff --git a/awx/ui/client/src/templates/prompt/prompt.controller.js b/awx/ui/client/src/templates/prompt/prompt.controller.js index d23dce9a54..0e94031b57 100644 --- a/awx/ui/client/src/templates/prompt/prompt.controller.js +++ b/awx/ui/client/src/templates/prompt/prompt.controller.js @@ -229,6 +229,12 @@ export default [ 'ProcessErrors', 'CredentialTypeModel', 'TemplatesStrings', '$f }; vm.keypress = (event) => { + if (vm.steps.survey.tab._active && !vm.readOnlyPrompts && !vm.forms.survey.$valid) { + return; + } + if (document.activeElement.type === 'textarea') { + return; + } if (event.key === 'Enter') { vm.next(activeTab); }