Conditional field

User profile fields ::: profilefield_conditional
Maintained by Shamim Rezaie
A drop-down menu field that shows/hides some other custom profile fields depending on its selected value.
Latest release:
526 sites
42 fans
Moodle 2.9, 3.0, 3.1, 3.2, 3.3, 3.4

The conditional profile field plugin is an advanced version of the dropdown menu profile field type in which you can decide to hide/show some other profile fields based on the value selected for this field.

This allows you designing dynamic signup/profile pages.

You can also set some other fields to be required based on the selected value for this field.

If this plugin makes your life easier, you can treat me a coffee smile

Buy Me a Coffee at


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5


Shamim Rezaie (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Thu, Jun 6, 2019, 4:20 PM
    does this plugins offer the feature to show/hide custom fields (or custom category of fields) by role (or by user) ?
    imagine i need to not show/hide extra-field (of user profil) depending of the current user role.

    Example :
    the teachers don't have to see/access to the socials fields
    the medical team don't need to access to accounting fields but need to have his "own" fields (like health problem, vaccine,..)
    the foad team don't need to access to social fields nor accounting ones neither medical fields !

    does this plugin fill my need ?
  • Wed, Jun 19, 2019, 4:22 PM
    If there are a lot of profile fields, you'll need to replace
    [div class="no-overflow"]

    with this:
    [div class="" style="overflow-x:scroll"]

    in templates/condition_configuration_page.mustache

    (replace braces with angle braces above)
  • Thu, Jan 2, 2020, 2:25 PM
    Hi, I have installed this plugin on Moodle version 3.5 and I am getting empty space on registration form where I am setting up conditional field, the dependent fields for which are initially supposed to be hidden and appear after user selects a particular option in the conditional field.
    The scenario is: the user is supposed to select a 'country', depending upon which 'states' belonging to that country should appear (which is again a conditional field with 37 options), and depending upon the state selected, the district dropdown (37 normal dropdown fields) should appear.
    The issue is: in the registration form there appears considerable amount of empty space after country dropdown, though the conditions are working properly.
    Any suggestions to get rid of the empty space?? (I tried the solution suggested by Olli Savolainen but the space still remains.)

    Thanks & Regards,
  • Wed, Mar 4, 2020, 11:21 PM
    Hi, did you ever find a solution to the white space problem when having multiple fields? I tried the above but did not work.
  • Mon, Mar 16, 2020, 7:21 PM
    It works perfectly in Moodle 3.8.1. Tested.
  • Tue, May 12, 2020, 12:56 AM
    Hi, I am using this plugin on moodle 3.8. All seems to work. The problem is regarding the option Hide Initially, I can't make it work. How can understand where is the problem?
    Thank you
  • Mon, Aug 17, 2020, 7:19 PM
    using this with moodle 3.8, coditional filed doesn't show in android ionic app, anyone faced this issue? dropdown and text filed has no issue, facing problem with the datatype "conditional"
  • Wed, Sep 9, 2020, 5:21 PM
    Hi. I'm usind moodle 3.9. I would like to add 3 security questions fields into sign up page, and also 3 fields for answers under these question fields. when a user click on first security question field and choose a question from drop-down menu, then answer field will appear to write the answer. How can I do that?
  • Thu, Jan 7, 2021, 10:12 AM
    I will buy you a coffee if you will update this plugin to current versions. It's very useful smile
  • Mon, Jan 18, 2021, 10:40 PM
    The plugin is now updated
  • Thu, Jun 24, 2021, 12:08 AM
    Hi, I´m trying the plugin on Moodle 3.11 and the Configure Conditions box is coming up as greyed out so I can't input any conditions. Any ideas why this might be? Thanks.
  • Sun, Jul 11, 2021, 12:26 AM
    Thank you very much for this plugin, We're hoping to have an update for Moodle V3.11. Thanks much.
  • Wed, Jul 14, 2021, 8:39 AM
    I'm having the same issue as Hay B - unable to configure conditions in moodle 3.11
  • Thu, Jul 22, 2021, 7:47 AM
    I am facing an issue while bulk user upload
    All the fields are correct. But if we are adding any field data with conditional visibility in the signup page, its showing an error while uploading in the status column like below even the required field already there with correct data

    "Please fill the Job Category field. It cannot be left empty based on the value you selected here. (profile_field_User_Category)"
    if we remove the field data for "(profile_field_User_Category)" as the scenario here, everything going well!

    How to solve this issue.
  • Tue, Oct 12, 2021, 8:38 PM
    the plugin not works. The 'Configure conditions' not open the configurator...
1 2 3
Please login to post comments