Closed (duplicate)
Project:
Field Permissions
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2011 at 22:01 UTC
Updated:
22 Jan 2013 at 22:15 UTC
Jump to comment: Most recent
Comments
Comment #1
igalarza commentedSuscribe. I would like to have this permission, the field will render on edit page but it will be uneditable.
Comment #2
sheldon rampton commentedI have a similar situation where I need to be able to show some fields on the node edit form, but only enable editing of those fields for certain user roles. However, even user roles that cannot edit those fields need to be able to see them while editing. The field_permissions module does not currently support this functionality, but I think it would be a worthwhile enhancement. I realize that adding this functionality could be a bit tricky, but as a possible starting-point, here's some code that I put into a custom "job" module to designate a few fields as read-only:
I think my use case is the sort of functionality that would be appropriate to delegate to a contrib module such as field_permissions. I've filed a comment on an issue ticket there relating to this. However, adding a "view as read-only widget during editing" option to node access definitions in Drupal core would make it easier to do this and also to develop other contrib modules that might have other ways of deciding when to make fields read-only during editing.
Comment #3
Yuri commentedI'm also very much in need of such a feature. I tried solution #2 but for some reason that does not work, the fields are still editable in node/add
Comment #4
mordonez commentedSorry I attached a solution in another issue #1547172: Read only just greyed out
Comment #4.0
mordonez commentedRe-wrote the entire request for better explanation.
Comment #5
anrikun commentedYou may try the Field Readonly module.