The module doesn't work for me.
I followed instructions and set permissions of Field Permissions module to custom where I wanted a field to be readonly for guests and users. The field doesn't show up at all only for admins.

Comments

SuperTyp created an issue. See original summary.

anrikun’s picture

Category: Bug report » Support request

Please post a screenshot of your field's permissions.

SuperTyp’s picture

Title: Not working for uests and users » Not working for guests and users
SuperTyp’s picture

StatusFileSize
new75.15 KB
new49.99 KB

I've added screenshots of role permissions and custom fields permissions.

anrikun’s picture

Thanks.
Does the read-only field you try to view as a guest have a value? If not, it is normal that nothing shows up.
Also please post a screenshot of the display page of the content type owning that field (admin/structure/types/manage/CONTENT_TYPE_NAME/display).

SuperTyp’s picture

StatusFileSize
new29.77 KB

no it doesn't have a value, the value is calculated dynamically by custom javascript.
So, we found the solution, how can I make it visible without having a value?
Setting a default value?

SuperTyp’s picture

StatusFileSize
new153.85 KB

The content type is of type entity registration, which is a form.

anrikun’s picture

I'm not sure that Field Readonly is made for what you want to achieve.
Anyway, you should set a default value if you want something to show up.

SuperTyp’s picture

I have done that but it's still not showing up.
I just want an input field to be shown as a not editable field for every kind of role.
What else is Field Readonly made for?

matas.k’s picture

It's a poor module, it doesn't do what it claims it does, it doesn't work with forms, doesn't work with Registration, Commerce, Entity or anything.

As I understand this works only with plain nodes edit forms only and nothing else.