This PR adds the get survey handler for the LimeSurvey block. It displays the url of the survey according to the survey_id set by the instructor, and the access code of the student to access the survey
How to test
Configure the XBlock
Install this branch in your environment.
Add the XBlock to your course following the instructions in the README file.
Edit the XBlock and configure it.
Save.
Enable the LimeSurvey API
From the LimeSurvey administrator you must enable the use of the API:
Login in the LimeSurvey admin → limesurvey.local.overhang.io/admin
Navigate to Configuration → Settings → Global → Interfaces.
Enable JSON-RPC in RPC interface enabled.
Save changes.
Configure the Survey
Login in the LimeSurvey admin.
Create a survey with the basic information: Survey title, Base language, Survey group (default) and Administrator (default).
Create a new attribute in the participants table of the survey (Surveys > survey_name > Survey participants > Manage attributes). The new attribute is to store the anonymous user id. You can set any name for this attribute, example auserid.
Activate the survey (Settings > overview > Activate survey) and select Switch to closed-access mode.
Finally, from the LMS, click on the Get Survey URL button to obtain the survey URL and the user's access code.
Description
This PR adds the get survey handler for the LimeSurvey block. It displays the url of the survey according to the
survey_id
set by the instructor, and the access code of the student to access the surveyHow to test
Configure the XBlock
Enable the LimeSurvey API
From the LimeSurvey administrator you must enable the use of the API:
limesurvey.local.overhang.io/admin
JSON-RPC
in RPC interface enabled.Configure the Survey
survey_name
> Survey participants > Manage attributes). The new attribute is to store the anonymous user id. You can set any name for this attribute, exampleauserid
.Finally, from the LMS, click on the
Get Survey URL
button to obtain the survey URL and the user's access code.Pending