Home › Forums › Feature Requests › Support role-based conditions on user creation › Reply To: Support role-based conditions on user creation
I have come up with a dirty solution that works by triggering an AJAX action when the role is changed, then either sets the default role (user-new.php) or updates the user’s role (user-edit.php) and finally refreshes the page.
See here: https://gist.github.com/lewebsimple/50848bbc05ec8961bf907f5c50a9d0c3
We really need ACF to support this OOTB, if it’s possible for dynamic category selections it should be easy to add this to the role selection as well.
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.