SPFx List View Extensions as custom list and document library forms
As we all know Modern SharePoint lists and libraries allow us to customise the properties pane (details and edit form). And we also know that there is only one of those forms that every list and library comes with. What to do when you need a different presentation/view/edit requirements for different times/stages of the process that the list or library runs or is a part of ?
Answer: SPFx List View Extensions!
List view extensions allow you to have a custom properties pane/form panel or dialog with any fields or actions you require for your unique business requirement.
Lets see how...
Get yourself started with a SPFx project to build a list view extension just like Microsoft Docs here - Build your first ListView Command Set extension | Microsoft Docs
This will scaffold a Dialog which you can build your fields and actions on. This is good for small data capture and simple actions. But if you want to build a form of the similar capacity of the standard properties pane, you need to get yourself a panel of the likes described here - SPFX ListView Command Set and Panel – YP code (wordpress.com)
Once you have the panel working from the Command bar and Context menu, you can build almost any process of the back of it.
Hope this helps some SPO Modern fans out there.
Keep sharing the M365 goodness.
T.