Enabling scripting capabilities in SharePoint Online

Important

Update the app package and the desktop designer to the latest versions that don’t require enabling custom scripts.

Plumsail Forms app package version 1.1.0.1 and lower requires scripting capabilities to be enabled on a target site.

By default, custom scripts are disabled, and only tenant admins can turn it on.

With Powershell commands

Recommended option for manually enabling custom scripts. Install SharePoint Online Management Shell.

Run the following Powershell commands:

$userCredential = Get-Credential
Connect-SPOService -Url https://<organization>-admin.sharepoint.com -Credential $userCredential
Set-SPOsite <site URL> -DenyAddAndCustomizePages 0

<organization> - this is the name of your organization, used in SharePoint URL.

Note

For example, if your URL is https://plumsail.sharepoint.com - use https://plumsail-admin.sharepoint.com

<site URL> - this is the URL of the site collection where you want to enable custom scripts and publish forms to. Make sure not to use a subsite URL.

In SharePoint Admin center

This option is easy, but it is not recommended, as it can take up to 24 hours to enable custom scripts. This method applies to all site collections on the tenant.

Go to Microsoft 365 admin center:

Microsoft 365 admin center

Open SharePoint Admin Center:

Admin center for SharePoint

Switch to classic mode in Settings, if your Admin Center opens in Modern UI:

Classic Admin center for SharePoint

Select Settings in the left menu:

SharePoint Online Settings

Under Custom Script make sure that the following options are selected under Custom Script:

Allow users to run custom script on personal sites

Allow users to run custom script on self-service created sites

Enable Scripting Capabilities

Important

Always wait 24 hours before trying to save forms with this method.