Database Field Email

Database fields ::: datafield_email
Maintained by Stephan Robotta
This plugin provides an additional field type email for the database activity. The field is very similar to the URL field type, only that it accepts syntactically correct email addresses as values.

Database Field Email 1.6

Moodle 4.1, 4.2, 4.3, 4.4, 4.5, 5.0, 5.1
Released: Friday, 10 October 2025, 2:22 AM

Database Field Email

Release Moodle Plugin CI PHP Support Moodle Support License GPL-3.0

This plugin provides an additional field type email for the database activity. The field is very similar to the URL field type, only that it accepts syntactically correct email addresses as values.

Installation

Please run the following steps: 1. Extract the zip archive into <moodle_install_dir>/mod/data/field/. From Moodle 5.1 onwards it is <moodle_install_dir>/public/mod/data/field/. 1. Rename the newly created directory moodle-datafield_email into email so that the files from the repository are inside the directory hierarchy .../mod/data/field/email. 1. Finish the installation via the Moodle admin page.

Usage

Within your database activity in the Fields tab when creating a new field, the selection contains the type "Email" with an envelope icon.

Apart from the standard settings for a field, there is the additional option Create mailto link. When this checkbox is checked, the values of the email field are automatically converted in a mailto link in the view templates. If the checkbox is not checked, then the plain email value is printed without any modification.

Version History

1.6

  • Add support for Moodle 5.1
  • Remove unsupported PHP versions from the CI pipeline

1.5

  • Add support for Moodle 5.0

1.4

  • Added Moodle 4.5 to the CI pipeline.

1.3

  • Moved install script to the correct location db/install.php.
  • Support for Moodle 4.4 and PHP 8.3.

1.2

  • Fix namespace in privacy provider class.
  • Fix value in language tag.

1.1

  • Add Moodle ci testsuite and behat tests for this plugin.
  • Fix some coding styles reported by the Moodle ci.
  • Fix mailto link.

1.0

Initial release.

Version information

Version build number
2025100900
Version release name
1.6
Maturity
Stable version
MD5 Sum
60c08c6714e895e1ec415df5abd88c5b
Supported software
Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0, Moodle 5.1
  • Latest release for Moodle 4.1
  • Latest release for Moodle 4.2
  • Latest release for Moodle 4.3
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0
  • Latest release for Moodle 5.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v1.6

Default installation instructions for plugins of the type Database fields

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myfield") in the "mod/data/field" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation