M365 – SharePoint Online – Setting custom site creation form – How it works

Hi All,

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.

M365 - SharePoint Online - SharePoint home page - customer wants to change the "+ Create site" link
FIg1: M365 – SharePoint Online – SharePoint home page – customer wants to change the “+ Create site” link

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.

Details:

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

SharePoint Online - Tenant setting page - option for setting up custom form for Site Creation
FIg2: M365 – SharePoint Online – Tenant setting page – option for setting up custom form for Site Creation

But when we set this setting, its bit tricky, when we click on β€œ+ Create Site”, we get normal options as

M365 - SharePoint Online - OOB option appears when user click on "+ Create site"
FIg3: M365 – SharePoint Online – OOB option appears when user click on “+ Create site”

And when we select site type then on next bar there is link appears β€œSee other options” as

M365 - SharePoint Online - "See other options" link appears when we set the custom form for creating site from tenant setting page
FIg4: M365 – SharePoint Online – “See other options” link appears when we set the custom form for creating site from tenant setting page

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.

This site uses Akismet to reduce spam. Learn how your comment data is processed.