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

Contributor evan

turn display question codes on and off on a per survey basis  
Written by evan the 28 Apr 10 at 05:04. Related project: 1.x all. Implemented
When display question code QUESTION_CODE is working for normal screen surveys. It would be great to be able to turn it on and off.

Currently we run a lot of research surveys. In the development/pilot phase, we collect feed back about how the survey is structured. The problem is that it's hard to identify which question the feed back refers to. Having the question codes would make this a lot easier.

Then when the survey is ready for real use, the question codes would be irrelevant. Currently the only possible way would be to create a custom template.

Our LimeSurvey installation services a university with lots of org units and thus lots of custom templates. Creating another custom template just to display question codes is very annoying.
2
votes
implemented
Selected solution (#1): Add yes no option to 'Edit survey settings' > 'Presentation & navigation'
Written by evan the 28 Apr 10 at 05:04.
In the 'Edit survey settings' > 'Presentation & navigation' tab add a yes/no drop down titled "Display question codes" This would then be checked when populating the template then apply if 'yes'

See the 1 comments or propose a solution (latest comment the 3 May 10 at 21:17) >>

Difficulty to manage some CSS and JS with hard coded information  
Written by Shnoulle the 23 Mar 10 at 12:11. Related project: 1.x all. New
Hello,

Actually there are some hardcoded style.

For exemple for mandatory question we had in qanda.php :

<strong><br /><span class='errormandatory'>

And a lot of other font color='orange' .

This made non-semantic survey and more difficult to use CSS in a good way.

1
votes
up equal down
Solution #1: Remove all non-semantic information from php code
Written by Shnoulle the 23 Mar 10 at 12:11.
We can use some value of semantic, for example : span , div , p , strong , em in code with some class.

For errormandatory, just a <strong class="errormandatory"> and just one thing for all.

Problem : template had to be modified : if the semantic way is good enough, we can just look at default and limespired template.


1
votes
up equal down
Solution #2: Modify template ability with conditionnal thing
Written by Shnoulle the 23 Mar 10 at 12:19.
Some of template sytem had the ability to make conditionnal branch.

For example smarty :
if $logged_in
Welcome, $name!
else
hi, $name
/if


We can use something lime that :
{if QUESTION_MAN_MESSAGE}{QUESTION_MAN_MESSAGE}{/if}

Or more easy for template maker :
{optionnal_code QUESTION_MAN_MESSAGE optionnal_code}

and QUESTION_MAN_MESSAGE are only text from langage.

This is more difficult to do i think. (i can't help, but i can help to the first solution)
-2
votes
up equal down
Solution #3: translate CSS class names on the fly
Written by evan the 23 Apr 10 at 06:02.
I did a lot of work putting in the classes to make it easier for designers to style LimeSurvey by moving styling out of hard coded (and invalid) HTML styling into easily (with the right knowledge) customisable CSS. Most of these classes names use meaningful if your survey is in English. If your survey is not in English then the classes are not meaning full so do not contribute to the semantic quality of the survey.

The following might be a slightly weird solution but...

One possible solution is to parse both the template files and CSS files when the survey is activated, dumping the cached versions of these files into a locale based templates directory.

Also on the same idea. Have a parser to translate class and ID names in template.css files into other languages to make it easier for non-english speakers to style templates.
0
votes
up equal down
Solution #4: Modify template ability with conditionnal thing #2
Written by Shnoulle the 25 May 10 at 14:22.
in common.php

Replace
if (strpos($line, "QUESTION_HELP") !== false) $line=str_replace("QUESTION_HELP", $question['help'], $line);

by

if(preg_match("~(.*)(\)(.*)QUESTION_HELP(.*)(\)(.*)~",$line)$line=preg_replace( "~(.*)(\)(.*)QUESTION_HELP(.*)(\)(.*)~","$1$3$question['help']$4$6",$line);


I put some diff on bugtracker after 1.90 was out.

Add a comment or propose a solution >>

Totals fields for Array (Multi Flexi) (Text) (numbers only)  
Written by evan the 25 Feb 10 at 01:42. Related project: 1.x all. New
We have a survey that requires participants to fill in a time sheet. We would like to show them the total hours for each task. We also need to record these totals in the survey results.
-1
votes
up equal down
Solution #1: Add three additional attributes for Array (Multi Flexi) (Text) (numbers only)
Written by evan the 25 Feb 10 at 01:42.
1 it might be worth making the question Array (Multi Flexi) (Text) (attribute: numbers only) into it's own question type

2 add the following attributes:
Show totals
* row = total for each row (an additional column)
* col = total for each column (an additional row)
* both = totals for both columns and rows (an additional row and column)

store totals in results
* 1 = store column/row totals in results

Grand total
* 1 = show grand total only
* 2 = store grand total in results (do not display)
* 3 = show grand total and store in results

Java script would calculate totals for columns/rows and would be able to hand negative numbers and floating point numbers.

for visual example see
http://apps.acu.edu.au/~evanw/LimeSurvey_custom-q-type_array-mulit-flexi-text-n umbers-only.html

Please ignore styling as this should be done with CSS.

I can help with the HTML side but can't help with JS, DB LS admin stuff.

Add a comment or propose a solution >>

decouple survey settings in 2 pages  
Written by apps the 5 Feb 10 at 16:12. Related project: 1.x all. Implemented
Survey settings is composed of 2 pages:
1 Survey configs, with tuples (name-value) .e.g. Allow Saves Y/N
2 Survey textes, with survey title, welcome, endmsg.

The first part of settings are set at start of your work with a survey, and rarely fixed later.
The behaviour of a survey is technical choice, with a tendency of no change over time.

The second part is very frequently used, I believe it stays at the same level of questions and aswer, often modified for the same aesthetic or pratic reasons.

8
votes
implemented
Selected solution (#1): split in 2 pages
Written by apps the 5 Feb 10 at 16:12.
The use case can be safely split in 2 use cases, by looking at the level of interaction the user need with the settings.

A "survey messages" +
A "survey settings " (Retain old name)

Add a comment or propose a solution >>