Associated input

Maintained by Shamim Shamim
An associated profile field, associates its value with a core optional profile field.
Price option: Free

Supports Moodle 2.0-3.10 See all versions
Latest release: 5 years ago
Installations: 418
Downloads (last 90 days): 62

Frankenstyle name: profilefield_associated
User profile fields

Comments

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

Hi, this plugin is a good solution for what i was looking for.
But i have a little problem: i 'm using phone field and i set the visibility to nobody or only to the user, but the field is displayed in participants list and in profile page (of course, logged in with another student account). So, how can i set to private the phone number? Thanks.
Hi Julio,
Could you please provide more details. What is you Moodle version? What profile field you associated the new field to? Does the problem go away if you delete the new profile field?
Hi Shamim,
I just installed the plugin and added an associated field to the registration form, however, after doing that, it doesn't matter what I do or where I click, it always shows me the page to edit my profile, it looks like I am stuck there. Any ideas on how to fix that?
Thanks!
Julio.
On our system, the default fields have the red asterisk for required fields. I'll investigate further to see if anything else might be a factor, but I'm not sure what else it could be.
Hi Erich,
This is not about the Associated input plugin. As far as I see, none of the required fields (of any type, and not just the associated type) are displayed as "required" if you visit the signup page while you are logged in.
Version 2.5
Erich,
Can you please let me know what Moodle version you are using?
I tried to replicate your scenario but when I accessed /login/signup.php, Moodle said "You cannot create a new account because you are already logged in as firstname lastname".
Thank Erich,
I'll look into it.
This is a handy plug-in and gives us a much better registration page. One quirk we're noticing though is that if a field is set to be required it works fine when a new user registers. However, the required status is not respected if you access the registration page after you've logged in. This is a somewhat uncommon use case scenario (why would a logged-in user register?) but it's still incorrect behaviour and we have had a customer that is concerned about this behaviour.
Other than that, it's a great quick fix for a registration page with more fields.
Thanks Shamim for contributing this plugin, and thanks Tomek for the peer-review. I also like the idea and the possibilities of this plugin. You are cleared to land, welcome to the Plugins directory.
Hi Shamim,
I've tested and code reviewed the plugin. It's written very nicely, well done. I'd say it's good to go to our plugins directory.
As a bonus you could consider:
1. Creating and adding a link to English documentation (e.g. you could use Moodle Docs - https://docs.moodle.org/dev/Plugin_documentation).
2. I think profile_field_associated class has wrong @param classes for $mform passed to the functions - it should be MoodleQuickForm instead of moodleform.
Thank you for your contribution,
Tomek
Hi Shamim,
Thank you for your contribution - I'll review it in the next cuple of days.
Tomek