diff --git a/curriculumsearch/src/main/resources/static/main.js b/curriculumsearch/src/main/resources/static/main.js index beb8b33..a371dc7 100644 --- a/curriculumsearch/src/main/resources/static/main.js +++ b/curriculumsearch/src/main/resources/static/main.js @@ -223,11 +223,11 @@ function agregarFieldExpierncia(event){ let pos_rec; let returnFlag = false; - let requiredValues = ["institucion", "cargo", "fechaDesde"] + let requiredValues = ["institucion", "cargo", "fechaDesde", "descripcion"] formData.forEach((value, key)=>{ if(requiredValues.includes(key) - && value==="" && returnFlag == false){ + && value.trim()==="" && returnFlag == false){ console.log(key, value) returnFlag = true; } diff --git a/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp b/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp index 09310b1..f48c037 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp @@ -316,7 +316,7 @@