Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Form.

Development:Form: Difference between revisions

From MoodleDocs
Line 24: Line 24:
== Examples and implementation ==
== Examples and implementation ==


=== Moodle configuration forms ===
=== Site configuration forms ===
=== Module configuration forms ("Update this Forum")
=== Module configuration forms ("Update this Forum")===


== Related guidelines ==
== Related guidelines ==

Revision as of 18:04, 8 August 2009

Moodle User Interface Guidelines > Form

Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.

Status: INCOMPLETE
This is a guideline template for a Moodle Interface Guideline. Comments: developer forum thread


Problem

You want to allow users to enter information into the application.

Forces: factors that affect selection

  • There may not be much space. Forms elements are typically verbose and forms require at least a submit button.

Solution

Moodle uses progressive disclosure to hide form items that are suspected to be needed a minority of users.

On simple forms, (less than one page / four elements or less) autofocus the first field of the form on body onload

Date selection: use javascript selector (how about time?)


Common mistakes

Examples and implementation

Site configuration forms

Module configuration forms ("Update this Forum")

Related guidelines

Related issues in the tracker

  • TODO: Configuration defaults http://moodle.org/mod/forum/discuss.php?d=124533
  • TODO: Inconsistency with buttons in each module configuration: save and return to course / save and display / cancel. Are there really use cases to support having this choice each time?

Further information / Sources