Home › Forums › ACF PRO › Field groups restricted to user role not showing up when changing user role › Reply To: Field groups restricted to user role not showing up when changing user role
Actually, I just did some testing. It seems to work in the first way, based on the role of the user you are creating.
I’m currently an administrator and I set a field for User Location to only show up with the following conditions:
User Form is equal to Add / Edit AND
User Role is equal to Administrator
The User Location field does not show up.
When I change the second condition to be:
User Role is equal to Subscriber
The field shows up
This is because the default level when creating a new user is Subscriber.
There just doesn’t seem to be any dynamic logic for when that field changes. Which would be awesome. I can currently function with removing the second condition completely as there are only Admins and Authors.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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.