diff --git a/app/static/js/nopaque.js b/app/static/js/nopaque.js index c7dda181..e99090eb 100644 --- a/app/static/js/nopaque.js +++ b/app/static/js/nopaque.js @@ -79,7 +79,7 @@ nopaque.Forms.init = function() { } if (request.status === 400) { for (let [field, errors] of Object.entries(JSON.parse(this.responseText))) { - fieldElement = form.querySelector(`input[name="${field}"]`).closest(".input-field"); + fieldElement = form.querySelector(`input[name="add-job-form-${field}"]`).closest(".input-field"); for (let error of errors) { fieldElement.insertAdjacentHTML("beforeend", `${error}`); }