Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #70: Toggle "Mandatory" setting on questions

Written by tpartner the 19 Dec 09 at 01:08. Related project: 1.x all. Status: New
Rationale
I would like to see a tool that could toggle the "Mandatory" setting on all questions in the survey from "on" to "off" and vice versa.

This would make the Q/A process on long surveys much easier - one wouldn't need to answer every question just to check a fix on page 16 of a survey.
Tags: (none)

11
votes
up equal down
Solution #1: Add a button/input to survey settings that would toggle the mandatory states.
Written by tpartner the 19 Dec 09 at 01:08.
To toggle the questions to optional, the button would query the DB, find all questions in the current survey with mandatory=Y and change them to mandatory=M.

We need to use "M" so we can find them to toggle them back later.

The system would see "M" as non-mandatory so all of these questions could now be skipped in a Q/A process.

This way only the questions that the survey author had set to mandatory would be affected.

To toggle the questions back to mandatory, the button would query the DB, find all questions in the current survey with mandatory=M and change them to mandatory=Y.

I've put together a little php script to demonstrate the concept that you can grab at http://partnersinc.biz/testsites/misc_images/mandatory_toggle.txt (can't seem to attach anything here!).
7
votes
up equal down
Solution #2: Use a session variable to disable the "checkmandatorys" function
Written by tpartner the 19 Dec 09 at 14:40.
A more elegant solution may be to have the button/input set a session variable to disable the "checkmandatorys" function. (thanks Carsten)

Some red text could then be displayed at the bottom of the survey indicating that it is in "Q/A" mode and all questions are optional.

Propose your solution


Duplicates


Comments
jas wrote on the 14 May 10 at 10:44
debugging surveys (groupwise) with lot's of questions already marked as 'mandatory' can be very time-consuming.
I normally toggle the mandatory settings directly in the mysql-table, to bypas this problem.
This function is one of the 'most wanted', in my opinion!

A simple list, with all the questions and their mandatory-stting for quick editing would be usefull.

Mazi (Administrator) wrote on the 20 Nov 11 at 14:46
There is a similar idea at http://ideas.limesurvey.org/ideatorrent/item/35/


Post your comment