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
34b062f7
Commit
34b062f7
authored
Sep 14, 2023
by
Owen Ryan Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WG-390 Resolution
parent
4e62f742
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
generateFields.js
...bContent/WebGde-Widgets/DataInputWidget/generateFields.js
+8
-4
submit.js
WebGde/WebContent/WebGde-Widgets/Submit/submit.js
+2
-2
No files found.
WebGde/WebContent/WebGde-Widgets/DataInputWidget/generateFields.js
View file @
34b062f7
...
...
@@ -478,7 +478,8 @@ const inputChecklist = (key, validation) => {
var
checkbox
=
document
.
createElement
(
'input'
);
checkbox
.
type
=
'checkbox'
;
checkbox
.
name
=
'checkboxChoices'
;
checkbox
.
name
=
`checkboxChoices_
${
key
}
`
;
checkbox
.
classList
.
add
(
"checkboxOption"
);
checkbox
.
value
=
item
;
if
(
index
==
0
)
checkbox
.
setAttribute
(
'id'
,
`
${
key
}
`
);
...
...
@@ -495,7 +496,8 @@ const inputChecklist = (key, validation) => {
dependentDiv
.
classList
.
add
(
'checkbox'
);
var
dependentCheckbox
=
document
.
createElement
(
'input'
);
dependentCheckbox
.
type
=
'checkbox'
;
dependentCheckbox
.
name
=
'checkboxChoices'
;
dependentCheckbox
.
name
=
`checkboxChoices_
${
key
}
`
;
dependentCheckbox
.
classList
.
add
(
"checkboxOption"
);
dependentCheckbox
.
id
=
'checkDP'
;
dependentCheckbox
.
value
=
''
;
// Set the value here based on the input text
dependentDiv
.
appendChild
(
dependentCheckbox
);
...
...
@@ -565,7 +567,8 @@ const inputRadiolist = (key, validation) => {
var
radio
=
document
.
createElement
(
'input'
);
radio
.
type
=
'radio'
;
radio
.
name
=
'radioChoices'
;
radio
.
name
=
`radioChoices_
${
key
}
`
;
radio
.
classList
.
add
(
"radioOption"
);
radio
.
value
=
item
;
if
(
index
==
0
)
radio
.
setAttribute
(
'id'
,
`
${
key
}
`
);
...
...
@@ -581,7 +584,8 @@ const inputRadiolist = (key, validation) => {
dependentDiv
.
classList
.
add
(
'radio-like-checkbox'
);
var
dependentRadio
=
document
.
createElement
(
'input'
);
dependentRadio
.
type
=
'radio'
;
dependentRadio
.
name
=
'radioChoices'
;
dependentRadio
.
name
=
`radioChoices_
${
key
}
`
;
dependentRadio
.
classList
.
add
(
"radioOption"
);
dependentRadio
.
value
=
''
;
dependentDiv
.
appendChild
(
dependentRadio
);
...
...
WebGde/WebContent/WebGde-Widgets/Submit/submit.js
View file @
34b062f7
...
...
@@ -30,8 +30,8 @@ export const submitForm = async (e) => {
if
(
type
===
'submit'
)
continue
if
(
type
===
'file'
)
continue
if
(
type
===
'hidden'
)
continue
if
(
id
===
'Radio_List'
||
name
==
'radioChoices'
)
continue
if
(
id
===
'Checkbox_List'
||
name
==
'checkboxChoices'
)
continue
if
(
id
===
'Radio_List'
||
element
.
classList
.
contains
(
'radioOption'
)
)
continue
if
(
id
===
'Checkbox_List'
||
element
.
classList
.
contains
(
"checkboxOption"
)
)
continue
if
(
id
===
'DocType'
)
{
doctype
=
element
.
options
[
element
.
selectedIndex
].
text
;
...
...
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