Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Dataform setup.

Dataform setup

From MoodleDocs
Revision as of 15:43, 18 September 2012 by Itamar Tzadok (talk | contribs) (→‎Fields)

Settings

Packages

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.

Dataform: Field tags

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.

_Entry

_Time

_User

_Group

_Approve

_Comment

_Rating

User-defined field types

Checkbox

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. Date

This allows a user to enter a date by picking a day, month and year from a drop down list. File

Users can upload a file from their computer. If it is an image file then the picture field may be a better choice. Select

The text entered in the options area will be presented as a drop-down list for the user to choose from. Each line become a different option. Select multiple

The text entered in the options area will be presented as a list for the user to choose from and each line become a different option. By holding down control or shift as they click, users will be able to select multiple options. This is a fairly advanced computer skill so it may be wise to use multiple checkboxes instead. Number

This allows users to enter any number. For example:

   42
   -1000
   0
   0.123
   3.0e8

(For those who care about the technical details, the field stores floating point numbers.) Picture

This allows a user to upload and display an image file. Radio buttons

The user gets radio buttons and can choose only one. They can only submit the entry when they have clicked on one button. (Note:If you only have two options and they are opposites (true/false, yes/no) then you could simply use a single checkbox instead. However checkboxes default to their unchecked status and so people could submit without actively selecting one of the options. This may not always be appropriate.) Text

Users can enter one-line pain text. For multi-line text, or for text that requires formatting such as headers and bullet points, you can use a text area field. Text area

This allows users to enter a long piece of text using the text editor. Url

The user can add a link to a website here. If you select autolink then the URL becomes clickable. If you also enter a forced name for the link then that text will be used for the hyperlink. For example in a dataform of authors you may wish people to enter the author's website. If you enter the text 'homepage' as a forced name then clicking on text "homepage" will take you to the entered URL. User custom info

The user info field allows for displaying in an entry custom user profile info.

Fields management

In the Manage -> Fields tab you can add new fields or edit/set up existing fields.

Visible: 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.

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.

Edit: Action button for editing the field settings.

Duplicate: 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: 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.

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.

Views

Filters

Import

Export

RSS

Javascript

CSS

Backup/restore

Permissions