ELIS Custom fields examples
Note: You are currently viewing documentation for Moodle 2.9. Up-to-date documentation for the latest stable version of Moodle may be available here: ELIS Custom fields examples.
Custom Field ExamplesTo access the Custom fields go to the Program Management block > Admin > Custom fields. From there use the tabs at the top of the page to navigate to a section and create a new field. Custom fields are added to categories, if there isn't a category on the page one will need to be added.
- Dropdown menu
- Text input
- Text area
- Password input
The control types are selected on the creating/editing screen for custom fields. The following image of this screen shows the Manual editing section of the form.
CheckboxTo demonstrate the checkbox input control type I will create a custom track field. The first image shows the first section of the screen to create a custom field, the Common settings section.
The short text data type has been selected for this example. This data type enables a list to be added with a checkbox next to each value.
To demonstrate the dropdown menu input control type I will create another custom track field. The name of this custom field is Track Color. In the following image I am creating the custom field, I have scrolled down near the Manual editing section.
- The short text data type has been selected.
- The dropdown menu input control type has been selected.
- 4 values or options have been added. I add the 'none' option for a default value, because with this setup the first option will be automatically assigned to new tracks unless edited.
This is an example of the text input type. I'll be creating another custom track field for this example. The following screen is showing the Common settings section for this new field.
- Shortname of the new custom field
- The Data type will be "long text"
This example will demonstrate the "text area" input control type. The following image is showing the setup screen for this custom field.
- "Long text" has been selected for the Data type.
- "Text area" has been selected for the Input control type
The following use case will demonstrate a Password Input type profile field:
An administrator wants to assign users to user sets by sending them a password that they will enter in a survey, which updates their profile and assigns them to a user set.
First, create a custom Moodle profile field. Go to the Administration block > Users > Accounts > User profile fields. The are a couple reasons why we create a Moodle profile field first:
- User sets use Moodle profile fields to auto-assign users to user sets.
- The survey will use the Moodle profile field.
- Custom user fields in ELIS are created from Moodle profile fields. In this use case the custom user field in ELIS isn't necessary, but we will create it and synchronize it to copy values from Moodle anyways.
Adding the Moodle profile field:
Now we will create the user set. The user set is being auto-associated with the Moodle profile field "Password Input" and the password "1234". Other user sets could be created and assigned different passwords, e.g., 12345.