On my Sonata Admin I have two 'choice' fields.
Options on these list are getted with AJAX.
- The first list is classic - 'multiple' & 'extended' to false.
- The second has to be 'multiple' & 'extended', and so, create checkboxes.
For the first list, I can add my options with some JS/Jquery ( append('option') ) but I looking for a solution to create the checkboxes of the second list.
Is there any twig helper ou something else to do this?
Thanks for help!
EDIT:
To be more precise, I want to do two dependents fields (and so, dynamically add options on these list)