Have the assessment done externally and imported into Survey

More
2 months 4 weeks ago #171607 by gaartsen
gaartsen created the topic: Have the assessment done externally and imported into Survey
Hi,
I am building a survey with several sections of questions. One particular section will need to be assessed by an external agency. They have an API that would take answers of hat section and perform their custom assessment. That same API can return the assessment as well.
  1. Is there a way this can be done by Lime Survey?
  2. Is there a way to import this as a separate survey into another survey?
  3. Is there a way at all to assess any survey externally?


Thanks in advance.
Gary

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #171616 by tammo
tammo replied the topic: Have the assessment done externally and imported into Survey
The short answer is: Yes, this can be done. But it will take some programming.

It would take a brainstorm to get all specifications on the table, after that a project plan can be made.

The other short answer is: No, it cannot be done by LimeSurvey out of the box.

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #171617 by gaartsen
gaartsen replied the topic: Have the assessment done externally and imported into Survey
Thank you Tammo.
I am a PHP programmer, so I could have a quick look. Any pointers to relevant classes etc would be helpful.

Please Log in or Create an account to join the conversation.

More
2 months 4 weeks ago #171618 by tammo
tammo replied the topic: Have the assessment done externally and imported into Survey
I guess I would start using the Remote Control API: manual.limesurvey.org/RemoteControl_2_API
which could make the part that needs assessing available for the other API of the assessing organization.

Tammo


Tammo ter Hark at Tools for Research
Proud developers of the TFR Responsive Limesurvey template
toolsforresearch.com/limesurvey-responsive-template
The following user(s) said Thank You: gaartsen

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #171645 by DenisChenu
DenisChenu replied the topic: Have the assessment done externally and imported into Survey
I think : LimeSurvey must send information to external API, and get this information in Survey, right ?

Then : seems best to use LimeSurvey plugin.

If the update of the survey with the value of API can be done after survey is submitted : use manual.limesurvey.org/AfterSurveyComplete
If the update of the survey must be done during survey : best seems to use beforeQuestionRender : manual.limesurvey.org/BeforeQuestionRender

Idea example :
1. create a short text question, hidden to get the value of the API
2. in beforeQuestionRender : test the gid value
3. If the gid value is the same than your 1st question : send request to the API with params and fill the value

You need to use Response model (or SurveyDynamic) : github.com/LimeSurvey/LimeSurvey/blob/ma.../models/Response.php

You can copy some code from gitlab.com/SondagesPro/ExportAndStats/ge...Question/tree/master

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: gaartsen

Please Log in or Create an account to join the conversation.

More
2 months 3 weeks ago #171664 by gaartsen
gaartsen replied the topic: Have the assessment done externally and imported into Survey
Thank you again. I will have a look.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!