Closed
Description
Radiobutton and raio doesn't seem to work correctly while being part of an array. Model doesn't reflect the values of selected option. Also radio button let user select multiple values (like checkboxes).
Here is sample form and schema -
Schema -
vm.sSchema={ "type":"object",
"properties":{
"field1":{"type":"array",
"items":{"type":"object",
"properties":{
"field":{"type":"string",
"title":"Radio Example",
"enum":["valA","valB","valC"]
}
}
}
}
}
};
And here is form definition -
vm.sForm=[
{
key:"field1",
add:null,
notitle:true,
items:[
{
key:"field1[].field",
type: "radiobuttons",
titleMap: [
{ value: "valA", name: "Value A" },
{ value: "valB", name: "Value B" },
{ value: "valC", name: "Value C" }
]
}
]
}
];