diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index c4dfa96fc..4ffe90a8a 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -2237,7 +2237,6 @@ function createZProvisionNew(inst) { && inputs.eq(i).attr('name') != 'os' && inputs.eq(i).attr('type') != 'password') { inputs.eq(i).css('border', 'solid #FF0000 1px'); - errMsg = errMsg + 'You are missing inputs.
'; ready = false; } else { inputs.eq(i).css('border', 'solid #BDBDBD 1px'); @@ -2253,6 +2252,11 @@ function createZProvisionNew(inst) { } else { thisUserEntry.css('border', 'solid #BDBDBD 1px'); } + + // Show error message for missing inputs + if (!ready) { + errMsg = errMsg + 'You are missing inputs.
'; + } // Check if user entry contains user ID var thisUserId = $('#' + thisTabId + ' input[name=userId]:visible');