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
82b76d42
Commit
82b76d42
authored
Sep 20, 2023
by
Owen Ryan Ang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-WG-330-b2' into 'development-mobile'
Fixed some issue with email input mode See merge request
!63
parents
17497215
5f7d79bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
generateFields.js
...bContent/WebGde-Widgets/DataInputWidget/generateFields.js
+6
-5
No files found.
WebGde/WebContent/WebGde-Widgets/DataInputWidget/generateFields.js
View file @
82b76d42
...
...
@@ -245,7 +245,8 @@ const inputString = (key, validation) => {
try
{
const
{
mandatory
,
fieldLength
fieldLength
,
collection
}
=
validation
let
input
=
document
.
createElement
(
'input'
)
...
...
@@ -261,7 +262,7 @@ const inputString = (key, validation) => {
input
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input
.
setAttribute
(
'name'
,
`
${
key
}
`
)
input
.
setAttribute
(
'cols'
,
30
)
if
(
key
==
'E
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
if
(
collection
===
'e
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
else
input
.
setAttribute
(
'inputMode'
,
'text'
)
input
.
addEventListener
(
'focusout'
,
handleInput
)
}
else
if
(
fieldLength
>=
61
&&
fieldLength
<=
90
)
{
...
...
@@ -270,7 +271,7 @@ const inputString = (key, validation) => {
input
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input
.
setAttribute
(
'name'
,
`
${
key
}
`
)
input
.
setAttribute
(
'cols'
,
30
)
if
(
key
==
'E
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
if
(
collection
===
'e
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
else
input
.
setAttribute
(
'inputMode'
,
'text'
)
input
.
addEventListener
(
'focusout'
,
handleInput
)
}
else
if
(
fieldLength
>=
91
&&
fieldLength
<=
120
)
{
...
...
@@ -279,7 +280,7 @@ const inputString = (key, validation) => {
input
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input
.
setAttribute
(
'name'
,
`
${
key
}
`
)
input
.
setAttribute
(
'cols'
,
30
)
if
(
key
==
'E
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
if
(
collection
===
'e
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
else
input
.
setAttribute
(
'inputMode'
,
'text'
)
input
.
addEventListener
(
'focusout'
,
handleInput
)
}
else
if
(
fieldLength
>=
120
)
{
...
...
@@ -288,7 +289,7 @@ const inputString = (key, validation) => {
input
.
setAttribute
(
'id'
,
`
${
key
}
`
)
input
.
setAttribute
(
'name'
,
`
${
key
}
`
)
input
.
setAttribute
(
'cols'
,
30
)
if
(
key
==
'E
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
if
(
collection
===
'e
mail'
)
input
.
setAttribute
(
'inputMode'
,
'email'
)
else
input
.
setAttribute
(
'inputMode'
,
'text'
)
input
.
addEventListener
(
'focusout'
,
handleInput
)
}
...
...
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