Actions

Alternatives to the LimeSurvey import function: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />
<languages />
<translate>
<translate>
<!--T:1-->
__TOC__


=Import using the administration interface= <!--T:2-->
<!--T:3-->
If you have previously exported a survey structure, you can import it from the "Create, import, or copy survey" screen.
To get there just click the 'Create, import, or copy a survey' icon [[File:Add.png]] and in the following screen click on the 'Import' tab.
Click on the browse button to choose the file, and then click on the ''Import survey' button.


<!--T:16-->
<!--T:16-->
The import process reads the following formats:
The following page presents alternatives to the LimeSurvey import function.
*.LSS files (XML-format created by LimeSurvey 1.90 or later)
*.LSA files (Survey archive which may include also token, responses and timings - available since LimeSurvey 2.0)
*.TXT files (Text-format created by Excel - available since LimeSurvey 2.0)
*.CSV files (Created by early LimeSurvey versions from 1.50 to 1.90)
 
<!--T:4-->
That way you can import old surveys from previous versions. 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 the section on [[Exporting a survey structure]] for more information.


=Import using the commandline utility= <!--T:5-->
=Import using the commandline utility= <!--T:1-->  


<!--T:6-->
<!--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 have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.
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.


<!--T:7-->
<!--T:7-->
Line 30: Line 15:


<!--T:8-->
<!--T:8-->
To use it, in the shell go to the limesurvey/admin folder and execute:
To use it, go to the "limesurvey/admin" folder in the shell and execute:


<!--T:9-->
<!--T:9-->
  php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]
  <code>php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]</code>


<!--T:14-->
<!--T:14-->
*<File to import> has to be one of the described above
*'''<File to import>:''' has to be the one you wish to import.
*<user> has to be a user with permission to create surveys
*'''<user>:''' has to be a user that holds the permission to create surveys.
*<password> the password for the user  
*'''<password>:''' the password for the user.


<!--T:10-->
<!--T:10-->
If you need to see the parameters you can execute:
If you need to see the parameters, you can execute:


<!--T:11-->
<!--T:11-->
  php cmdline_importsurvey -h
  <code>php cmdline_importsurvey -h</code>


=Import using RemoteControl API= <!--T:15-->
=Import using RemoteControl API= <!--T:15-->
Since LimeSurvey version 2.0 you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].
Since LimeSurvey version 2.0, you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].


=Importing surveys from other applications= <!--T:12-->
=Import surveys from other applications= <!--T:12-->


<!--T:13-->
<!--T:13-->
We are often getting 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 from SurveyMonkey, only the response data. We are sorry to say but using closed proprietary software or providers can be a bad idea in the first place.
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>
</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.