Conditional field

Maintained by Shamim Shamim
A drop-down menu field that shows/hides some other custom profile fields depending on its selected value.
Price option: Free

Supports Moodle 2.9-5.0 See all versions
Latest release: 1 year ago
Installations: 834
Downloads (last 90 days): 342

Frankenstyle name: profilefield_conditional
User profile fields

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

The plugin is now updated
I will buy you a coffee if you will update this plugin to current versions. It's very useful smile
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?
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"
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
It works perfectly in Moodle 3.8.1. Tested.
Hi, did you ever find a solution to the white space problem when having multiple fields? I tried the above but did not work.
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,
Kashmira
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)
hi,
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 ?
Hi. I'm having some problems with this plugin. I use LDAP authentication on my Moodle site and it doesn't work. Could anyone help me, please?
Hi, lil help. How to add these custom fields to o365 User Field Mapping (Active Directory Field)?
Hi Shamim,
I am looking forward to seeing your plugin available for moodle 3.5.
Thanks in advance.
Hi Nicolás,
Please report this at https://github.com/rezaies/moodle-profilefield_conditional/issues
Also please confirm if you can add other profile field types (like checkbox) without any problem.
Hi Shamim,
Thank you for your answer.
I made it and the error message says: Fatal error: Can't use function return value in write context in /path/to/my/installation/user/profile/field/conditional/define.class.php on line 126.
Thanks again.