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

Contributor tpartner

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) >>

make it clear that template.js will not be used in BASIC TEMPLATE  
Written by apps the 9 Feb 10 at 14:59. Global category: Templates. Implemented
template.js is the natural place of all user javascripts

BASIC TEMPLATE has the peculiarity of not using template.js because it lacks the proper inclusion of it.

In the Template Editor, template.js is always shown, even if it's not called inside *pstpl. When editing BASIC template, you can edit template.js, bit it will not be loaded at runtime.

I suggest to make it crystal clear that this is the default behavior.
If not, the user may waste time in debug & design, until he notices that his javascripts are not there and fix the basic template.
Also, COPYING BASIC for your own work will result in inactivated template.js, so the issue reinforces itself in the copies/clones
1
votes
implemented
Selected solution (#1): add a commented inclusion
Written by apps the 9 Feb 10 at 14:59.
add at least a commented inclusion
< !-- < script type="text/javascript" src="$TEMPLATEURL$template.js"> -->
so that the designer guy can learn-by-reading that the user javascripts starts inactivated with BASIC, also he'll quickly reactivate template.js if he'll have to.

Add a comment or propose a solution >>

Export survey start language with data  
Written by tpartner the 26 Sep 09 at 21:33. Related project: 1.x all. New
I think it would be useful to be able to record and export the survey start language for multi-lang surveys, much like it is now possible to record the time-stamp or IP address. So if a survey was accessed with something like "http://www.mysite.com/surveys//index.php?sid=11111&newtest=Y&lang=fr", the "fr" would be in the exported data.

This would allow the data to be filtered by language.

A related idea would be to allow filtering by start language in the Statistics panel.
1
votes
up equal down
Solution #1: Export survey start language with data
Written by tpartner the 26 Sep 09 at 21:33.
Not sure how it would be done in the back end but basically add a checkbox to the "Notification & data management" panel to include the startlanguage column of the lime_survey_SID table in the exportable data.

Add a comment or propose a solution >>