Skip to content

Latest commit

 

History

History
122 lines (82 loc) · 6.2 KB

File metadata and controls

122 lines (82 loc) · 6.2 KB

Sticky Feedback Widget Application Customizer

Summary

An SPFx Application Customizer Extension placed in the bottom placeholder which allows users to input their feedbacks without scrolling down to the end of the page.

Screenshot 1 Screenshot 2 Screenshot 3

Compatibility

⚠️ Important
Every SPFx version is optimally compatible with specific versions of Node.js. In order to be able to build this sample, you need to ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.
Refer to https://aka.ms/spfx-matrix for more information on SPFx compatibility.

Used SharePoint Framework Version

This sample is optimally compatible with the following environment configuration:

SPFx 1.20.0 Node.js v18 | v16 Compatible with SharePoint Online Does not work with SharePoint 2019 Does not work with SharePoint 2016 (Feature Pack 2) Local Workbench Unsupported Hosted Workbench Compatible Compatible with Remote Containers

Tested using Node.js v18.18.2

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

Create a SharePoint custom list Feedbacks in the SPO site where this application customizer will be added, with below columns

Column Name Comments
Employee_MailId Text
Employee_Name Text
Comment Multi-line Text

Note: Enable Ratings column for the list.

Optional: Unhide the default column Created to capture the submitted date.

Contributors🧑‍💻

Version history

Version Date Comments
1.0 July 02, 2023 Initial release
1.1 April 10, 2025 Version upgrade to SPFx 1.20.0 & other improvements
1.2 May 23, 2025 Implement Ratings & change position of widget based on property configuration

Minimal Path to Awesome⚡

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • npm install
    • gulp serve

Debug URL for Testing

?debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js&loadSPFX=true&customActions=%7B"33ce42af-1748-4989-ab97-a8d9f782b886"%3A%7B"location"%3A"ClientSideExtension.ApplicationCustomizer"%2C"properties"%3A%7B"title"%3A"Submit+your+feedbacks+%26+ideas"%2C"position"%3A"rightBottom"%7D%7D%7D

Deploy Package Solution

  • Ensure that you are at the solution folder
  • in the command-line run:
    • gulp build --ship
    • gulp bundle --ship
    • gulp package-solution --ship
  • Upload package to AppCatalog & add it to the SharePoint site.

Features💡

Key features demonstrated by this solution:

  • React functional components & hooks
  • PnPjs usage in the solution
  • Passing data between components using props
  • Basic field validation
  • Lottie-react library usage for animation

References

Help

We do not support samples, but we this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

If you're having issues building the solution, please run spfx doctor from within the solution folder to diagnose incompatibility issues with your environment.

If you encounter any issues while using this sample, create a new issue.

For questions regarding this sample, create a new question.

Finally, if you have an idea for improvement, make a suggestion.

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.

react-feedback-widget