Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Dataform Fields.
Each entry in a dataform activity consists of a set of information elements of one or more types depending on the nature of the activity. These information elements are called fields and they are the means for adding and viewing content in the activity.
The Dataform has a few internal fields which can be used to display internal entry and user information such as the time the entry was created or modified, the author's name or picture etc. These fields have only one instance that is created automatically by the Dataform. They cannot be added or deleted in the fields list. They can be used for filtering.
Type
_Entry
Description
Settings
Patterns
Type
_User
Description
Settings
Patterns
Type
_Time
Description
Settings
Patterns
Type
_Group
Description
Settings
Patterns
Type
_Approve
Description
Settings
Patterns
Type
_Comment
Description
Settings
Patterns
Type
_Rating
Description
Settings
Patterns
User-defined field types
Type
Checkbox
Description
This allows you to offer checkboxes for the user to select. Add the options one under the other. The word will appear next to a checkbox when the user clicks to add an entry. They can check more than one box.
Settings
Patterns
Type
Multiselect
Description
Settings
Patterns
Type
Text
Description
Settings
Patterns
Type
Textarea
Description
Settings
Patterns
Type
Number
Description
Settings
Patterns
Type
File
Description
Settings
Patterns
Type
Picture
Description
Settings
Patterns
Type
Multiselect
Description
Settings
Patterns
Type
Select
Description
Settings
Patterns
Type
Radio button
Description
Settings
Patterns
Type
Time
Description
Settings
Patterns
Type
Url
Description
Settings
Patterns
Type
User info
Description
Settings
Patterns
Select: For multiple fields for bulk action (duplicate or delete). To select all or none of the fields tick or untick the checkbox in the table header row.
Fields management
In the Manage -> Fields tab you can add new fields or edit/set up existing fields.
Dataform views list
Add a field
Edit a field
Action button for editing the field settings.
Field visibility
The Visible setting determines who can see the field content. A field can be visible to everyone, to entry owner and managers, or to managers only. This can be set either from the field form or by clicking the eye icon of the field, each click moves the setting to the next mode.
Field locking
Editable: The Editable setting determines whether the entry owner can edit the field content. When the field is locked the entry owner cannot edit the field content when editing the entry. Users with manageentries capability can edit the field regardless of this setting.
Duplicate fields
Action button for duplicating one or more fields. To duplicate more than one field select the desired fields by ticking their checkboxes and click the duplicate button in the table header row.
Delete fields
Action button for deleting one or more fields. To delete more than one field select the desired fields by ticking their checkboxes and click the delete button in the table header row.