diff --git a/public/scripts/services/form.js b/public/scripts/services/form.js index 636c07b36..220f4a597 100644 --- a/public/scripts/services/form.js +++ b/public/scripts/services/form.js @@ -42,6 +42,12 @@ let ref = json; if (name && 'FORM' !== element.tagName) { + if (name.startsWith('[')) { // Check for array names + let splitName = name.split('.'); + if (splitName.length > 1 && splitName[0].endsWith(']')) { + name = splitName[splitName.length-1]; + } + } if ('FIELDSET' === element.tagName) { // Fieldset Array / Object if (castTo === 'object') { @@ -118,4 +124,4 @@ } }, true, false); -})(window); \ No newline at end of file +})(window);