Aug 09 2023 10:46 PM
Hello
Is it possible to display a Form to Insert a new Item in a List.
What I mean, is to show on a SharePoint Subpage a form with all fields of the list with a button "Save" and than once it is saved the list will be updated. I know it is possible to embed MS Forms in the page but is it possible to insert a SharePoint Online built-in feature.
Thank you
JFM_12
Aug 09 2023 10:56 PM
Hi @JFM_12
Yes, it is indeed possible to create a custom form for inserting new items in a SharePoint Online list. SharePoint Online provides several options for achieving this functionality without the need for external tools like MS Forms. You can create a custom form using Power Apps or customize the default SharePoint list form using Power Automate (previously known as Microsoft Flow).
Here's how you can achieve this using both methods:
Using Power Apps:
Using Power Automate:
Note: While Power Apps provides a more interactive and customizable user interface, Power Automate offers a way to automate processes, including the creation of list items.
In both cases, you are utilizing built-in features of SharePoint Online to create custom forms and automate processes. This approach allows you to have complete control over the form's layout and functionality while keeping everything within the SharePoint environment.
Remember to ensure appropriate permissions for users who will be using the form and to thoroughly test the functionality before deploying it to production.
Aug 10 2023 12:33 AM
Aug 10 2023 01:54 AM - edited Aug 10 2023 01:55 AM
Hi @JFM_12
you can get the "New" form of every list by replacing the view aspx name with "NewForm.aspx" like
https://<tenant>.sharepoint.com/sites/<site>/Lists/<List>/NewForm.aspx
You can embed that into a page using the "Embed Webpart". But that form redirects you back to the list after you created an element. But you can use the "Source" parameter to force the form to redirect the user somewhere else.
I assume that you want to build something like custom list experience on a page (let's call it "CustomListPage") where you customized the list view. Now you want to give your users the possibility to add a new item.
You could just add a button on that "CustomListPage" page instead of embedding a form.
The button then redirects the user to
https://<tenant>.sharepoint.com/sites/<site>/Lists/<List>/NewForm.aspx?Source=https://<tenant>.sharepoint.com/sites/<site>/SitePages/CustomListPage.aspx
The effect would be that the user will be first redirected to the list form. After pressing "Save" or "Cancel" the user will then be redirected back to your site where your list webparts displays the updated data.
Best Regards,
Sven
Aug 10 2023 02:14 AM