|
|
|
@ -80,9 +80,17 @@ class FimsFormFields extends FormFields {
|
|
|
|
|
document.querySelectorAll(this.children).forEach(input => {
|
|
|
|
|
let property = input.name || input.id;
|
|
|
|
|
let value = input.value;
|
|
|
|
|
if ("radio" == input.type) {
|
|
|
|
|
if (input.checked)
|
|
|
|
|
if("radio" == input.type) {
|
|
|
|
|
if(input.checked)
|
|
|
|
|
obj[property] = value;
|
|
|
|
|
} else if("checkbox" == input.type) {
|
|
|
|
|
if(input.checked){
|
|
|
|
|
if(obj[property]){
|
|
|
|
|
obj[property] += ","+value;
|
|
|
|
|
} else {
|
|
|
|
|
obj[property] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if(input.dataset.fmtType){
|
|
|
|
|
const fmtType = input.dataset.fmtType;
|
|
|
|
|