formrenderer-base icon indicating copy to clipboard operation
formrenderer-base copied to clipboard

Missing some Text div & Checkbox div while rendering the form using JSON data.

Open sathyachan opened this issue 9 years ago • 0 comments

We are using formrenderer to render poll questions in our application. The poll questions contains text, checkbox, paragraph and radiobutton field types. These data are saved in json file and the form is rendered using the data in the json file. But in some scenarios, few field_wrapper div goes missing. Eg Json data: text = [{"label":"1)Check 1","field_type":"checkboxes", "required":false,"field_options":{"options": [{"label":"1","checked":false},{"label":"2","checked":false}], "include_other_option":false},"id":"c18"},{"label":"2)Text 1","field_type":"text","required":false, "field_options":{"size":"small"},"id":"c2"},{"label":"3)Paragraph 1","field_type":"paragraph","required":false, "field_options":{"size":"small"},"id":"c6"},{"label":"4)Radio 1","field_type":"radio","required":false, "field_options":{"options":[{"label":"1","checked":false},{"label":"2","checked":false}, {"label":"3","checked":false}],"include_other_option":false},"id":"c14"}, {"label":"5)Check 2","field_type":"checkboxes","required":false,"field_options":{"options":[{"label":"3","checked":false}, {"label":"4","checked":false},{"label":"5","checked":false}],"include_other_option":false},"id":"c31"}, {"label":"6)Text 2","field_type":"text","required":false,"field_options":{"size":"small"},"id":"c39"}, {"label":"7)Paragraph 2","field_type":"paragraph","required":false,"field_options":{"size":"small"},"id":"c43"}, {"label":"8)Radio 2","field_type":"radio","required":false,"field_options":{"options":[{"label":"4","checked":false}, {"label":"5","checked":false}]},"id":"c47"},{"label":"9)Check 3","field_type":"checkboxes","required":false, "field_options":{"options":[{"label":"6","checked":false},{"label":"7","checked":false},{"label":"8","checked":false}, {"label":"9","checked":false}],"include_other_option":true},"id":"c51"}]

While using the above json content to render poll questions, the TEXT field that comes after the 1st checkbox and the CHECKBOX field that comes after the RadioButton goes missing.

sathyachan avatar Feb 18 '17 19:02 sathyachan