• I have setup a registration form that uses field with conditions – these are dependent on the role the user registers with. This is all working fine.

    I have also updated the profile page to again display the relevant fields conditionally on role.

    When you edit the profile I have an issue however. Ideally I would like to display the role and not allow it to change (setting the “Can user edit this field?” to No). With this setting the conditional fields do not appear. If I change the role to allow editing the conditional fields appear.

    Is there a way to display conditional fields without having to make the role editable?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your question is not accurate because ‘conditional roles’ and making fields ‘user editable’ or not, are two complete different things.

    Thread Starter julesf01

    (@julesf01)

    Sorry maybe the question wasn’t worded correctly.

    On the registration form I have a standard field “Roles (Dropdown)” – this list the community roles people can register with. For one of those roles there are then an additional set of details that I need to get people to enter. The fields for the additional details are only displayed (using the “Manage conditional fields support” options) if the “Roles (Dropdown)” field is set to the specific value. This all works I want it to.

    The manage profile form is where I have an issue.. If the “Roles (Dropdown)” field can be updated by the user (“Can user edit this field?” set to Yes) then the conditional fields display correctly. If the update of the “Roles (Dropdown)” field is set to No then the conditional fields do not display. I do not want to allow users to change role themselves (one of the other roles requires review before the account would go active) and if the roles field can be changed by the user it bypasses the email notification etc. and thus allows someone to get a role that they should not have unless their account is reviewed.

    So, you don’t want one of the roles to see the user roles menu. There are three ways to solve that problem:

    1. Echo the user role and create new rules to hide the menu.
    2. Create a new profile form.
    3. Contact me so I can fix this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Edit Profile with Conditions on Fields’ is closed to new replies.