SharePoint online list experience

Aysan Haghani 21 Reputation points
2021-01-06T14:53:37.623+00:00

Hello,
Long story short, we used a script to change the list experience for a subsite to classic ( here is the link to the script provided in Technet SharePoint-Online-Set-all-3db41598

the issue is rather than changing the experience for one subsite; it has been changed for all site collection; the image shows a library setting for a random list on a subsite54072-image.png

My question is the on-site collection level; if I change this setting to deactivate, will that fix the issue, and the default experience will be reverted to modern for sitecollection?

54081-image.png

Also, what`s the best way to change the list experience to classic for a subsite? for instance: https://companyname/sitename

I appreciate your help.

Thanks

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Chelsea Wu 6,341 Reputation points Moderator
    2021-01-07T03:07:23.507+00:00

    Hi @Aysan Haghani , thank you for posting in the Q&A forum.

    Deactivating the “SharePoint Lists and Libraries experience” feature at site level will indeed switch the default experience back to modern, except for the lists and libraries that have List experience options in List Settings set to “Classic experience”.

    To change the list experience to classic for a subsite, it is recommended to use PnP PowerShell as following:

    # Connect to a site  
    $cred = Get-Credential  
    Connect-PnPOnline -Url <SubSiteURL> -Credentials $cred  
      
    # Opt out from modern lists and libraries at web level  
    Enable-PnPFeature -Identity 52E14B6F-B1BB-4969-B89B-C4FAA56745EF  -Scope Web  
    

    Reference: Opting out of the modern list and library experience.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. **


1 additional answer

Sort by: Most helpful
  1. Mohamed El-Qassas 1,401 Reputation points MVP Volunteer Moderator
    2021-01-07T01:52:07.647+00:00

    I have checked the attached Powershell that doesn't have any action to activate or deactivate the SharePoint Lists and Libraries experience feature!
    It just loops for each list inside the specified site and changes the list advanced option > List experience to ("NewExperience", "ClassicExperience","Auto").

    That means this feature was enabled before executing this script or it may be activated manually after running this script!

    Below are the effect of deactivating the SharePoint Lists and Libraries experience feature according to my try

    • It will change the site content page and other system pages to the new Experience.
    • It will not activate Modern experience for a list that already sets to a Classic Experience.
    • It will activate Modern experience for a list that already sets to the Default experience for the site.

    So I suggest deactivating this feature to revert the Modern Experience back to the list with the Default experience for the site. Also, you can rerun the PowerShell again with NewExperience or Auto parameter to rollback the previous settings!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.