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

Automatically transfer responses to other DB? - by: pschmidt

$
0
0
Hello everyone,

I'd like to export the responses from a survey to another DB. This should happen once a day and I need the submit date, responses by questions and first and last name. I'm on 3.1.0.

I assume that I have to use the API functions list_participants to filter for the current date and then use export_responses_by_token for the answers and submit date. I tested with Postman, however I can't seem to filter for the date correctly. This is my request:

{"method":"list_participants",
"params":{
"sSessionKey":"XXX",
"iSurveyID":XXX,
"iStart":0,
"iLimit":-1,
"bUnused":false,
"aAttributes":false,
"aConditions":{"submitdate":"2018-02-16"}
},
"id":1}

This just returns all participants. Filtering for other stuff like email works. Am I doing something wrong?

Also, what would be the best way to automate this?

Can I add a new language to already Active Survey? - by: jelo

$
0
0
Yes, you can add a new language to an active survey. In the world of LimeSurvey precaution translates into test everything on an additional installation with the used version.

You didn't mentioned the LS version you use.

Automatically transfer responses to other DB? - by: jelo

$
0
0
Might be a bug. Instead of submitdate you might try:
"completed": "2018-02-17 00:00"
I haven't used the API for a longer time and I'm not using Postman.

Creating a "Test Battery" with LimeSurvey - by: NielsFro

$
0
0
Thank you, holch, for your answer and your hint to use custom attributes - I know, this is more complicated than uploading identical tokens, but it really helped a lot!

I have created a custom attribute called nextURL (it's the fourth custom attribute in my participant table) and set the EndURL in the survey settings to {TOKEN:ATTRIBUTE_4}

now I can define the nextURL for each participant in the participant table and it works just as I wanted :)

Can LimeSurvey help me in making a person focussed spreadsheet? - by: dosch

$
0
0
That was it. I guess that LS has so many features I just need time to find them all. :-)
Thank you for your fast answer and this perfect welcome to the forum

List with numerical input - by: vzyldd

$
0
0
My apologies. Version 2.06+ (150831). Would prefer the first option if it will work on my version.

Copy_survey working properly in json/rpc? - by: jsibley

$
0
0
Thank you so much, and my apologies. I took a look at my version of the code and realized that it is time for me to update! A lot seems to have changed in the api code since the version I have been using.

Thanks again.

Creating a "Test Battery" with LimeSurvey - by: NielsFro

$
0
0
Addition to my last comment: I decided to use conditions in the End Message to direct the participant to the next survey (instead of using the EndURL).

List with numerical input - by: tpartner

$
0
0
This will get the listeners to work in 2.06:

<script type="text/javascript" charset="utf-8">
	$(document).ready(function(){	
 
		// Identify this question
		var qID = {QID};
		var thisQuestion = $('#question'+qID);
 
		// Add some classes
		$(thisQuestion).addClass('with-exclusive-items');
		$('td.answer-item', thisQuestion).addClass('non-exclusive-item');
 
		// Loop through the last-column cells
		$('td.answer-item:last-child', thisQuestion).each(function(i) {
			varThisID = $('input[type="text"]', this).attr('id');
 
			// Add a class
			$(this).removeClass('non-exclusive-item').addClass('exclusive-item');
 
			// Hide the text input
			$('td.answer-item:last-child input[type="text"]', thisQuestion).hide();
 
			// Insert checkboxes
			$(this).append('<div class="checkbox">\
								<input class="checkbox" name="" id="'+varThisID+'_cbox" value="N/A" type="checkbox">\
								<label for="'+varThisID+'_cbox" class="answertext inserted-label"></label>\
							</div>'); 
		});
 
		// Listener on the checkboxes
		$('.exclusive-item input[type="checkbox"]', thisQuestion).on('change', function(e) {
			var thisRow = $(this).closest('tr.subquestions-list');
			var thisCell = $(this).closest('td.answer-item');
			if($(this).is(':checked')) {
				$('input[type="text"]', thisCell).val('1');
				$('.non-exclusive-item input[type="text"]', thisRow).val('');
			}
			else {
				$('input[type="text"]', thisCell).val('');
			}
 
			// Fire Expression Manager
			$('input[type="text"]', thisRow).each(function(i) {
				$(this).trigger('keyup');
			});
		});
 
		// Listener on the text inputs
		$('.non-exclusive-item input[type="text"]', thisQuestion).on('keyup change', function(e) {
			var thisRow = $(this).closest('tr.subquestions-list');
			if($.trim($(this).val()) != '') {
				$('.exclusive-item input[type="checkbox"]', thisRow).prop('checked',false);
				$('.exclusive-item input[type="text"]', thisRow).val('');
			}
 
			// Fire Expression Manager
			$('.exclusive-item input[type="text"]', thisRow).trigger('keyup');
		});
	});	
</script>

Remote Control 2 - export_responses don't export token infos - by: stevelegare

$
0
0
Hi,
I have a script to import responses but the informations for the tokens are not in the export. Do I have to add a parameter to my call?

I'm using LS 2.05


$myJSONRPCClient->export_responses ($sessionKey, SURVEY_ID,
        "csv",
        "fr",
        "complete",
        "full",
        "long",
        $idFirst,
        $idLast
    );

List with numerical input - by: vzyldd

$
0
0
Very big thank you. Solved my problem.

Storing survey answers back into participant database attributes - by: holch

$
0
0
The plugin is most probably not compatible with the newest version of Limesurvey, which just came out a few weeks ago.
As far as I know, the user Denis (the developer of this plugin) will be starting soon to adapt his plugins for the latest version. However, if you have a look at his site you will see that he has a lot of plugins, so this might take a while.

Looking at the link you gave, it seems that this plugin is not even compatible with the previous branch (2.5x):

Dev: preparing 2.5X compatibility
Denis Chenu authored 4 months ago


But I think he will not adapt it to the 2.5x branch anymore but go straight to 3.x, but these are only my thoughts and I have no deeper insights into Denis' plans on updating the plugins.

For now, you most probably will have to update the token tables manually.

Reactivate user form after submit - by: holch

$
0
0
If you have used tokens, you should be able to go into the response table and set "completed" from "No" to "Yes". However, if the respondents go back into the questionaire they most probably receive the last completed question, which would be the last question. So I am not sure if this helps a lot. If you have the back button activated they could go back with the back button.

It is probably easier for them to tell you what they want to change and you do it manually by editing the response.

What resource limits are needed to run LimeSurvey for 50-100 simultaneous users? - by: jelo

$
0
0

oleggorfinkel wrote: When I begin teaching a course, I can have up to a hundred (or even more) students needing to fill out questionnaires simultaneously.

How do you come to the conclusion of 100 or more students simultaneously accessing LimeSurvey?

Are these students filling out a survey as a respondent or are they using LimeSurvey as a user and are creating surveys?


LimeSurvey performance depends on

CPU
RAM
Storage speed (I/O)
Bandwidth

If you e.g. offering a survey with big amount of pictures you might get already limited by the bandwidth of the server you're running LimeSurvey on.

Depending on the way the webserver and php (CGI/PHP is the slowest, look out for PHP-FPM) is configured the limit will be more on the memory or on the CPU side.

100 users or respondents at the same time are not translating into 100 concurrent connections. Depending on the browser/webserver setup one user gets more than one connections. On the other side, when people are answering a survey they load a page, read, answer and then click the button to go on. You seldom have the case that 100 users are all clicking at the exact same time.

Look for a webhosting with dedicated resources. E.g. look for a provider which offers CloudLinux in a managed webhostingpackage. Storage should be SSD only. That is very important cause LimeSurvey is creating big sessionsfiles when first accessing the survey.
SSD is also important if the server get's near the limits and get's into swapping. SSD will be help coping these situations in a quicker way.

Reactivate user form after submit - by: tpartner


Multiple options with secondary options question validation - by: Payek

$
0
0
Hi all,
how can I validate multiple options question with secondary options? I used workaround from the manual ( Here in Lime Manual ), and everything works perfectly. But in my scenario, I want to force a participant wich check primary answer to chose at list one of the appropriate secondary options.

My Lime: Version 2.72.3+171020

Any hints are highly appreciated :)

Payek

Multiple options with secondary options question validation - by: Joffm

$
0
0
Hi,
you know the code of the primary answer (PA) and the code of the secondary answers (SA1, SA2).

That means, this must be true:
PA=="Y" and (SA1=="Y" or SA2=="Y")
PA!="Y" and SA1!="Y" and SA2!="Y"

Okay, you have to dapt to your needs.
Joffm

Storing survey answers back into participant database attributes - by: Joffm

$
0
0
Hi, falkenhorst,

I saw this plugin now for the first time.

But as I understand, you have to enter into "Value for attribute 1" the respondents answer to a question.
You said

which stores the participants answers in the respective fields back to the corresponding attributes


So I think you have to enter something like {Q1}.

Just an idea.

Joffm

Multiple options with secondary options question validation - by: Joffm

$
0
0
A bit more detailled:

Enter the following in "question validation"
((Q1_PA=="Y") AND ((Q1_SA1=="Y") OR (Q1_SA2=="Y"))) OR ((Q1_PA!="Y") AND (Q1_SA1!="Y") AND (Q1_SA2!="Y"))

1. Error:


2. Fine

Reactivate user form after submit - by: dmeier

Viewing all 17529 articles
Browse latest View live


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