Fix Unavailable Form Web Parts in SharePoint Online
Question details
The user needs access to Form Web Parts in a classic SharePoint list after enabling custom scripts.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A user is trying to customize a classic list form with web parts.
- Observed behavior
- Form Web Parts is disabled because of insufficient permission. After a site-level change, the button becomes available, but the user cannot find the Media and Content category or the Web Parts gallery.
Confirm the target site URL and ask a SharePoint administrator to check the custom script policy and your site permissions. Custom scripts can introduce security risks, so the administrator should verify that enabling them is permitted by your organization.
Enable custom scripts for the specific SharePoint site
Use SharePoint Online Management Shell to apply the setting to the target site without waiting for the admin center change to propagate.
Ask a SharePoint administrator to install the latest SharePoint Online Management Shell and open it.
Run Connect-SPOService -Url https://tenant-admin.sharepoint.com, replacing tenant with your Microsoft 365 tenant name, and sign in when prompted.
Run Set-SPOSite -Identity https://tenant.sharepoint.com/sites/siteName -DenyAddAndCustomizePages 0, replacing the URL with the target site URL.
Run Get-SPOSite -Identity https://tenant.sharepoint.com/sites/siteName | Select-Object DenyAddAndCustomizePages. Then refresh the classic list and check whether Form Web Parts is available.
In the classic form or page editor, select Add a Web Part and look for Media and Content. If it or the Web Parts gallery is missing, ask a site administrator to check your permissions and which web parts are available in that site and editing context.

Wait for the SharePoint admin center setting to take effect
Use this approach if an administrator has already changed the custom script setting and an immediate site-level change is not needed.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Office format support makes moving everyday files straightforward, though it does not change SharePoint settings or enable SharePoint web parts.

Frequently Asked Questions
How long does a SharePoint admin center custom script change take?
The change may take up to 24 hours. A SharePoint administrator can instead use Set-SPOSite with -DenyAddAndCustomizePages 0 to enable scripts for a specific site.
Who can run the SharePoint Online Management Shell commands?
A SharePoint administrator can connect to the tenant admin URL with Connect-SPOService and apply the site-level setting with Set-SPOSite.
Why is Media and Content still missing after Form Web Parts is enabled?
Enabling custom scripts does not guarantee that every web part category is available. Check Add a Web Part in the classic editor, then ask a site administrator to review permissions and the site's web part availability.
Where can I check the site's custom script setting?
In SharePoint Online Management Shell, an administrator can run Get-SPOSite -Identity <SiteURL> | Select-Object DenyAddAndCustomizePages, replacing <SiteURL> with the target site URL.
Can WPS Office enable SharePoint Form Web Parts?
No. Form Web Parts and custom script settings are managed in SharePoint Online. WPS Office can be used separately to work with compatible Office files.




