cjx2240 Posted April 6, 2021 Posted April 6, 2021 Does anyone have a suggestion how I can make fields required during user registration, without making it so that admins also have to fill them out when making new admins? Thanks in advance!
rick Posted April 6, 2021 Posted April 6, 2021 You can use the hasRole method to test whether the current user is "admin" to determine if a field should be required. 1
cjx2240 Posted April 7, 2021 Author Posted April 7, 2021 Hm, thanks for the suggestion but that doesn't seem to work, I get the following when registering on the front-end. "Warning (requiredIf): dependency field 'hasRole' is not present in this form."
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now