Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User:Frank Ralf/Moodle forms1: Difference between revisions

From MoodleDocs
Line 15: Line 15:


== Checkboxes ==
== Checkboxes ==
=== Quiz settings ===


* You tick a checkbox to activate a feature and you untick it for deactivating - or was it the other way round...?  
* You tick a checkbox to activate a feature and you untick it for deactivating - or was it the other way round...?  


: This one was fixed in Moodle 2.0--[[User:Tim Hunt|Tim Hunt]] 00:44, 30 June 2009 (UTC)
: This one was fixed in Moodle 2.0--[[User:Tim Hunt|Tim Hunt]] 00:44, 30 June 2009 (UTC)
=== Quiz settings ===
[[Image:Quiz settings Check for disabling.png]]


* The checkboxes should be on the left. That way no additional prompt would be necessary and accessibility (especially for screen readers) would improve.
* The checkboxes should be on the left. That way no additional prompt would be necessary and accessibility (especially for screen readers) would improve.
Line 27: Line 29:


:: Thanks for the feedback, Tim. Will try to keep track of all the new developments! The problem with aligning form elements is that they all are usually treated as block level elements. I suppose one could try using "display: inline;" to get around that limitation but haven't tried this yet. --[[User:Frank Ralf|Frank Ralf]] 12:39, 30 June 2009 (UTC)
:: Thanks for the feedback, Tim. Will try to keep track of all the new developments! The problem with aligning form elements is that they all are usually treated as block level elements. I suppose one could try using "display: inline;" to get around that limitation but haven't tried this yet. --[[User:Frank Ralf|Frank Ralf]] 12:39, 30 June 2009 (UTC)
[[Image:Quiz settings Check for disabling.png]]


=== AJAX and JavaScript ===
=== AJAX and JavaScript ===

Revision as of 09:39, 20 July 2009

Inconsistencies of Moodle forms

For the time being this is only a list of inconsistencies I noticed when working with different Moodle forms. I hope to find time to make some suggestions for improvements.

Yes/no dropdown menus

Moodle uses quite a lot of dropdown menus for yes/no questions. These require (at least) two mouse clicks for selecting an option. Therefore alternatives like a simple checkbox or radio buttons would make for better usability and avoid some inconsistencies in the Moodle UI (see screenshot).

Further information:

Yes-No vs checkbox.png

Checkboxes

  • You tick a checkbox to activate a feature and you untick it for deactivating - or was it the other way round...?
This one was fixed in Moodle 2.0--Tim Hunt 00:44, 30 June 2009 (UTC)

Quiz settings

Quiz settings Check for disabling.png

  • The checkboxes should be on the left. That way no additional prompt would be necessary and accessibility (especially for screen readers) would improve.
This would break the alignment of the form. Suppose you had an optional date followed by a non-optional date - it would be useful if the sub-fields lined up, so you could easily see whether the second date was 7 days after the first. I also think it would be better to have the checkbox first, I am just saying it is not as simple as that.--Tim Hunt 00:44, 30 June 2009 (UTC)
Thanks for the feedback, Tim. Will try to keep track of all the new developments! The problem with aligning form elements is that they all are usually treated as block level elements. I suppose one could try using "display: inline;" to get around that limitation but haven't tried this yet. --Frank Ralf 12:39, 30 June 2009 (UTC)

AJAX and JavaScript

Another example (Moodle 2.0 dev, Build: 20090720)

2009-07-20 Moodle and JavaScript.png

See also

[TODO]