InMotion Hosting Support Center

When Creating users in Moodle, the field categories available may not contain the fields needed for the users or students in the Course. For example, the same course may be available for students at more than one campus. A User profile field can be created to customize the user profiles within Moodle. The User profile fields are set in the site administrator section of the dashboard. This article will walk through the steps of creating custom fields in the profiles for the users. If the previous article was missed, please visit Adding new users to the Moodle User Accounts.

Adding User Profile Fields to Moodle

  1. Log into the Moodle Dashboard
  2. user-profile-fields-1-selectNavigate to and select Settings > Site administration > Users > Accounts > User profile fields.

    Important! Keep in mind that Editing must be turned on in the Settings > Front Page Settings section in order to edit any of these options.

  3. user-profile-fields-2-menu-moodleIn this example, select Menu of Choices. When the value is selected, the browser will automatically go to the User Profile Fields page to edit the profile field setting.
  4. user-profile-fields-3-new-moodleNext is the Creating a new 'Menu of Choices' profile field page. Enter the Short name, Name, and Description of the field. Below is a brief description of what each category does. Click Save Changes.

    Important! When entering the Short Name of the User Profile, make sure the name is short and one word. The reason is because this field is used when uploading bulk user data through a file .csv upload. The field naming convention is profile_field_name where name is the Short Name of the profile. For example, if the Short Name is the persons Nick Name, enter something like alias. Then the database will store the name profile_field_alias. This will prevent errors in the future when using the User Uploads section of the Site Administration.

    Common settings: The common settings will allow the profile field to have a name, description, visibility, and whether the field is required, locked, unique. The field can be displayed on the Signup page as well.

    Specific settings: This is where the custom field information will go.

    user-profile-fields-4-list-moodleOnce the changes are saved, the New profile field will show on the list.

  5. user-profile-fields-5-edit-moodleTo view the Profile field setting in the user account. Select Edit Profile in the Settings > Site Administration > Users > Accounts > Browse list of users and edit a user to add the setting.
  6. user-profile-fields-6-other-moodleThe new profile field will be listed towards the bottom in the Other Fields section. This is where the Profile Field will be found for the user. Save the setting.
  7. user-profile-fields-7-final-moodleWhen the student goes to view the user profile, The profile will look like the following snapshot.

This concludes the overview for the Moodle Editing User profile fields in Moodle. Please check the next article on Running bulk user actions in Moodle. For more information on this Education Channel please visit Managing users and roles in Moodle

Continued Education in Course 105: User Accounts and Permissions in Moodle
You are viewing Section 2: Editing User profile fields in Moodle
Section 1: Adding new users to the Moodle User Accounts
Section 3: Running bulk user actions in Moodle
n/a Points
2014-08-27 2:46 am


can we take values form db for a selection menu options in user profile fileds... for example i want ti display all available courses in a selection menu... is it possible??

30,331 Points
2014-08-27 10:47 am
Hello Moodler,

Most anything is possible in code. That does not sound beyond the realm of possibility, however this is not something that is done by default. It would require a custom code modification.

Kindest Regards,
Scott M
n/a Points
2014-08-27 10:59 am

scott thanx for quick response... i'm new to moodle n i was looking for something done by default... however this functionality is not avaliable i'll customize core files... thanx again

n/a Points
2015-02-27 4:58 am


    I want to create a new field 'role' in sign up page and also insert this data into mdl_user table in database.bout I can't create .can you help me

30,331 Points
2015-02-27 8:57 am
Hello Anami,
Have you followed the instructions above? Do they apply? Where are you having trouble?

Kindest Regards,
Scott M
n/a Points
2015-02-27 1:57 pm

Anami you can add custom field in as described in above images... but i'm not getting why you want to add that field in DB, there are functions to get value of custom fields of user profile field

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

6 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!