saleo Posted August 7, 2018 Share Posted August 7, 2018 Hello. Maybe this is a known limitation, but after a bit of research I couldn't find any information about this. I created two roles, "client" and "agent". I have added some custom fields to the user template, and I want to show some of them only if the user (the user that is edited, not the logged in user) has the "client" role assigned. So, in the user template I set the "show this field only if" field to "roles=client", for those fields. Now, when I assign the role to the user, the fields are showing correctly (and they hide when I remove the role). But when I set a value and save the page, the fields are not saving any data. But if I change the condition to "roles!=agent" (or I totally remove it), the fields behave as usual, saving the data correctly. Is this a known limitation, or am I doing something wrong? Thank you! Link to comment Share on other sites More sharing options...
saleo Posted August 7, 2018 Author Share Posted August 7, 2018 Ok, I acted too fast, sorry. Solution found in this topic. I have to use the role id, not the role name. So, for example, "roles=1040" instead of "roles=client". 2 Link to comment Share on other sites More sharing options...
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