Now I am able to display the Second level data as choices . But I have 100's of choices and i have shown only 8 of them.
It would be very helpful to add categorisation to such long number of choices. instead of going through all the 100 choices.
Would it be possible to add an accordion in the custom script.
where I would click on Button "A" (refer above structure)
and It would display the 3 choices present in it and I can select from it.
HTML template with checkboxes for all the options
function that shows/hides the additional questions when you click on a button or select a checkbox – e.g. by toggling section.style.display = 'none' on the section. Or you could use the <details> element, which gives you an accordion out-of-the-box
This thread also asked a similar question and I shared some links and ideas in the comments: