Note: You are currently viewing documentation for Moodle 2.4. Up-to-date documentation for the latest stable version of Moodle may be available here: Dataform Fields.

Dataform Fields: Difference between revisions

From MoodleDocs
No edit summary
Line 139: Line 139:
==Fields management==
==Fields management==
In the Manage -> Fields tab you can add new fields or edit/set up existing fields.
In the Manage -> Fields tab you can add new fields or edit/set up existing fields.
[[Image:df-fields-list.png|frame|left|Dataform views list]]<br clear="both" />


===Add a field===
===Add a field===

Revision as of 16:39, 2 October 2012

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.

Field types

Internal fields

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.