SharePoint Document Issues

How to Enable Form Web Parts for a SharePoint Classic List

Kushani NimanthikaKushani Nimanthika Nov 2, 2026 869 views

Question details

The user needs to enable the Form Web Parts option to modify the default new form for a SharePoint list in Classic experience.

How to Enable Form Web Parts for a SharePoint Classic List
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Modifying the Default New Form for a SharePoint list switched to the Classic experience.
Observed behavior
The Form Web Parts option remains disabled because Custom Script is not enabled for the SharePoint site.
Before you start

Ensure you have SharePoint Administrator privileges and access to the SharePoint Online Management Shell to execute the necessary configuration commands.

Solution 1Recommended

Enable Custom Script for the Site via PowerShell

Use the SharePoint Online Management Shell to enable Custom Script on your site, which unlocks the Form Web Parts option in the Classic list experience.

By default, modern SharePoint sites restrict custom scripts to enhance security. This restriction grays out or disables features like Form Web Parts even when you switch a list to the Classic experience. Running a quick PowerShell command lifts this restriction.

1
Open SharePoint Management Shell

Search for and launch the SharePoint Online Management Shell on your computer as an administrator.

2
Connect to SharePoint Admin Center

Type 'Connect-SPOService -Url https://[yourdomain]-admin.sharepoint.com' and log in with your global or SharePoint admin credentials.

3
Enable Custom Script

Run the command 'Set-SPOSite -Identity https://[yourdomain].sharepoint.com/sites/[yoursite] -DenyAddAndCustomizePages 0' to enable custom scripts for your specific site.

4
Switch List to Classic Experience

Navigate to your SharePoint list, go to List Settings > Advanced Settings, scroll to the bottom, and set the List experience to 'Classic experience'.

5
Modify the Default New Form

Open the list again. Click on the List tab in the top ribbon, select 'Form Web Parts', and the option to modify the Default New Form will now be enabled and accessible.

Immediate Application: Unlike changing this setting through the SharePoint Admin Center UI, which can take up to 24 hours, the PowerShell method applies the Custom Script changes immediately.
Free Microsoft Office alternative

Looking for a Simpler Way to Manage Documents? Try WPS Office

Managing complex SharePoint site settings and executing PowerShell scripts can be challenging. If you need a more straightforward, reliable suite for document creation, collaboration, and management, WPS Office provides an incredibly user-friendly alternative.

  1. 1. Download WPS Office: Visit the official WPS Office website and click the free download button.
  2. 2. Install the Software: Run the downloaded setup file and follow the brief instructions to install the suite.
  3. 3. Start Collaborating: Open WPS Office to immediately start creating, editing, and sharing your documents with full format support.
Seamless compatibility with Microsoft Word, Excel, and PowerPoint formats.Built-in robust cloud collaboration for easy document sharing and team co-editing.Lightweight, fast installation with a highly familiar user interface.Free to use with comprehensive built-in PDF editing capabilities.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the Form Web Parts option disabled by default?

Microsoft disables custom scripting (using the DenyAddAndCustomizePages attribute) by default on modern SharePoint sites to improve security. This prevents users from inserting potentially harmful scripts but also locks down customization features like Form Web Parts.

Can I enable Custom Script without using PowerShell?

Yes, you can enable it through the classic SharePoint Admin Center by navigating to the Settings page and allowing users to run custom scripts. However, this UI method can take up to 24 hours to take effect.

Will switching to the Classic experience affect the entire SharePoint site?

No. When you change the list experience to 'Classic' via the Advanced Settings of a specific list, it only alters the interface for that particular list. The rest of your modern SharePoint site remains unchanged.

How do I revert my list back to the modern SharePoint experience?

To revert the list, go to List Settings, select Advanced Settings, scroll to the 'List experience' section at the bottom, and select 'New experience' or 'Default experience for the site'.