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

how to export (RPC) a given answer by its ID? - by: bebs

$
0
0
Hello,
I can export the survey answers via RPC, thanks for the feature.

How do I export only 1 answer that interests me? I know it's ID, but of course not its "position" in the answers table as they may not match.

current export_responses function allows to use from & to parameters, but I have no way to convert the answerID to the position of the record in the table.

My current workaround is to export all answers (in csv) and then find the only one that interests me (in php)... not very efficient with many (loooong) answers.

Any idea would be appreciated.
B.


fyi my current "export, convert & check" code is below, any improvement suggestion is welcome, as I'm no great php coder.


How to reorder question between groups - by: Dmitry_f

$
0
0
Thanks a lot, it looks like what I am looking for!

Mandatory question skipped? - by: bwoo5

$
0
0
I am still using 1.92, waiting till limesurvey 2 is all smoothed out before upgrading.

I was just wondering if anyone has suggestions on what can cause this situation.
Survey is token based.
I have 2 groups, 1 array question per group, both mandatory.
2 of my respondents were able somehow to make it to group 2 without answering group 1.
When I go into view their responses screen and go to the edit their responses it shows that the "no answer" is checked, but that answer isn't on the survey.
So somehow the no answer got filled in for all of group 1 and let them go to straight to group 2.
What types of situations can cause limesurvey to have all blank answers for group 1 when it is mandatory and let them answer group 2? I have tried everything I can to get the bug to replicate and can't do it, like opening the link 2 times.

Thanks, any suggestions would be greatly appreciated.

Changing an active survey - by: DenisChenu

$
0
0
You can add answer in an active survey,

Not for subquestion (multi check is subquestion ).

If you have access to phpmyadmin, it can be done too directly in DB:
- deactivate survey
- Add the sub question (or question)
- Reactivate survey
- compare new survey_XXX table with survey_XXXX_old and add the needed column on survey_XXXX_old.
- go to admin panel/view response and click on "inport response from a deactivated survey" or something like that.

Denis

Offline face2face surveys using Limesurvey - by: mfaber

$
0
0
Hi All,

there are situations where online web surveys are just not the way to go. Or not the only way you want to reach your target population. Imagine you want to interview persons in their households, patients in a waiting room or in a hospital.
You could use a tablet pc with an internet connection and do face-to-face interviews using limesurvey. However, a mobile internet connection is nothing to rely on. Furthermore, in hospitals you might not even be allowed to use a mobile internet connection.

What to do?
There are various free or commercial solutions for doing face2face interviews offline (or on the go) but I think it would be really MUCH nicer to be able to do this with the software that already proved to be fantastic ;-), you already know and without programming and maintaining the same survey again in a different software package.

So how could this be done using Limesurvey?
With this post I would like to share my thoughts and some (potential) solutions. I also hope to start a general dicussion on the topic and hear from other users' experiences. In the long run, tested and working solution should then be described in the WIKI.


B) Local Limesurvey installation
On the device that should be used for offline face2face interviews, Limesurvey is run in an offline web environment (eg., Appache, PHP, MySQL etc). Answers to surveys are stored locally. This could be a netbook running XAMPP and limesurvey. BUt some people seem to have managed on android as well.
After the data collection (maybe same survey on multiple offline machines) is complete, the answers are exported using Limesurvey'S VV-export function. These VV-files can then be imported/collected on one "master-machine" into one central database containing all the answers. This approach has already been described in more detail: http://www.marketresearchtechnology.com/content/how-optimize-limesurvey-surveys-smartphones-and-tablets-part-4
Advantage: Works. All online feature are available offline. Disadvantage: Requires access and rights on target machine. Large system, can not be sent via email. Not platform independent. VV-export/import can still be cumbersome, Devs still work on making this easier.

:unsure: Running a complete web environment might not always be feasible because of missing access to or rights on the target machines. A solution based on just a few files that could also be sent by email would be much more desirable. That is where the next two suggestions/solutions come into play:

