How to Enable Form Web Parts for a SharePoint Classic List
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.

- 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.
Ensure you have SharePoint Administrator privileges and access to the SharePoint Online Management Shell to execute the necessary configuration commands.
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.
Search for and launch the SharePoint Online Management Shell on your computer as an administrator.
Type 'Connect-SPOService -Url https://[yourdomain]-admin.sharepoint.com' and log in with your global or SharePoint admin credentials.
Run the command 'Set-SPOSite -Identity https://[yourdomain].sharepoint.com/sites/[yoursite] -DenyAddAndCustomizePages 0' to enable custom scripts for your specific site.
Navigate to your SharePoint list, go to List Settings > Advanced Settings, scroll to the bottom, and set the List experience to 'Classic experience'.
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.
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. Download WPS Office: Visit the official WPS Office website and click the free download button.
- 2. Install the Software: Run the downloaded setup file and follow the brief instructions to install the suite.
- 3. Start Collaborating: Open WPS Office to immediately start creating, editing, and sharing your documents with full format support.

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'.




