moodle-qtype_formulas icon indicating copy to clipboard operation
moodle-qtype_formulas copied to clipboard

Improve tooltips

Open PhilippImhof opened this issue 8 months ago • 2 comments

  • For fields of answer type number, there is no need to show the tooltip, as no special symbols are allowed and if the student enters anything else than a number (in normal or scientific notation), a warning symbol is shown, so they will know that something is wrong. Removing the tooltip makes the interface "lighter".

  • Currently, tooltips are shown when a field is focused and when the mouse hovers over a field. Hence, it is possible to have two tooltips at the same time. This does not really make sense. It would probably be better to have the tooltip shown only for the field that is currently active.

PhilippImhof avatar May 04 '25 09:05 PhilippImhof

With MDL-85471, this becomes (almost) obsolete. Tooltips can now be dismissed by pressing the escape key, so a user is bothered by a tooltip, they can simply make it disappear.

PhilippImhof avatar Jun 06 '25 08:06 PhilippImhof

I’d like to share a few ideas that might contribute to the ongoing reflection and perhaps support future improvements to the Formulas question.

Image

Answer type toolkit

  1. Replace the answer type tooltip with a smaller box below the input field, since the large tooltip above is often obtrusive.

As-you-type (On-the-fly) validation

  1. Replace the validation icon inside the input field with a message box below the answer type box, as the icon itself is often obtrusive.

  2. Do not trigger an error for entries such as “+”, “-”, or “2+”.

  3. Disallow illegal characters (e.g., non-digit characters in number answers, or symbols like “@” and “#” in all answer types).

If implementing the following recommandation is too difficult to implement during as-you-type validation, apply it during on-submit validation:

  1. Trigger an error for unknown functions and unknown variable names.

On-submit validation

  1. Do not submit the answer while a validation message is still displayed. Allow editing until the validation message disappears.

dbauer-ets avatar Sep 23 '25 02:09 dbauer-ets