User profile fields: Conditional field

Maintained by Picture of Shamim Rezaie Shamim Rezaie
A drop-down menu field that shows/hides some other custom profile fields depending on its selected value.
44 sites
9 fans

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


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

Comments RSS

Show comments
  • Picture of Plugins bot
    Fri, 20 Jan 2017, 10:10 PM
    Approval issue created: CONTRIB-6691
  • Picture of Ricardo Méndez
    Wed, 15 Mar 2017, 11:43 PM
    Great plugin, however it doesn't work when in a comboBox is an special character like ' in "VI O'Higgins", in my case i'm using to let the user chose the region of Chile where they live and when I add the option "VI O'Higgins" the condition doesn't work any more.
  • Picture of Shamim Rezaie
    Thu, 16 Mar 2017, 1:09 PM
    Thank you, Ricardo, for your comment and sorry for the inconvenience it might have caused.
    I have fixed this in the new version. Please update the plugin.
  • Picture of Ricardo Méndez
    Fri, 17 Mar 2017, 10:43 PM
  • Picture of sara rabie
    Tue, 28 Mar 2017, 6:12 PM
    Thank you for great plugin but i have and issue when try to signup it release error in insert to database say dataformat cannot be null when field insert to table mdl_user_info_data although this field is hidden from the plugin but it cannot save but when try add user from add new user form it save well . i removed plugin and used css and jquery to hide fields on condition and it worked please solve issue for signup form
  • Picture of Shamim Rezaie
    Tue, 28 Mar 2017, 8:34 PM
    Please file an issue at and provide as much details as possible so I can replicate your issue.
    Please mention your Moodle version and also mention type of the fields you are trying to depend to each other.
  • Picture of sara rabie
    Wed, 29 Mar 2017, 4:03 PM
    ok thank you but please tell me if you solved it to use it because it will save alot of time if i use it
  • Picture of Seaim Khan
    Thu, 27 Apr 2017, 11:52 PM
    I'm relatively new to Moodle and I just came across your plugin. It is definitely something that will help me complete the current project I'm working on, so I'm glad that you made the plugin in the first place.
    Unfortunately, there's a problem I encountered. When I click on "Configure conditions", I get a "servicenotfound" exception with the following stacktrace:

    Error code: servicenotavailable* line 205 of \lib\externallib.php: moodle_exception thrown* line 59 of \lib\ajax\service.php: call to external_api::call_external_function()

    I'm not too sure if this is an issue pertaining to the plugin itself.

    I'm using Moodle 3.2.2, XAMPP, and Windows 7 Enterprise
Please login to post comments