Support

Account

Home Forums Pre-purchase Questions Field permissions (view only)

Solving

Field permissions (view only)

  • 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.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Field permissions (view only)’ is closed to new replies.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.