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


Field permissions (view only)

    • hatton

    • June 6, 2019 at 1:31 am

    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.

    • Zero

    • September 11, 2019 at 12:28 pm

    Hi, you can use this filter:

    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)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.