diff --git a/src/js/brutusin-json-forms.js b/src/js/brutusin-json-forms.js index 5561174..ff66c65 100644 --- a/src/js/brutusin-json-forms.js +++ b/src/js/brutusin-json-forms.js @@ -938,6 +938,7 @@ if (typeof brutusin === "undefined") { return object; } } + if (!container) { return null; } else { @@ -1356,6 +1357,14 @@ if (typeof brutusin === "undefined") { } else { value = null; } + } else if (schema.format === "radio") { + value = null; + for (var i = 0; i < input.childElementCount; i++) { + if (input.childNodes[i].tagName === "INPUT" && input.childNodes[i].checked) { + value = input.childNodes[i].value; + break; + } + } } } else if (schema.type === "any") { if (value) {