User profile fields: Associated input

profilefield_associated
Maintained by Picture of Shamim RezaieShamim Rezaie
An associated profile field, associates its value with a core optional profile field.
143 sites
65 downloads
20 fans
Current versions available: 1

Ever wondered how to include a core optional profile field on the signup page? Or how to make that field a required field? Or even how to prevent users from providing a non-unique value for it?

The associated profile field is the answer to your need. You can define an associated profile field and "associate" it with a core profile field.

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

Buy Me a Coffee at ko-fi.com

Screenshots

Screenshot #0
Screenshot #1

Contributors

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 Gonzalo Gutierrez
    Wed, Feb 8, 2017, 12:25 AM
    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.
  • Picture of Shamim Rezaie
    Thu, Feb 9, 2017, 12:57 PM
    Hi again Julio,

    The problem that you have is introduced after MDL-46946
    Please do not set any associated field as "required" until I figure out a fix.
  • Picture of Shamim Rezaie
    Fri, Mar 3, 2017, 11:32 AM
    Julio, Others,

    The issue that was caused by MDL-46946 is currently handled properly by the new version (Build: 20170303). Please update the plugin.
  • Picture of Shamim Rezaie
    Fri, Mar 3, 2017, 11:34 AM
    Hi Gonzalo,
    I'm not able to reproduce your issue. Are you using the latest version of this plugin?
  • Picture of Travis Mitchell
    Fri, Jul 7, 2017, 1:27 AM
    This is a very useful plugin for rounding out the user profile fields. I have a couple of questions that are not covered by any documentation I have seen:

    1) How does the "Use original" option affect the record? What does it do?
    2) There are only 12 associated fields in your selection. Is there a reason more are not included? I have modified the define.class.php file to include several others, but wanted to be sure it wasn't going to mess with my moodle site.

    Thanks again for a very useful and helpful plugin!
  • Picture of Shamim Rezaie
    Tue, Aug 1, 2017, 9:09 PM
    Hi Travis,

    1) Suppose that you are using the associated field to specify some constrains on the phone field. If the "use original" is checked, then original phone field that were always being displayed on the profile editing page remains on its place and the constrains are applied to it. but if you deselect the "use original" option, then the phone field will be removed from its original position and will be placed in the additional profile fields section along with the other additional profile fields you have created.
    2) What other fields do you want to be included?
  • Picture of Travis Mitchell
    Wed, Oct 11, 2017, 3:51 AM
    Whoa. Sorry I did not respond sooner. I did not realize you had answered me and had moved on.

    I added City, Country, First Name, Last Name, and Alternate Name to my define.class.php list. It didn't seem to be an issue until I start doing bulk user uploads to add users and enroll students.

    When uploading users/students via csv file, for the associated input fields, should I be using two columns for the associated input fields? One with the original field name and one with the associated input field name (e.g., Should I have two listings for the institution field - one labeled 'institution' and the other labeled 'profile_field_company')? Also, should the associated input field short name be the same as the field it is associated with or have a different name (e.g., Using Institution again, should I make the short name of the associated field be 'institution' or 'company')?
  • Picture of Georg Wiesinger
    Wed, Aug 22, 2018, 4:08 PM
    Good morning,
    while playing with this amazing plugin I came across an issue!

    If creating an associated input field with one of the optional profile fields
    - Web page
    - ICQ ID
    - AIM ID
    - Yahoo ID
    - Skype ID
    - MSN ID or
    - ID number
    and set "use original" to "no" the user profile will finally show both the original and the custom created profile field.

    All the other fields like
    - institution
    - department
    - phone
    - mobile phone and
    - address
    just work like a charm!

    May I ask if this is a bug or am I doing something wrong?

    Tested on Moodle 3.5.1+, fresh installation without any other plugins installed

    Many thanks in advance!

    Kind regards,
    George
  • Picture of Georg Wiesinger
    Wed, Sep 5, 2018, 3:57 PM
    Good morning,
    may I ask if there is any chance to get little support for my concern?

    Best regards,
    George
  • Picture of Georg Wiesinger
    Tue, Oct 2, 2018, 9:19 PM
    Hi,
    may I ask again for some help regarding my concern? Is this gorgeous plugin not maintained anymore?! sad

    Kind regards,
    George
  • Picture of Shamim Rezaie
    Thu, Oct 4, 2018, 10:09 AM
    Hi George,
    All bug reports should be filed at https://github.com/rezaies/moodle-profilefield_associated/issues.
    I can see that you reported the issue there as well.
    I'll look into that as soon as possible. Hopefully next weekend.
    Like any free plugin, I only have weekends to work on the plugins and unfortunately, there are not enough weekends in a year smile
  • Picture of Georg Wiesinger
    Sun, Oct 7, 2018, 6:44 PM
    Hi Shamim,
    I really appreciate your stunning work and I apologise for being a little annoying!
    I'm very happy that this marvellous plugin is still maintained! smile

    Kind regards,
    George
  • Picture of Georg Wiesinger
    Tue, Nov 6, 2018, 11:37 PM
    Hi Shanim,
    would it be somehow possible to create a dropdown menu in combination with an associated input?
    I would like to use the optional profile field "institution" on the signup page as required field and ensure additionally that users have limited options only. The reason why I would like to use this core optional field is because I want to display it in the user list via config.php ($CFG->showuseridentity). Unfortunately custom profile fields are not support by this method so I came across this workaround!

    Any help is warmly welcome!

    Kind regards,
    George
  • Picture of Daniel Groulx
    Sat, Feb 2, 2019, 2:31 AM
    Hi, is it possible to create a dropdown menu in combination with an associated input?
  • Picture of Shaun Ledlie
    Wed, Apr 24, 2019, 5:01 PM
    Hi Apologies for being a newbie but I have installed this plugin and can't find it to use it? Please, can somebody tell me the menu steps to follow to set this?
1 2
Please login to post comments