Issue with User Form + required fields
-
Hi John,
I’ve encountered an issue with the 3.x branch where user roles are selected for fields that are also set as “Required” and the ACF Field Group is added to the WP User Form.I have a multi-tab field group that’s adding fields to the user profile. Some of the fields only apply to one or two user roles, and some of them are required. The user profile fields are intended to be edited via frontend form, so I used ACF User Role Field Setting to only apply to the required roles, preventing them from being displayed to the Admin user role in the WP admin.
When I upgrade to the 3.x branch, while the fields that are configured to display only for the specific roles don’t display in the admin as intended, when I try to save a user profile I get the ACF “Validation failed” error at the top of the Profile page.
If I downgrade to v2.1.15, I’m able to save the user profile.
Any insight on what changed to cause this, and if it’s possible to resolve it?
The version of ACF Pro doesn’t seem to have an effect; I’m currently running the most recent 5.9.3.
Thanks,
Kevin
The topic ‘Issue with User Form + required fields’ is closed to new replies.