From the contributor
How to use this sample
Summary
This sample formats your view to appear and work like an Accordion style FAQ (Frequently Asked Questions). This view is responsive.

View requirements
| Column Name | Type |
|---|---|
| Title | Single Line Text |
| Question | Single Line Text |
| Answer | Multi Line Text (Plain text) |
| ShowMore | Single Line Text |
Apply a Group By on the Question column in your view.
Sample
| Solution | Author(s) |
|---|---|
| faq-accordion.json | Anand Vadivelan |
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | July 9, 2021 | Initial release |
| 1.1 | September 3, 2024 | Fixed layout corruption caused by updates to SharePoint and Microsoft Lists |
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Additional notes
Whether answers are displayed expanded or collapsed by default can be set in the Group By section of the Edit View screen.
