2020-04-26 15:05:14 -04:00
---
page_type: sample
products:
- office-sp
languages:
- javascript
- typescript
extensions:
contentType: samples
technologies:
- SharePoint Framework
platforms:
- react
createdDate: 04/25/2017 12:00:00 AM
---
2020-11-08 23:21:44 -05:00
# Frequently Asked Questions App
2020-04-25 23:46:39 -07:00
## Summary
- This Web Part allows users to create Frequently Asked Questions(Faq App) in modern and classic SharePoint pages.
2021-04-26 02:08:59 -04:00
- This web part allows to search within questions and answers which are stored in a SharePoint FAQ list.
2020-04-25 23:46:39 -07:00
- "React-autosuggest and react-accessible-accordion" react packages are used for the search and accordion control.
2020-04-26 15:05:14 -04:00

2020-04-25 23:46:39 -07:00
2021-04-26 02:08:59 -04:00
2021-11-07 01:43:55 -04:00
# Compatibility




-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")


2020-04-25 23:46:39 -07:00
## Applies to
2020-06-09 09:09:22 +02:00
* [SharePoint Framework ](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview )
* [Office 365 tenant ](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-development-environment )
2020-04-25 23:46:39 -07:00
## Solution
Solution|Author(s)
--------|---------
react-FAQApp | Ashok Swain - LinkedIn: https://www.linkedin.com/in/ashok-kumar-swain-2627a514
2020-10-30 22:08:00 +01:00
react-FAQApp | Abderahman Moujahid
2020-04-25 23:46:39 -07:00
## Version history
Version|Date|Comments
-------|----|--------
2020-10-30 22:08:00 +01:00
1.0.0 | April 25, 2020 | Initial release
1.0.1 | October 30, 2020 | Fix limit 100 items
2020-04-25 23:46:39 -07:00
## Disclaimer
2020-04-26 15:07:27 -04:00
2020-04-25 23:46:39 -07:00
**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.**
## Minimal Path to Awesome
2020-04-26 15:05:14 -04:00
- `git clone` the repo
- `npm i`
- `npm i -g gulp`
- `gulp serve`
2020-04-25 23:46:39 -07:00
2020-04-26 15:07:27 -04:00
### Local Mode
2020-04-25 23:46:39 -07:00
A browser in local mode (localhost) will be opened.
2020-04-26 15:05:14 -04:00
`https://localhost:4321/temp/workbench.html`
2020-04-25 23:46:39 -07:00
2020-04-26 15:07:27 -04:00
### SharePoint Mode
2020-04-25 23:46:39 -07:00
If you want to try on a real environment, open:
2020-04-26 15:05:14 -04:00
`https://[your-domain].sharepoint.com/_layouts/15/workbench.aspx`
2020-04-25 23:46:39 -07:00
## Usage
2020-04-26 15:07:27 -04:00
2020-04-25 23:46:39 -07:00
- Create a FAQ List in SharePoint.
- Create the below fields:
2020-04-26 15:05:14 -04:00
- `Title` field can be considered as "Question" field.
Column Name|Field Type
-------|----
`Title` |Single line of text
2020-04-26 15:07:27 -04:00
`Answer` |Multiple lines of text
`Category` |Single line of text
`CategorySortOrder` |Number
`QuestionSortOrder` |Number
2020-04-25 23:46:39 -07:00
2020-04-26 15:07:27 -04:00
- Edit the webpart, set the **ListName** in the property pane
2020-04-25 23:46:39 -07:00
## Features
2020-04-26 15:07:27 -04:00
- This Web Part allows users to create Frequently Asked Questions(FAQ App) in modern and classic SharePoint pages.
2020-04-25 23:46:39 -07:00
- An accordion layout is used to make it easy to browse through different questions.
- Expand answers to your most frequent questions.
- Include text, links, images in your answers.
- A search bar to make your FAQ accordion searchable.
2021-04-26 02:08:59 -04:00
- This web part allows to search within questions and answers which are stored in a SharePoint FAQ list.
2020-04-25 23:46:39 -07:00
- Sorting is enabled on both the category & Question
2021-12-20 10:25:30 -05:00
< img src = "https://pnptelemetry.azurewebsites.net/sp-dev-fx-webparts/samples/react-FAQApp" / >