B) Exporting survey as HTML-page and eMailing responses
This method is based on saving the html page of your survey and rerouting the data stream that contains the participants' answers to your email program (when the participant hits the "submit" button).
Recipe: In the survey options, choose "all questions on one page". Take the survey and save the page with your questions (Firefox: save page as...).
In the HTML page, change the form/post command so the answers are mailed "action=mailto:email@email.org". That is: saved in a locally installed email-program until the device is online again and then mailed to a central location or stored. This modified HTML+support files can then be distributed to various devices for survey taking. Later, the exported responses contained in the emails can be imported using limesurvey's RPC function "add_response". I have nearly finished a PHP-script which allows selecting and importing multiple of those response files in one go. Will post more when it's ready.
Advantage: seems to work (still testing), easy to implement, files to distribute are just a few kilobytes, apparently platform independent.
Disadvantage: can't get the datepicker(date/time question) to work. Validation of answers can be tricky. Everything has to be on one page.


B) Exploiting new HTML5 features
HTML5 provides functions to make websites usable offline. Website components are cached and can work offline in the browser. Answers/forms are saved locally until the internet connection is back and sent then. Keyword for google here is "cache manisfest". I have tried to modify an exported survey page (HTML) but could not make this work. I am not an HTML programmer, so others might like to give this approach a try. If this WOULD work with modified Limesurvey output, the Devs may consider to add native support or it could be implemented using limesurvey's templates?
Advantages: Easy for the user, platform independent, files to distribute are just a few kilobytes.
Disadvantage: Not working (yet). Just an idea...


B) Specialised Apps
Why not write an an android app that parses Limesurvey's .lss files, displays the survey, collects data and sends it to the central limesurvey installation when an internet connection is available (or stores it locally until one is available)?
Well, probably because this involves a lot of work and maintenance.


ok...hope this was useful to someone. Last but not least: Thanks to the developers for working on this great project!

Dual scale array: Relevance equation does not work - by: DenisChenu

Array Filter and Conditional Statements - by: tpartner

Completion time per question group - by: tpartner

$
0
0
No, not "out-of-the-box".

As a workaround, you could use a hidden question and JavaScript to record the time elapsed between page load and submit but that would require adding those (hidden) questions to every group.

random assignment - by: tpartner

Scrolling to mandatory question errors - by: tpartner

$
0
0
Try adding this to the end of template.js:
$(document).ready(function() {
 
	if($('.errormandatory').length > 0) {
		$('html, body').animate({
			scrollTop: $('.errormandatory:first').offset().top
		}, 2000);
	}
});

Show Full responses in Completed page - by: DenisChenu

$
0
0
agabriel wrote:
is there a way i can query the database using Javascript?
No, not really.

You have to use own php script and call it in AJAX: api.jquery.com/jQuery.ajax/

Denis

Response ID in survey input print - by: DenisChenu

$
0
0
Not by default,

Think best is to adapt "last page" message with adding {SAVEDID} and use EM to have complete answers table.

With this solution, you can show what you want in the printable survey.

Denis

Participate in the survey many times - by: DenisChenu

$
0
0
Hello,

You can use "UsesLeft" in token table. Set it to 10 000 000 for example.

random assignment - by: DenisChenu

$
0
0
Hello,

And please: what is your LS version ? And did this appear in group test and not in surey test mode.

Denis

Optional address registration - by: schmidtm

$
0
0
Is it possible to add an optional address registration form at the end of the survey?
I want to create a survey with an additional competition where users are free to take part after finishing the survey.

Thanks in advance!

Survey order, split, merge and various newby questions - by: tpartner

Scrolling to mandatory question errors - by: Ben_V

$
0
0
Thank you Denis,
$showpopups added to my list of completly forgotten useful optional settings!

Limit number of created surveys - by: jrsanche

$
0
0
Is it possible to restrict the number of surveys that a user can create in Limesurvey?

Thanks in advance,

Juan Ramón

Batch downloading results from several surveys - by: jrsanche

$
0
0
Is it possible to download the results of different surveys in a batch? I mean, to select different surveys (or all) and export all its results to one or several files in one single operation.

Thanks in advance for the answers.

Best regards,

Juan Ramón

dynamic rows in array - by: DenisChenu

$
0
0
Mauybe you can put a lsg file export, then i can have a look at the script and EM.

But, for another questio after the multi text question, use EM directly:

{SQTEXT_SQ1.NAOK}
{SQTEXT_SQ2.NAOK}
{SQTEXT_SQ3.NAOK}
{SQTEXT_SQ4.NAOK}

Denis
Viewing all 17529 articles
Browse latest View live




Latest Images