Associated input
Maintained by
Shamim Shamim
An associated profile field, associates its value with a core optional profile field.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
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.
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?
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.
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.
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".
I'll look into it.
Other than that, it's a great quick fix for a registration page with more fields.
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
Thank you for your contribution - I'll review it in the next cuple of days.
Tomek