can anyone help to provide the JSON code for Accordion to build on Modern Site?

Frequent Contributor



I need to build the collapsible menu on modern site that can pick up the SharePoint List that I have


anyone can provide the coding , as I am not a developer and cannot write code.

I have a list with 3 columns for FAQ (Category, Question and Answer). 

need it to auto pick and populate the data from the SP list to the collapisble menu on the page as an when it is edit or add new items 

To look someth like this...


User click on the + icon to read the answer.   can anyone help.  I can only add the coding format into the Format View (attached below..)

Coll menu.JPG




I find this code (attached doc) but the remaining part are not usable as it is different layout.. can anyone help.  Appreciated.



3 Replies

@Sudharsan K 


Thank you .  The code only create the Q and A into a box.


there's no accordion collapsible to the code and how to have the Category as Header on top of the Question? 


how to add in the collapsible?


Thank you