Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas

Contributor tpartner on the Logic & Conditions category

Toggle "Mandatory" setting on questions  
Written by tpartner the 19 Dec 09 at 01:08. Related project: 1.x all. New
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.
13
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.

See the 2 comments or propose a solution (latest comment the 20 Nov 11 at 14:46) >>