fubralimited/WP-Survey-And-Quiz-Tool — pull request #186 by iteaman (2012-08-24 10:54:17+00:00)
Title: Quiz question interface

I have made some changes to the interface/usability for the quiz section of WPSQT to hopefully improve user experience.
Could you consider merging them upstream?
I am happy to make alterations if that makes more sense to your roadmap

It affects 2 aspects of the interface:
1. The question
2. The explanation or answer

## The question ##

Some questions require a much larger input field than just 255 chars (e.g. for explaning the context of the question)
I have changed the text input field to a textarea which makes it easier to use HTML tags.

## The explanation / answer ##

Two aspects were added:

### Toggle elaborations ###

The explanation for a particular answer can be very long.
We need a kind of "toggle" box for that in which we can elaborate on certain aspects.

Since this was not a feature, it was added to the Token Class as a %TB_B% (toggle block begin) and %TB_E% (toggle block end) token
As a bonus all other tokens can now be used in the explanation field.

### Explanation only after finishing quiz ###

Explanations should not alway be given directly when answering the question, but rather after finishing the quiz.

"Answer Explanation only at finish" was added to the question options which defaults to the current situation (show explanation directly after answering question)
It enables the quiz administrator to disable showing the explanation until the quiz is finished.
(effectively only in case that "Finish Display" is set to "Review".)