Actions

Alternatives to the LimeSurvey import function: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
 
(32 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<languages />
<translate>


__TOC__


=Import using the administration interface=
<!--T:16-->
The following page presents alternatives to the LimeSurvey import function.


If you have previously exported a survey structure, you can import it from the "New Survey" screen. Click on the browse button to choose the SQL/CSV file, and then click on the button. The import process reads the following formats:
=Import using the commandline utility= <!--T:1-->
*v1.50 or later .CSV files created by LimeSurvey
*v1.90 or later .LSS files create by LimeSurvey


That way you can import old surveys from previous version. The import 'intelligently' re-numbers the survey, group, question, answer and condition IDs so that they all match each other - '''no existing surveys will be overwritten'''. See section on [[Exporting a survey structure]] for more information.
<!--T:6-->
From version 1.50 to 1.92 it was possible to import surveys from the command line (or shell). To use this functionality, you need to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.


=Import using the commandline utility=
<!--T:7-->
This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.
 
<!--T:8-->
To use it, go to the "limesurvey/admin" folder in the shell and execute:
 
<!--T:9-->
<code>php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]</code>


Since version 1.50 it is possible to import surveys from the command line (or shell). To use this functionality you have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.
<!--T:14-->
*'''<File to import>:''' has to be the one you wish to import.
*'''<user>:''' has to be a user that holds the permission to create surveys.
*'''<password>:''' the password for the user.


This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.
<!--T:10-->
If you need to see the parameters, you can execute:


To use it, in the shell go to the limesurvey/admin folder and execute:
<!--T:11-->
<code>php cmdline_importsurvey -h</code>


php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]
=Import using RemoteControl API= <!--T:15-->
*<File to import> has to be one of the described above
Since LimeSurvey version 2.0, you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].
*<user> has to be a user with the right to create surveys
*<password> the password for the user <br/>*<user> and <password> are only required if the control access is active


If you need to see the parameters you can execute:
=Import surveys from other applications= <!--T:12-->


php cmdline_importsurvey -h
<!--T:13-->
We often get requests to import a survey from other applications or survey providers. The problem is that providers (like SurveyMonkey) lock you in - it is not possible to export the survey structure (e.g. from SurveyMonkey), but only the response data.
</translate>

Latest revision as of 17:02, 8 June 2018


The following page presents alternatives to the LimeSurvey import function.

Import using the commandline utility

From version 1.50 to 1.92 it was possible to import surveys from the command line (or shell). To use this functionality, you need to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.

This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.

To use it, go to the "limesurvey/admin" folder in the shell and execute:

php cmdline_importsurvey <File to import> [<user> <password>]
  • <File to import>: has to be the one you wish to import.
  • <user>: has to be a user that holds the permission to create surveys.
  • <password>: the password for the user.

If you need to see the parameters, you can execute:

php cmdline_importsurvey -h

Import using RemoteControl API

Since LimeSurvey version 2.0, you can import a survey structure by using the RemoteControl 2 API.

Import surveys from other applications

We often get requests to import a survey from other applications or survey providers. The problem is that providers (like SurveyMonkey) lock you in - it is not possible to export the survey structure (e.g. from SurveyMonkey), but only the response data.