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