Read-only columns in Sharepoint library

FNU LNU Khristina 21 Reputation points
2022-05-06T12:07:01.41+00:00

Is there any way to make a column read only in Sharepoint Library (not in the list)?
I saw articles about list read only columns, but found nothing about library.

Probably it can be done via power automate somehow but I am not sure.
(using Sharepoint online)

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 31,596 Reputation points Microsoft External Staff
    2022-05-09T08:37:56.847+00:00

    Hi @FNU LNU Khristina ,

    It can be set via library settings.
    1, Create a calculated column [read-only1] with caculation based on the column you want to set to be read-only.
    200194-2.png

    2, Go to Advanced settings-->Allow management of content type.
    3, Go to Library settings-->Content Types ,click “Document” .
    200099-3.png

    4, Click “hide1” and Choose “Hiden” ,Then click “OK”.
    200241-4.png

    5, Go to Edit current view ,and show the calculated column [read-only1] instead of the hidden column [hide1] .
    200109-5.png

    This way even if the user go to the quick edit, it cannot edit the column value.
    200110-6.png

    Thanks,
    Yanli Jiang

    ===========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. FNU LNU Khristina 21 Reputation points
    2022-05-11T08:44:05.993+00:00

    Hello @YanliJiangMSFT-7045,

    Thank you so much for the detailed reply! I have tried these steps and it worked.
    The only question left, is there any way to hide these nulls? So that there will be "-" or just nothing?

    there is null if the hidden column is empty
    there are 2 columns with the same text if we display the hidden column


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.