bihor / fp_masterquiz

TYPO3 extension to create a quiz, poll or test. The user result will be saved in the DB too and could be displayed as a chart.
GNU General Public License v3.0
5 stars 10 forks source link

Possibility to set questions as non mandatory #28

Closed h-e-l-l-o-w-o-r-l-d closed 2 years ago

h-e-l-l-o-w-o-r-l-d commented 3 years ago

Hi.

in order to use it as a poll/survey, the possibility if a question is mandatory or not is missing. It seems that all questions are mandatory, which is of course not always wanted.

To be honest I overlooked this when evaluation poll extensions and didn't think this could be missing. ;) Any chance on implementing this in the future or did I miss something?

Cheers

bihor commented 3 years ago

Hi, yes, your feature-wish is a good idea. I will implement it. Kurt

h-e-l-l-o-w-o-r-l-d commented 3 years ago

Great, thank you!

bihor commented 3 years ago

Well, do you mean a check for every question? Now, in version 3.0.9 you can disable the check for all questions with noFormCheck=1

h-e-l-l-o-w-o-r-l-d commented 3 years ago

Hey... while noFormCheck is a good addition, I meant for every question. Some might be mandatory and some not, so a possibility for mixing it would cover all use cases.

Probably a lot of work?

bihor commented 3 years ago

Well, I have implemented this is version 3.1.4. Every question can now be set to be optional, but it is now visible in the FE which question is mandatory and which not, but you could style that with CSS, because there is a optional-class. Any suggesion how to display mandatory/optional?

bihor commented 3 years ago

OK, I have added the setting template.mandatoryMark for a mandatory mark.

h-e-l-l-o-w-o-r-l-d commented 3 years ago

Thanks for implementing it, this helps to get our forms right. :)

About how to display that... of course a <sup>*</sup> next to the label is the most common solution. Here a sentence on top of the form is needed, though. Another approach is to mark optional fields in text form. See here: https://uxdesign.cc/form-field-required-vs-optional-9b4d7cdbf400

Up to you. :)

bihor commented 2 years ago

In version 3.2.0 I have renamed mandatoryMark to optionalMark. An option-text will be shown under the form if optionalMark is defined.