How Can We Help?

Search for answers or browse about Sintel Forms.

Disable Sintel Forms on a list

You are here:

It’s very easy to disable Sintel Forms on any list on which it is configured.

Disabling Sintel Forms can be achieved using the Sintel Forms Designer or via Code in your web browser.

 

Using Sintel Forms Designer

  1. Open the list and click on Sintel Forms Designer from the menu
  2. Click on the Settings screen and deselect the option named Enable Sintel Forms on this list
  3. Click Save and exit

Sintel Forms will now be disabled on the list and when users interact with data in the list to view it, edit it or add new list items, the regular SharePoint interface will be used.

 

Using Code in your web browser

If for some reason you are unable to use the Sintel Forms Designer to disable Sintel Forms, you can instead use a code snippet in your web browser to accomplish the task.

 

The reason this must be ran in your browser is because Microsoft blocked the ability to run PowerShell in the user context so if you wanted to use PowerShell to disable Sintel Forms you would need to create an App Registration in Azure and then grant it permissions to run the PowerShell.

 

  1. Navigate to the site contents of the site in which you wish to disable Sintel Forms
  2. Open your browser’s developer tools (press F12)
  3. Switch to the Console tab
  4. Copy the code provided and paste it into the Console.
  5. Replace “Enter a list title here” with the internal name of the list in which you wish to disable Sintel Forms
  6. Press Enter to execute the code
It is important you use the Internal name of the list, for example the list name may be displayed as “My List” but it’s internal name could be “My%20List” if it contains spaces.

Once the script has been executed, Sintel Forms will be disabled on the list.

(async (listTitle) => {
    try {
        // Fetch the content types
        const response = await fetch(
            `${_spPageContextInfo.webAbsoluteUrl}/_api/web/lists/getbytitle('${listTitle}')/contenttypes`,
            {
                method: "GET",
                headers: {
                    Accept: "application/json;odata=verbose",
                },
            }
        );



        // Check if the response is successful
        if (!response.ok) {
            throw new Error(`HTTP error! Status: ${response.status}`);
        }



        // Parse the JSON response
        const data = await response.json();



        // Ensure there is default content type
        if (data.d && data.d.results && data.d.results.length > 0) {
            const defaultContentType = data.d.results[0];
            const defaultContentTypyId = defaultContentType.Id.StringValue;



            // Update the content type with default form URLs
            await fetch(
                `${_spPageContextInfo.webAbsoluteUrl}/_api/web/lists/getByTitle('${listTitle}')/contentTypes('${defaultContentTypyId}')`,
                {
                    headers: {
                        accept: "application/json",
                        "accept-language": "en,pl;q=0.9,en-US;q=0.8",
                        "cache-control": "max-age=0",
                        "content-type": "application/json;charset=utf-8",
                        priority: "u=1, i",
                        "sec-ch-ua": '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
                        "sec-ch-ua-mobile": "?0",
                        "sec-ch-ua-platform": '"Windows"',
                        "sec-fetch-dest": "empty",
                        "sec-fetch-mode": "cors",
                        "sec-fetch-site": "same-origin",
                        "x-clientservice-clienttag": "PnPCoreJS:3.19.0:w.l.g.contentTy",
                        "x-http-method": "MERGE",
                        "x-pnpjs-requestid": "c9374ebb-ab4f-43cd-a7e2-005736f670ef",
                        "x-requestdigest": _spPageContextInfo.formDigestValue,
                    },
                    body: '{"NewFormUrl":"","EditFormUrl":"","DisplayFormUrl":""}',
                    method: "POST",
                    mode: "cors",
                    credentials: "include",
                }
            );
        } else {
            console.error("No content types found in the list.");
        }
    } catch (error) {
        console.error("Error fetching content types:", error);
    }
})("Enter a list title here");

 

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents