Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all 17529 articles
Browse latest View live

Default Answers with question type : array (texts?) - by: sys_sby

$
0
0
Hello Tony,

I mean that's it
Thank you very much

Regards
sys_sby

Can I calculate SEC (Socio Economic Class) in Lime Survey? - by: tpartner

Prepopulate Multiple Choice Questions - by: holitschka

$
0
0
Hello everybody,

I am working on a survey and would like to prepopulate checkboxes in a multiple choice question.

Does anyone know how I can do that? I didn't find anything in the forum so far.

Thanks a lot for your help.

Cheers,
holitschka

Identifying users who complete the survey and those who screen out! - by: holch

$
0
0
Just remember that the quota will only have effect when the survey is active, in preview mode they will not be triggered, because the answers are not saved.

Measuring time in milliseconds - by: helper

$
0
0
Open .../application/controllers/admin/responses.php
find the following:

replace with:

Unchecking radio buttons - by: Ben_V

modifying "array dual scale" questions - by: jvandernoll

$
0
0
I keep on trying... :)
Somehow it is rally reluctant to upload my attachments - in the previews it is there, but in the submitted post it isn't ...
I've also attached (I hope..) the file that you get when you "export this question"

Matrix with fixed text columns - by: holch

$
0
0
Various titles within one questionnaire will be dificult. I don't see how this could be done (someone?).

If you can do it title by title (one questionnaire for each title) you can upload a token table with the information that is already available and even insert it in the questionnaire.

However, this is quite a simple data entry task. Why don't you do it directly in Excel?

Optional address registration - by: schmidtm

$
0
0
naitk050 wrote:
Based on what I think you are asking - you can set up limesurvey to automatically go to a specified url after the survey has been submitted. This url could be another limsurvey that collects the information you require for for the competition (this keeps the information from the competition separate from the information from the survey). Or you could use this option to link to a separate site where your competition is located.

This sounds promising.

Thanks a lot!

Can I calculate SEC (Socio Economic Class) in Lime Survey? - by: ajparag

$
0
0
Please share a guide or tutorial on how to use an expression. I am new to LimeSurvey.
Please help!

Update: Got it! will go through it. Thanks!

How can I export survey responses directly from SQLserver? - by: Mazi

$
0
0
You are not the only one having tried to export data directly via an SQL statement and so far no one has succeeded to do so.
There are several reasons for this, e.g. Limesurvey stores answer codes instead of the full text answers to deal with multi-lingual surveys and thus several sub-queries are needed to get in all in line.
You definitely need a PHP script to do the export the data (and write it into another DB).

Question hint for Numeric Question Type - by: tpartner

$
0
0
Try adding this to the end of template.css:
.numeric p.tip {
    font-size: 125%;
}

Matrix with fixed text columns - by: tpartner

$
0
0
As Holch says, this may be more work than it is worth, but you could:

1) Create an array-text question with the maximum possible rows
2) Use JavaScript to make columns A, B, C, F "readonly"
3) Make an AJAX call to a remote script that queries your "books" database and populates columns A, B, C, F
4) Let the respondent fill in columns D, E, G
2) Use JavaScript to hide any rows without books

How add a double slider in LS??? - by: tpartner

$
0
0
@ tpartner your proposal looks very great, it didn´t work in my attempt?!
Working survey and template attached.

Note that in this demo the text inputs are not hidden so you can see them being loaded.

[File Attachment: limesurvey_survey_812479.lss]
[File Attachment: Demo_Range_Slider.zip]

Measuring time in milliseconds - by: helper


run php script on completion of a survey - by: davyhp

$
0
0
ivanleng wrote:
I need to do the same and use a PHP script at the end to send some stuff to an external web service.

I'm thinking about using PHP Session to store some values so they can be easily retrieved, this way my end URL won't be too long.

PHP Session would solve the backend problem, but I can't get a PHP script running from within the code of a survey question... Where else would I put my sessions' variables?

tpartner wrote:
<script type="text/javascript" charset="utf-8">

$(document).ready(function() {

$.get('upload/templates/yourTemplateName/survey_end.php', { name: 'John Doe', age: '38' } );

});

</script>

That was the code submitted by tpartner, which isn't working for me inside a survey. Just JavaScript works fine, but the PHP script doesn't run like it does when I use the end URL feature.

variable endurl upon radio button question - how can I do that? - by: holch

$
0
0
Let's say you 3 possible responses:

A
B
C

You'll create a quote for each of them and set it to zero (0).

So whenever someone marks this response, they will run into the endpage for this quota. At the endpage of this quota you can set an individual endurl.

modifying "array dual scale" questions - by: tpartner

$
0
0
Okay, in 1.92, set the question to non-mandatory and use this script. In addition to the above behaviour, it will:

1) Uncheck and hide the "No Answer" options
2) Pop up an alert and abort the submit function if a row is unanswered.
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
 
		moveRowLabels({self.qid});
 
		function moveRowLabels(qID) {
 
			var alertMsg = 'One or more mandatory questions have not been answered. You cannot proceed until these have been completed.';
 
			// Add some classes
			$('#question'+qID).addClass('moveRowLabelsQ');
			$('#question'+qID+' table.question tbody td').not('.dual_scale_separator').addClass('answer-item radio-item');
 
			// Hide the first column
			$('#question'+qID+' th.header_answer_text, #question'+qID+' th.answertext').hide();
 
			// Uncheck and hide the "No Answer" columns
			$('#question'+qID+' .header_no_answer').hide().prev().hide('header_separator');
			$('#question'+qID+' input.radio[value=""]').attr('checked', false).closest('td').hide().prev().hide('header_separator');
 
			// Insert the subquestion text into the scale separators
			$('#question'+qID+' table.question tbody').each(function(i){
				$('.dual_scale_separator:eq(0)', this).text($('.answertext', this).text());
			});
 
			// Reset the column widths
			$('#question'+qID+' col').css({ 'width':'auto' });
 
			// Only one radio clicked allowed per row
			$('#question'+qID+' table.question input.radio').click(function() {
				var parentRow = $(this).closest('tr');
				$('.active', parentRow).removeClass('active');
				$(this).addClass('active');
				$('input.radio', parentRow).not('.active').attr('checked', false);
			});			
			$('#question'+qID+' table.question td.radio-item').click(function(event) {
				var parentRow = $(this).closest('tr');
				$('.active', parentRow).removeClass('active');
				$('input.radio', this).addClass('active');
				$('input.radio', parentRow).not('.active').attr('checked', false);
			});
 
			// At least one radio clicked per row
			// Interrupt the submit function
			$('#movenextbtn, #movesubmitbtn').click(function(){
				var error = 0;
				$('#question'+qID+' table.question tbody.error').removeClass('error');
				$('#question'+qID+' table.question tbody').each(function(i){
					if($('input.radio:checked', this).length == 0) {
						error = 1;
						$(this).addClass('error');
					}
				});
				if(error == 1) {
					alert(alertMsg);
					return false;
				}
			});
		}
    });
</script>

And then use something like this at the end of template.css:
.moveRowLabelsQ table.question tbody td.answer-item { /* radio cells */
	width: 30px;
}
 
.moveRowLabelsQ table.question  td.dual_scale_separator { /* question cell */
	width: 80px;
}
 
.moveRowLabelsQ table.question tbody.error td.answer-item { /* Error cells */
background: pink;
}

Responses stored as messy codes in MS SQL server - by: ldhf5237

$
0
0
:dry:
I did a query in lime survey database and found non-english responses are stored as messy codes in database (SQL SERVER 2008). But the response shows correct when I export them from Lime Survey. Why ? :ohmy:

Add token from URL - by: DenisChenu

Viewing all 17529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>