Commit b8030e1b by Joel Florentin

validacion descripcion experiencia requerido en form postulante

parent 9eeb704f
...@@ -223,11 +223,11 @@ function agregarFieldExpierncia(event){ ...@@ -223,11 +223,11 @@ function agregarFieldExpierncia(event){
let pos_rec; let pos_rec;
let returnFlag = false; let returnFlag = false;
let requiredValues = ["institucion", "cargo", "fechaDesde"] let requiredValues = ["institucion", "cargo", "fechaDesde", "descripcion"]
formData.forEach((value, key)=>{ formData.forEach((value, key)=>{
if(requiredValues.includes(key) if(requiredValues.includes(key)
&& value==="" && returnFlag == false){ && value.trim()==="" && returnFlag == false){
console.log(key, value) console.log(key, value)
returnFlag = true; returnFlag = true;
} }
......
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
<div class="inputs"> <div class="inputs">
<label for="descripcion" class="form-label">Descripcion</label> <label for="descripcion" class="form-label">Descripcion</label>
<textarea class="form-control " name="descripcion" id="descripcion"> </textarea> <textarea class="form-control" name="descripcion" id="descripcion" required></textarea>
</div> </div>
<div class="inputs"> <div class="inputs">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment