Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oscar Enrique Gonzalez Escurra
th-app-java
Commits
b8030e1b
Commit
b8030e1b
authored
Nov 19, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
validacion descripcion experiencia requerido en form postulante
parent
9eeb704f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
curriculumsearch/src/main/resources/static/main.js
+2
-2
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
+1
-1
No files found.
curriculumsearch/src/main/resources/static/main.js
View file @
b8030e1b
...
@@ -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
;
}
}
...
...
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
View file @
b8030e1b
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment