# Make document readonly

**URL:** <https://forum.collaboraonline.com/t/make-document-readonly/1742>\
**Category:** User Support\
**Created:** [April 6, 2023, 9:35am UTC](https://forum.collaboraonline.com/t/make-document-readonly/1742 "2023-04-06T09:35:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [April 6, 2023, 9:35am UTC](https://forum.collaboraonline.com/t/make-document-readonly/1742/1 "2023-04-06T09:35:15Z")

</div>

Hello,

i want to make the document readonly when clicking on button.

There is no command for doing this with postmessage.

And checkfileinfo\_override seems working only for DownloadAsPostMessage.

Any ideas ?

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [June 8, 2023, 2:53am UTC](https://forum.collaboraonline.com/t/make-document-readonly/1742/2 "2023-06-08T02:53:22Z")

</div>

Hey @nadirlouati ,

Thanks for the question + welcome to the forum! 🙂

> i want to make the document readonly when clicking on button.

Hmmm, what do you mean by “clicking on a button”?

Did you read the:

- [Installation Guide \> Configuration \> Feature Locking](https://sdk.collaboraonline.com/docs/installation/Configuration.html?highlight=readonly#feature-locking)

It explains how to lock a host/user to ReadOnly.

---

<div class="post-metadata">

**Author:** ![nadirlouati](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/nadirlouati/32/731_2.png) [@nadirlouati](https://forum.collaboraonline.com/u/nadirlouati)\
**Post date:** [June 13, 2023, 7:16am UTC](https://forum.collaboraonline.com/t/make-document-readonly/1742/3 "2023-06-13T07:16:10Z")

</div>

Good morning,

i was able to achieve my purpose on the backend side.

but is there any feauture to make docuement read-only on the frontend without calling the wopi backend ?

Thanks

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [August 6, 2024, 2:23pm UTC](https://forum.collaboraonline.com/t/make-document-readonly/1742/4 "2024-08-06T14:23:00Z")

</div>

Closed on August 6, 2024, 2:23pm UTC


