Search
Other Articles Field questions
Forum

Article field as read-only in article edit form

Octav A's Avatar Octav A
Hello,

I have a set of article fields that once set will never change, but is possible to accidentally edit them by user. Please advise how to make certain Article Fields as readonly in article edit layout so as to be visible but not editable.
Thanks.
Peter van Westen's Avatar Peter van Westen ADMIN
How the custom field shows up in your frontend editform is outside the scope of the field (Articles Field) itself.

Joomla has no built-in option to set fields as read-only in the frontend form.

You can probably do this via template overrides and conditionally show the normal form field or just the output. Where you check if the view is frontend or admin (or based on the access level).

Coding that is beyond my support.
Please post a rating at the Joomla! Extensions Directory
Andrea Malalana's Avatar Andrea Malalana ADMIN
I believe you can actually do that by:
- Making the field as editable only by Super-Admin in the "Permissions" tab.
- Under the "Options" tab set "Display when Read-Only" to "Yes".

This should make the field input visible to every user but nobody (except you) will be able to edit it.
Octav A's Avatar Octav A
What about back-end edit form, this is where i need to make it readonly?
Andrea Malalana's Avatar Andrea Malalana ADMIN
Same thing. The Read-Only is based on Permissions. If you want nobody to be able to edit it, then in the Permission Tab don't give permission to anybody in the option "Edit Custom Field Value".
Peter van Westen's Avatar Peter van Westen ADMIN
Oh 😁
Please post a rating at the Joomla! Extensions Directory
Octav A's Avatar Octav A
I have tried already that. and forbidden Superuser also (i need that nobody can edit). I guess is not possible to make Superuser not able to edit the field? Please confirm this.
Andy Badwool wrote:
Same thing. The Read-Only is based on Permissions. If you want nobody to be able to edit it, then in the Permission Tab don't give permission to anybody in the option "Edit Custom Field Value".
Andrea Malalana's Avatar Andrea Malalana ADMIN
Yep looks like no way to stop Super Users to edit. They're Super Users, they can do what they want 😁
Octav A's Avatar Octav A
All clear. Thanks for clarification and your time.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription