2020-04-04 02:18:47 -04:00
---
page_type: sample
products:
2020-07-07 22:41:20 -04:00
- office-sp
2020-04-04 02:18:47 -04:00
languages:
2020-07-07 22:41:20 -04:00
- javascript
- typescript
2020-04-04 02:18:47 -04:00
extensions:
contentType: samples
technologies:
2020-07-07 22:41:20 -04:00
- SharePoint Framework
2020-04-04 02:18:47 -04:00
platforms:
2020-07-07 22:41:20 -04:00
- react
2020-04-04 02:18:47 -04:00
createdDate: 12/1/2017 12:00:00 AM
---
2020-07-07 22:41:20 -04:00
2020-11-08 23:25:29 -05:00
# List Form
2019-09-24 00:28:54 -04:00
## Summary
2020-07-07 22:41:20 -04:00
2020-11-08 23:25:29 -05:00
The List Form web part is a web part for adding a list form to any page. It provides a working example of implementing generic SharePoint list forms using the **SharePoint Framework (SPFx)** and the _React_ and _Office UI Fabric_ libraries.
2019-09-24 00:28:54 -04:00
The web part allows configuring which list to use and if a form for adding a new item, editing or displaying an existing item should be shown. When selecting display or edit form the ID can be defined either as a fixed number or as a query string parameter name. The form fields can be added, ordered using drag-and-drop or removed visually in the web part. A URL including placeholder for the ID can be provided to redirect to after successfully saving the form.
![Demo ](./assets/React-ListForm-Overview.gif )
2020-07-07 22:41:20 -04:00
## Used SharePoint Framework Version
![SPFx 1.10.0 ](https://img.shields.io/badge/version-1.10.0-green.svg )
2019-09-24 00:28:54 -04:00
## Applies to
2020-07-07 22:41:20 -04: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 )
2019-09-24 00:28:54 -04:00
## Solution
2020-07-07 22:41:20 -04:00
| Solution | Author(s) |
| --------------- | ----------------------------------------------------------------- |
| react-list-form | Dany Wyss |
| react-list-form | Harsha Vardhini ([@harshagracy](https://twitter.com/harshagracy)) |
2020-09-12 23:37:13 -04:00
| react-list-form | Ryan Schouten ([@shrpntknight](https://twitter.com/shrpntknight)) |
2020-12-11 13:48:48 -05:00
| react-list-form | Abderahman Moujahid |
2019-09-24 00:28:54 -04:00
## Version history
2020-12-11 13:48:48 -05:00
| Version | Date | Comments |
| ------- | ------------------ | --------------------------------------------------------------------------------------------------------- |
| 1.0.0 | November 24, 2017 | Initial release |
| 1.0.1 | February 22, 2019 | Updated to SPFx 1.7.1 and dependencies, Added Turkish translation, Added RichText Mode and Tinymce Editor |
| 1.0.2 | October 14, 2019 | Updated to SPFx 1.9.1 and dependencies |
| 1.0.3 | July 7, 2020 | Updated to SPFx 1.10.0 and dependencies. Fixed required field validation (Harsha Vardhini) |
| 1.0.4 | September 12, 2020 | Added support for User, UserMulti, Taxonomy, and TaxonomyMulti field types |
| 1.0.5 | September 26, 2020 | Fix date handling problems and redirect after edit |
| 1.0.6 | October 8, 2020 | Added support for cascading lookup fields |
| 1.0.7 | December 11, 2020 | Fix limit of lookup fields |
2019-09-24 00:28:54 -04:00
## Disclaimer
2020-07-07 22:41:20 -04: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.**
2019-09-24 00:28:54 -04:00
---
## Minimal Path to Awesome
- Clone this repository
- in the command line run:
- `npm install`
- `gulp serve`
## Features
This Web Part illustrates the following concepts on top of the SharePoint Framework:
- Using React for building SharePoint Framework client-side web parts.
- Using React controlled components for SharePoint form fields.
- Using SharePoint REST services to retrieve and update schema and data for lists and fields.
- Using Office UI Fabric React components and styles for building user experience consistent with SharePoint and Office.
- Integrating drag and drop to provide better user experience for configuring web parts visually.
2020-04-04 02:18:47 -04:00
- Using custom drop-down property editors in the property pane.
2019-09-24 00:28:54 -04:00
< img src = "https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/react-list-form" / >