M365 – SharePoint Online – Setting custom site creation form – How it works
Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂
Today new discussion regarding allowing users to create the SharePoint site (Modern Team site / Communication site / Team site without group) from custom form either created as SPFX component or PowerApps form.
Background / Use case : One of our customer wants to set some metadata while users creating new site. Also want to prefix country code based on the country selected from the form. Here note, country is not the user profile property. User need to select for which country he/she is creating the site.
OOB there is no way to set the metadata and which will be input from the end user. So we have only option to have the custom site creation form.
One more requirement from customer is to change the link or to redirect the user when he/she clicks on “+ Create site” from SharePoint home page.
Options: We have two options there either to create PowerApps form or SPFX component. We went for SPFX component with SPFX version 1.10 so that later we can add it to Team client as well.
We could specify the custom form URL for site creation from the tenant setting page as https://<SharePoint Admin Site URL>/_layouts/15/online/TenantSettings.aspx
But when we set this setting, its bit tricky, when we click on “+ Create Site”, we get normal options as
And when we select site type then on next bar there is link appears “See other options” as
When we click on “See other options ” link, we will get redirected to our custom form.
Here, one challenge is we need to educate the users to use our custom form.
I am still looking for the option if we can directly redirect to our custom form rather in two step process and clicking on “See other options” link
Thanks for reading 🙂 Please feel free to comment / suggestions / thoughts if you any for this kind of requirement.