When adding custom fields to the user form, the role-based conditional include does not work on initial user creation. It only hides and shows after the user is created, on the edit user screen.
Steps to Reproduce:
Hi, I’m trying to use this feature also. I have a simple form group with 3 fields that I want displayed when users are being created or edited based on a specific role being chosen.
I just purchased pro the other day and 2/27/2015 and I’m on v126.96.36.199 of the pro plugin.
The fields show up successfully on edit of a user but not on role selection while creating a user.
My location rules are very simple:
– User Role is equal to Agent
No other rules, and like I said, it shows up perfectly when editing an existing user just not on creation. Please let me know if I’m doing something wrong here. Also please let me know if you need any further information.
Wow, I am crazy, it’s not actually showing up on the edit page either. I believe I tested this with the standard version and it worked but I hadn’t tested this on the pro version. So I can’t see my fields while on the creation or the edit page of the user. I’m guessing I’m just using the wrong location settings.
We are having the same problem. The field group shows up correctly for already created users based on their role but does not show on user creation or when changing the role for an existing user.
We are using WordPress 4.4.2 and ACF PRO 5.3.5.
Any help will be greatly appreciated!
+1 for adding this feature!!
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.
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.
I imagine this is pretty dead, but is there any update on this feature being implemented?
You must be logged in to reply to this topic.
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 are receiving some fantastic feedback on ACF PRO 5.9 beta - thank you 🎉.— Advanced Custom Fields (@wp_acf) June 25, 2020
Beta 3 is almost ready and comes with an updated “duplicate” icon design for the Flexible Content field made from pseudo-elements.
What do you think? pic.twitter.com/UvxbtlKYDZ
© 2020 Advanced Custom Fields. Subscribe