Forum Discussion

specoop's avatar
specoop
Copper Contributor
Oct 02, 2024

Prevent Users from Changing "Content Type" After Item/Document Creation

Hey everyone,

Quick question for the community!

 

I’m working with a list that has 10 different content types. What I’d like to do is prevent users from changing the content type once an item is created.

 

Is there a way to hide the content type option in the information panel or item edit panel after an item has been created? I’m really hoping to stick with content types instead of creating individual lists (would literally save time + significantly reduce the long-term maintenance of a site)...

 

If this is possible, I’m sold on using content types! Otherwise, if any user can change it...I don't really get them...

 

Any advice or guidance is much appreciated!

 

Thanks,

  • Martin-Coupal's avatar
    Martin-Coupal
    Steel Contributor
    I would try this: 1) Disable quick property editing in the library advanced settings. 2) Customize the library form with Power Apps (Integrate/Power Apps/Customize forms). I guess you can define the rule when to display/hide the "Content Type" field in the form.
    • specoop's avatar
      specoop
      Copper Contributor

      Sorry - I should have clarified. Our organization has external users - and external users don't have licenses for PowerApps - so PowerApps unfortunately isn't an option for us (gosh I wish I could use PowerApps.)

      • Martin-Coupal's avatar
        Martin-Coupal
        Steel Contributor
        Did you tried to first add the user as a guest in the M365 administration and then share the list to the user? It should work even if guest has no licence. I've just tried in my dev environment and it works
        1- added a gmail account as a guest user in M365 administration
        2- share the list to this user.
        3- It will receive an email with link to the list. Make sure you are opening gmail account in private session. Click the link, it will ask to confirm email address and send a code. After entering the code, you will access the list and should be able to open the custom form.
  • abhiit's avatar
    abhiit
    Copper Contributor
    You can go to List/Library Settings --> Advance settings ----> and disable content type option.
    • specoop's avatar
      specoop
      Copper Contributor

      Wouldn't that delete the other 9 content types (I have 10 total)? Or would they still be there because I've enabled it previously and customized them already?

    • Martin-Coupal's avatar
      Martin-Coupal
      Steel Contributor

      abhiit but how will he be able to assign the content type when he creates a new item presuming he will use sharepoint default form?

      • specoop's avatar
        specoop
        Copper Contributor
        I currently access the content types via a URL link. So as long as those URL links still stick around, that could work?

Resources