Forum Discussion
Is there an example where SPFX form is used inplace of List New/Edit form and it works seamlessly
Regards
Deleted could you please provide me a working example.
I have seen the below; which seems to run on Knockout.js which i have not had any experience on.
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/use-sp-pnp-js-with-spfx-web-parts
Thanks
- Carlos_MarinsJun 24, 2019Iron Contributor
Hey null null,
This is Deleted speaking. That profile was associated to my former company so I had to create a new one. Anyway, the solution I used wasn't based on any example, but you can pretty much create a form of your own. The easiest way for me was to create a HTML Form where the ID of the input field is the name of the List Field. Then when the user hits submit all you do is get these values and send them to the list, using the PnPJS library. Unfortunately I don't have access to the code anymore, but let me know if you need some details on how to achieve it.
- Vaqar HyderSep 25, 2020Copper Contributor
Carlos_Marins Well that fine to create your own HTML form and using rest calls getting, posting items but its really time consuming to create your complex field like Metadata and Poeple picker. There should be a sample that deals with such cases.
- null nullJul 24, 2019Iron Contributor
i want to make use of the different fields / list column type like features like dropdown, lookup columns like feature, where i update few things in other list in the site.
I am planning to use an SPFx extension method with a button right next to New _ button acting as a command button for adding custom form to the users.
Thanks