Jump to content

Setting "Show if" not saving field in user


saleo
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...