Hello,
I wanted to know if it was possibile to set a field to view only. For example:
“Admin” can edit everything.
“User1” can edit everything except for a couple ACF fields, but can view the contents of those fields.
Basically, I need “edit” and “view-only” permissions for each ACF field.
There is nothing built into ACF that will do this. There are filters in ACF that will allow you to customize it and do this for some types of fields.
Hi, you can use this filter: https://www.advancedcustomfields.com/resources/acf-prepare_field/
set $field['disabled'] = 1;
by checking user’s role, restrict user from editing the field.
(Note: user still can edit after removing disabled="disabled"
in developer console)
better yet, return false
.