Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WEBGDE-Components
web-ui
Commits
ec4bd8b1
Commit
ec4bd8b1
authored
Feb 07, 2023
by
Jorem Magcawas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update textarea handler on schema
parent
beb57d7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
427 additions
and
2 deletions
+427
-2
config.js
WebGde/WebContent/config.js
+1
-1
getFields.js
WebGde/WebContent/src/getFields/getFields.js
+1
-1
Speed Test Application Form schema.json
...src/sample_schema/Speed Test Application Form schema.json
+425
-0
No files found.
WebGde/WebContent/config.js
View file @
ec4bd8b1
...
...
@@ -22,7 +22,7 @@
// schema with 5 fields and all possible collections
//const SCHEMA_FILE = "./src/sample_schema/5_field_schema.json"
var
SCHEMA_FILE
=
"./src/sample_schema/
HR Speed Test
schema.json"
var
SCHEMA_FILE
=
"./src/sample_schema/
Speed Test Application Form
schema.json"
// const SCHEMA_FILE = "./src/sample_schema/Sample_Schema.json"
...
...
WebGde/WebContent/src/getFields/getFields.js
View file @
ec4bd8b1
...
...
@@ -549,7 +549,7 @@ const deconstruct = (section, div, classAttribute) => {
case
'date'
:
case
'datepicker'
:
input
=
inputDate
(
key
,
validation
)
break
break
default
:
input
=
noValidation
()
break
...
...
WebGde/WebContent/src/sample_schema/Speed Test Application Form schema.json
0 → 100644
View file @
ec4bd8b1
{
"APPLICATION FORM"
:
{
"SECTION1"
:
{
"Date"
:
{
"fieldLabel"
:
"Date"
,
"aka"
:
"field2"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*_={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Position Applied For"
:
{
"fieldLabel"
:
"Pos Applied For"
,
"aka"
:
"field3"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Surname"
:
{
"fieldLabel"
:
"Surname"
,
"aka"
:
"field4"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"First Name"
:
{
"fieldLabel"
:
"First Name"
,
"aka"
:
"field5"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Middle Name"
:
{
"fieldLabel"
:
"Mid Name"
,
"aka"
:
"field6"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Mother's Maiden Name"
:
{
"fieldLabel"
:
"Mother's Maiden Name"
,
"aka"
:
"field7"
,
"validation"
:
{
"fieldLength"
:
100
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Nickname"
:
{
"fieldLabel"
:
"Nickname"
,
"aka"
:
"field8"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Email Address"
:
{
"fieldLabel"
:
"Email"
,
"aka"
:
"field9"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"mandatory"
:
true
}
},
"Mobile Number"
:
{
"fieldLabel"
:
"Mobile No."
,
"aka"
:
"field10"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Telephone Number"
:
{
"fieldLabel"
:
"Tel. No."
,
"aka"
:
"field11"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
false
}
},
"Present Address House No"
:
{
"fieldLabel"
:
"Pres Add House No"
,
"aka"
:
"field13"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Present Address Street"
:
{
"fieldLabel"
:
"Pres Add Street"
,
"aka"
:
"field14"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"mandatory"
:
true
}
},
"Present Address Village/Subd"
:
{
"fieldLabel"
:
"Pres Add Vill/Subd"
,
"aka"
:
"field15"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Present Address Municipality/City/Province"
:
{
"fieldLabel"
:
"Pres Add Mun/City/Prov"
,
"aka"
:
"field16"
,
"validation"
:
{
"fieldLength"
:
60
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Years of Stay"
:
{
"fieldLabel"
:
"Yrs of Stay"
,
"aka"
:
"field17"
,
"validation"
:
{
"fieldLength"
:
3
,
"collection"
:
"numeric"
,
"mandatory"
:
true
}
},
"Provincial Address House No"
:
{
"fieldLabel"
:
"Prov Add House No"
,
"aka"
:
"field19"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Provincial Address Street"
:
{
"fieldLabel"
:
"Prov Add Street"
,
"aka"
:
"field20"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"mandatory"
:
true
}
},
"Provincial Address Village/Subd"
:
{
"fieldLabel"
:
"Prov Add Vill/Subd"
,
"aka"
:
"field21"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Provincial Address Municipality/City/Province"
:
{
"fieldLabel"
:
"Prov Add Mun/City/Prov"
,
"aka"
:
"field22"
,
"validation"
:
{
"fieldLength"
:
60
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Religion"
:
{
"fieldLabel"
:
"Religion"
,
"aka"
:
"field23"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Place of Birth"
:
{
"fieldLabel"
:
"Place of Birth"
,
"aka"
:
"field24"
,
"validation"
:
{
"fieldLength"
:
50
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Date of Birth"
:
{
"fieldLabel"
:
"Date of Birth"
,
"aka"
:
"field25"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Age"
:
{
"fieldLabel"
:
"Age"
,
"aka"
:
"field26"
,
"validation"
:
{
"fieldLength"
:
3
,
"collection"
:
"numeric"
,
"mandatory"
:
true
}
},
"Gender"
:
{
"fieldLabel"
:
"Gender"
,
"aka"
:
"field27"
,
"validation"
:
{
"fieldLength"
:
10
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Civil Status"
:
{
"fieldLabel"
:
"Civil Status"
,
"aka"
:
"field28"
,
"validation"
:
{
"fieldLength"
:
10
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Nationality"
:
{
"fieldLabel"
:
"Nationality"
,
"aka"
:
"field29"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"SSS Number"
:
{
"fieldLabel"
:
"SSS No"
,
"aka"
:
"field30"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
false
}
},
"TIN"
:
{
"fieldLabel"
:
"TIN"
,
"aka"
:
"field31"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
false
}
},
"Commmunity Tax Number"
:
{
"fieldLabel"
:
"Comm Tax No"
,
"aka"
:
"field32"
,
"validation"
:
{
"fieldLength"
:
20
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
false
}
},
"Place of Issue"
:
{
"fieldLabel"
:
"Place of Issue"
,
"aka"
:
"field33"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
false
}
},
"Date of Issue"
:
{
"fieldLabel"
:
"Date of Issue"
,
"aka"
:
"field34"
,
"validation"
:
{
"fieldLength"
:
25
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
false
}
},
"Height"
:
{
"fieldLabel"
:
"Height"
,
"aka"
:
"field35"
,
"validation"
:
{
"fieldLength"
:
10
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Weight"
:
{
"fieldLabel"
:
"Weight"
,
"aka"
:
"field36"
,
"validation"
:
{
"fieldLength"
:
10
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Spoken Languages"
:
{
"fieldLabel"
:
"Spoken Languages"
,
"aka"
:
"field38"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
},
"Written Languages"
:
{
"fieldLabel"
:
"Written Languages"
,
"aka"
:
"field39"
,
"validation"
:
{
"fieldLength"
:
30
,
"collection"
:
"alphanumeric"
,
"invalidchar"
:
"`~!@#&$%^*={}[]:;/
\"
|
\\
<>"
,
"mandatory"
:
true
}
}
}
}
}
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